summaryrefslogtreecommitdiff
path: root/payloads/libpayload
diff options
context:
space:
mode:
authorNico Huber <nico.h@gmx.de>2020-11-14 23:46:10 +0100
committerNico Huber <nico.h@gmx.de>2021-01-01 21:31:29 +0000
commit1dba2ed806e6d1d095556e4f8cdfdb71f98641cb (patch)
tree4f4d7d7a9a23291ecd2aa4c2938c56a893c715b0 /payloads/libpayload
parent1823d53cbf9fc1d7fb695c881695880f48801d9c (diff)
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> Reviewed-on: https://review.coreboot.org/c/coreboot/+/47628 Reviewed-by: Raul Rangel <rrangel@chromium.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'payloads/libpayload')
-rw-r--r--payloads/libpayload/Makefile.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/payloads/libpayload/Makefile.inc b/payloads/libpayload/Makefile.inc
index 6835b84f09..fc679dd27e 100644
--- a/payloads/libpayload/Makefile.inc
+++ b/payloads/libpayload/Makefile.inc
@@ -69,7 +69,10 @@ ifeq ($(CONFIG_LP_LTO),y)
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