[coreboot-gerrit] Patch set updated for coreboot: build system: add minimized .config to coreboot image

Patrick Georgi (pgeorgi@google.com) gerrit at coreboot.org
Mon Aug 10 10:23:32 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 df4267acef436981b68301bfd0195f60fa5c2629
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 706ab80..c7a5873 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -627,8 +627,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