Nico Huber has uploaded this change for review.

View Change

libpayload: Keep a copy of .config in the build dir

This should make it easier to find the correct config for in-tree
builds.

Change-Id: I08d396ae3cedc65f63c4b8865701ea123c7d56cb
Signed-off-by: Nico Huber <nico.h@gmx.de>
---
M payloads/libpayload/Makefile.inc
1 file changed, 4 insertions(+), 1 deletion(-)

git pull ssh://review.coreboot.org:29418/coreboot refs/changes/28/47628/1
diff --git a/payloads/libpayload/Makefile.inc b/payloads/libpayload/Makefile.inc
index 6188dde..ecf0849 100644
--- a/payloads/libpayload/Makefile.inc
+++ b/payloads/libpayload/Makefile.inc
@@ -69,7 +69,10 @@
CFLAGS += -flto
endif

-$(obj)/libpayload-config.h: $(KCONFIG_AUTOHEADER)
+$(obj)/libpayload.config: $(DOTCONFIG)
+ cp $< $@
+
+$(obj)/libpayload-config.h: $(KCONFIG_AUTOHEADER) $(obj)/libpayload.config
cmp $@ $< 2>/dev/null || cp $< $@

library-targets = $(addsuffix .a,$(addprefix $(obj)/,$(libraries))) $(obj)/libpayload.a

To view, visit change 47628. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I08d396ae3cedc65f63c4b8865701ea123c7d56cb
Gerrit-Change-Number: 47628
Gerrit-PatchSet: 1
Gerrit-Owner: Nico Huber <nico.h@gmx.de>
Gerrit-MessageType: newchange