Makefile.mk: Use same FMAP_FLASH_SIZE for all architectures
For both x86 and non-x86 its the same anyway, so factor it out. Signed-off-by: Maximilian Brune <maximilian.brune@9elements.com> Change-Id: I30e6d1da8a663cd79d59d55446eda2b70269f118 Reviewed-on: https://review.coreboot.org/c/coreboot/+/90812 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
This commit is contained in:
parent
76149f25c6
commit
5cae481856
1 changed files with 2 additions and 3 deletions
|
|
@ -1085,6 +1085,8 @@ prebuild-files = $(foreach region,$(all-regions), \
|
|||
# If no FMD file (Flashmap) is supplied by mainboard, fall back to a default
|
||||
ifeq ($(CONFIG_FMDFILE),)
|
||||
|
||||
FMAP_FLASH_SIZE := $(CONFIG_ROM_SIZE)
|
||||
|
||||
ifeq ($(CONFIG_ARCH_X86),y)
|
||||
|
||||
DEFAULT_FLASHMAP:=$(top)/util/cbfstool/default-x86.fmd
|
||||
|
|
@ -1098,8 +1100,6 @@ $(DEFAULT_FLASHMAP): $(call strip_quotes,$(CONFIG_IFD_BIN_PATH)) $(IFDTOOL)
|
|||
endif # ifeq($(CONFIG_HAVE_IFD_BIN),y)
|
||||
endif # ifneq($(CONFIG_IFD_CHIPSET),)
|
||||
|
||||
# entire flash
|
||||
FMAP_FLASH_SIZE := $(CONFIG_ROM_SIZE)
|
||||
# entire "BIOS" region (everything directly of concern to the host system)
|
||||
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)
|
||||
|
|
@ -1186,7 +1186,6 @@ else # ifeq ($(CONFIG_ARCH_X86),y)
|
|||
|
||||
DEFAULT_FLASHMAP:=$(top)/util/cbfstool/default.fmd
|
||||
# entire flash
|
||||
FMAP_FLASH_SIZE := $(CONFIG_ROM_SIZE)
|
||||
# entire "BIOS" region (everything directly of concern to the host system)
|
||||
FMAP_BIOS_BASE := 0
|
||||
FMAP_BIOS_SIZE := $(CONFIG_CBFS_SIZE)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue