Matt DeVillier has submitted this change. ( https://review.coreboot.org/c/coreboot/+/87288?usp=email )
Change subject: treewide: Remove remainders of ROM_BASE ......................................................................
treewide: Remove remainders of ROM_BASE
commit a7eb390796ef ("mb/*/*/*.fmd: Start flash at 0") caused a build failure for all mainboards that generate their FMAP from the IFD (so intel only) instead of providing one themselves. Jenkins didn't catch that, because apparently all mainboards that have the IFD in the 3rdparty/blobs repository provide a custom FMAP. So there was no defconfig that jenkins tested that would come across this issue.
Signed-off-by: Maximilian Brune maximilian.brune@9elements.com Change-Id: Ia9852e8ef48148264d2d3f73eb667f3eb8b85005 Reviewed-on: https://review.coreboot.org/c/coreboot/+/87288 Reviewed-by: Matt DeVillier matt.devillier@gmail.com Reviewed-by: Shuo Liu shuo.liu@intel.com Reviewed-by: Frans Hendriks fhendriks@eltan.com Reviewed-by: Erik van den Bogaert ebogaert@eltan.com Tested-by: build bot (Jenkins) no-reply@coreboot.org Reviewed-by: Angel Pons th3fanbus@gmail.com --- M Makefile.mk M util/ifdtool/ifdtool.c 2 files changed, 1 insertion(+), 3 deletions(-)
Approvals: Matt DeVillier: Looks good to me, approved Shuo Liu: Looks good to me, but someone else must approve Angel Pons: Looks good to me, approved build bot (Jenkins): Verified Erik van den Bogaert: Looks good to me, but someone else must approve Frans Hendriks: Looks good to me, but someone else must approve
diff --git a/Makefile.mk b/Makefile.mk index 19bac29..576cebd 100644 --- a/Makefile.mk +++ b/Makefile.mk @@ -1098,7 +1098,6 @@ # entire flash FMAP_ROM_SIZE := $(CONFIG_ROM_SIZE) # entire "BIOS" region (everything directly of concern to the host system) -# relative to ROM_BASE FMAP_BIOS_BASE := $(call int-align, $(call int-subtract, $(CONFIG_ROM_SIZE) $(CONFIG_CBFS_SIZE)), 0x10000) FMAP_BIOS_SIZE := $(call int-align-down, $(shell echo $(CONFIG_CBFS_SIZE) | tr A-F a-f), 0x10000) # position and size of flashmap, relative to BIOS_BASE @@ -1186,7 +1185,6 @@ # entire flash FMAP_ROM_SIZE := $(CONFIG_ROM_SIZE) # entire "BIOS" region (everything directly of concern to the host system) -# relative to ROM_BASE FMAP_BIOS_BASE := 0 FMAP_BIOS_SIZE := $(CONFIG_CBFS_SIZE) # position and size of flashmap, relative to BIOS_BASE diff --git a/util/ifdtool/ifdtool.c b/util/ifdtool/ifdtool.c index 94105ef..b21a89c 100644 --- a/util/ifdtool/ifdtool.c +++ b/util/ifdtool/ifdtool.c @@ -1094,7 +1094,7 @@ exit(EXIT_FAILURE); }
- char *bbuf = "FLASH@##ROM_BASE## ##ROM_SIZE## {\n"; + char *bbuf = "FLASH ##ROM_SIZE## {\n"; if (write(layout_fd, bbuf, strlen(bbuf)) < 0) { perror("Could not write to file"); exit(EXIT_FAILURE);