summaryrefslogtreecommitdiffstats
path: root/Makefile.inc
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2021-07-06 16:34:33 +0200
committerPatrick Georgi <pgeorgi@google.com>2021-07-07 14:52:10 +0000
commitd109354c0f1d4b155c60701cd42e632213350d72 (patch)
tree6031ed9e8e36673477191d038ccdae5a89e85955 /Makefile.inc
parent95761c573a6fd735dda833f729f114d415d91a38 (diff)
downloadcoreboot-d109354c0f1d4b155c60701cd42e632213350d72.tar.gz
coreboot-d109354c0f1d4b155c60701cd42e632213350d72.tar.bz2
coreboot-d109354c0f1d4b155c60701cd42e632213350d72.zip
Makefile.inc: Drop the cbfs master header from non-X86
The pointer to the header has a x86 top mmaped address even though the boot medium is not mapped that way. If no pointer is used to find the header FMAP is needed. If FMAP is used anyway there is no need for a cbfs master header. Change-Id: I6d693bdd4ddaf4c9b3cffb4ea9879c761200aca9 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/56120 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'Makefile.inc')
-rw-r--r--Makefile.inc11
1 files changed, 2 insertions, 9 deletions
diff --git a/Makefile.inc b/Makefile.inc
index b1c706709a9a..fee73f5c0652 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -1101,22 +1101,15 @@ ifeq ($(CONFIG_ARCH_X86),y)
-b -$(call file-size,$(objcbfs)/bootblock.bin) $(cbfs-autogen-attributes) \
$(TS_OPTIONS) \
$(CBFSTOOL_ADD_CMD_OPTIONS)
+ # the cbfs master header is a deprecated feature only used on x86
+ $(CBFSTOOL) $@.tmp add-master-header $(TS_OPTIONS) $(CBFSTOOL_ADD_CMD_OPTIONS)
else # ifeq ($(CONFIG_ARCH_X86),y)
$(CBFSTOOL) $@.tmp write -u \
-r BOOTBLOCK \
-f $(objcbfs)/bootblock.bin
# make space for the CBFS master header pointer. "ptr_" is just
# arbitrary 4 bytes that will be overwritten by add-master-header.
- printf "ptr_" > $@.tmp.2
- $(CBFSTOOL) $@.tmp add \
- -f $@.tmp.2 \
- -n "header pointer" \
- -t "cbfs header" \
- -b -4 \
- $(CBFSTOOL_ADD_CMD_OPTIONS)
- rm -f $@.tmp.2
endif # ifeq ($(CONFIG_ARCH_X86),y)
- $(CBFSTOOL) $@.tmp add-master-header $(TS_OPTIONS) $(CBFSTOOL_ADD_CMD_OPTIONS)
$(prebuild-files) true
mv $@.tmp $@
else # ifneq ($(CONFIG_UPDATE_IMAGE),y)