summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
authorMartin Roth <gaumless@gmail.com>2015-06-28 13:49:16 -0600
committerMartin Roth <gaumless@gmail.com>2015-07-11 22:12:00 +0200
commit16bc7e82d8ec9f27955c2291c8ab1dd638a5ca33 (patch)
treecc4d06add1dadca4e26ab6053a2bb804a586bb9c /src/arch
parent47abc54ec3eea1a660cfbe3bb935ef6d3ace9de0 (diff)
downloadcoreboot-16bc7e82d8ec9f27955c2291c8ab1dd638a5ca33.tar.xz
arch/x86/Makefile.inc: Calculate CBFS_BASE_ADDRESS variable
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. Change-Id: I149007dd637661f799a0f2cdb079d11df726ca86 Signed-off-by: Martin Roth <gaumless@gmail.com> Reviewed-on: http://review.coreboot.org/10681 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/x86/Makefile.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/arch/x86/Makefile.inc b/src/arch/x86/Makefile.inc
index 08246044b3..2448590ba9 100644
--- a/src/arch/x86/Makefile.inc
+++ b/src/arch/x86/Makefile.inc
@@ -65,6 +65,9 @@ CBFSTOOL_PRE1_OPTS = -m x86 -s $(CONFIG_ROM_SIZE) \
CBFSTOOL_PRE_OPTS = -b $(shell cat $(objcbfs)/base_xip.txt) -S ".car.data"
endif
+## Calculate the base address of CBFS for later comparisons
+CBFS_BASE_ADDRESS=$(call int-add, $(call int-subtract, 0xffffffff $(CONFIG_CBFS_SIZE)) 1)
+
###############################################################################
# bootblock
###############################################################################