Martin Roth (gaumless@gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/10681
-gerrit
commit 509c29a36d6833430d11cc90cd96fd684559dd36 Author: Martin Roth gaumless@gmail.com Date: Sun Jun 28 13:49:16 2015 -0600
Makefile.inc: Add CBFS_BASE_ADDRESS variable for later comparison
The CBFS_BASE_ADDRESS can be compared against values used with cbfstool to generate warnings. This can help cut down on mistakes and debug time.
This is pretty global, so I put this at the top level.
Change-Id: I149007dd637661f799a0f2cdb079d11df726ca86 Signed-off-by: Martin Roth gaumless@gmail.com --- Makefile.inc | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/Makefile.inc b/Makefile.inc index 2f1fe82..f827383 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -41,6 +41,10 @@ export objcbfs := $(obj)/cbfs/$(call strip_quotes,$(CONFIG_CBFS_PREFIX)) ## file under src/ are placed and built under $(objgenerated) export objgenerated := $(obj)/generated
+## Calculate the base address of CBFS for later comparisons +CBFS_BASE_ADDRESS=$(shell let y="0xffffffff - $(CONFIG_CBFS_SIZE) + 1" ; \ + printf "%u\n" $$y) + ####################################################################### # root rule to resolve if in build mode (ie. configuration exists) real-target: $(obj)/config.h coreboot