From 1dba2ed806e6d1d095556e4f8cdfdb71f98641cb Mon Sep 17 00:00:00 2001 From: Nico Huber Date: Sat, 14 Nov 2020 23:46:10 +0100 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/47628 Reviewed-by: Raul Rangel Reviewed-by: Angel Pons Tested-by: build bot (Jenkins) --- payloads/libpayload/Makefile.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'payloads') 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 -- cgit v1.2.3