[coreboot-gerrit] Patch set updated for coreboot: flashmap: Use CONFIG_ROM_SIZE as flash size in flashmap

Werner Zeh (werner.zeh@siemens.com) gerrit at coreboot.org
Sat Jun 18 05:50:07 CEST 2016


Werner Zeh (werner.zeh at siemens.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/15219

-gerrit

commit b9cb16c9d9f8a7a25782b48b4d7d8c4eee010ed8
Author: Werner Zeh <werner.zeh at siemens.com>
Date:   Fri Jun 17 01:48:44 2016 +0200

    flashmap: Use CONFIG_ROM_SIZE as flash size in flashmap
    
    Currently there are two sources for the final size of the
    flash image. The One is defined as a Kconfig variable
    (ROM_SIZE) and the other can be provided in a user defined
    flashmap.fmd. This patch will enable the usage of CONFIG_ROM_SIZE
    in flashmap.fmd to define the flash size. In this way, the
    Kconfig variable is the only source of information for the
    flash image size. This way is optional.
    
    Change-Id: Id5298e06d360aaa6d94f2b5a2ffa65e45919853e
    Signed-off-by: Werner Zeh <werner.zeh at siemens.com>
---
 Makefile.inc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Makefile.inc b/Makefile.inc
index d1d09ab..69c8843 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -700,7 +700,8 @@ $(obj)/fmap.fmd: $(top)/Makefile.inc $(DEFAULT_FLASHMAP) $(obj)/config.h
 	mv $@.tmp $@
 else # ifeq ($(CONFIG_FMDFILE),)
 $(obj)/fmap.fmd: $(CONFIG_FMDFILE) $(obj)/config.h
-	cp $< $@
+	$(HOSTCC) $(PREPROCESS_ONLY) -include $(obj)/config.h $< -o $@.pre
+	mv $@.pre $@
 endif # ifeq ($(CONFIG_FMDFILE),)
 
 # generated at the same time as fmap.fmap



More information about the coreboot-gerrit mailing list