[coreboot-gerrit] New patch to review for coreboot: 062d35c build system: add minimized .config to coreboot image
Patrick Georgi (pgeorgi@google.com)
gerrit at coreboot.org
Thu Jun 11 09:57:26 CEST 2015
Patrick Georgi (pgeorgi at google.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/10512
-gerrit
commit 062d35ca7151c02085d75e8a6ec9f8ac51e0a897
Author: Patrick Georgi <pgeorgi at chromium.org>
Date: Thu Jun 11 09:55:56 2015 +0200
build system: add minimized .config to coreboot image
Use savedefconfig to store only the minimum set of options that need to be
touched to reproduce the image. They're enough in combination with the commit
id which is also stored.
Change-Id: I7d1cc8f34620af85d4ec2c64a5bc4a6f20b820f6
Signed-off-by: Patrick Georgi <pgeorgi at chromium.org>
---
Makefile.inc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile.inc b/Makefile.inc
index b5acdd0..75531e8 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -611,8 +611,8 @@ endif
ifeq ($(CONFIG_INCLUDE_CONFIG_FILE),y)
@printf " CONFIG $(DOTCONFIG)\n"
if [ -f $(DOTCONFIG) ]; then \
- echo "# This image was built using git revision" `git rev-parse HEAD` > $(obj)/config.tmp ; \
- sed -e '/^#/d' -e '/^ *$$/d' $(DOTCONFIG) >> $(obj)/config.tmp ; \
+ echo "# This image was built using git revision" `git rev-parse HEAD` > $(obj)/config.tmp && \
+ make DOTCONFIG=$(DOTCONFIG) DEFCONFIG=$(obj)/config.tmp savedefconfig && \
$(CBFSTOOL) $@.tmp add -f $(obj)/config.tmp -n config -t raw; rm -f $(obj)/config.tmp ; fi
@printf " REVISION build.h\n"
if [ -f $(obj)/build.h ]; then $(CBFSTOOL) $@.tmp add -f $(obj)/build.h -n revision -t raw; fi
More information about the coreboot-gerrit
mailing list