diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/arch/armv7/Makefile.inc | 6 | ||||
-rw-r--r-- | src/cpu/samsung/exynos5250/Kconfig | 5 |
2 files changed, 9 insertions, 2 deletions
diff --git a/src/arch/armv7/Makefile.inc b/src/arch/armv7/Makefile.inc index f2f4a4731c..7d02e7c109 100644 --- a/src/arch/armv7/Makefile.inc +++ b/src/arch/armv7/Makefile.inc @@ -45,10 +45,12 @@ prebuild-files = \ $(if $(call extract_nth,4,$(file)),-b $(call extract_nth,4,$(file))) &&) prebuilt-files = $(foreach file,$(cbfs-files), $(call extract_nth,1,$(file))) -# TODO Change -b, -H, -o to Kconfig variables. +# TODO Change -b to Kconfig variable. $(obj)/coreboot.pre1: $(objcbfs)/bootblock.bin $$(prebuilt-files) $(CBFSTOOL) $(CBFSTOOL) $@.tmp create -m armv7 -s $(CONFIG_COREBOOT_ROMSIZE_KB)K \ - -B $(objcbfs)/bootblock.bin -a 64 -b 0x0000 -H 0x2040 -o 0x5000 + -B $(objcbfs)/bootblock.bin -a 64 -b 0x0000 \ + -H $(CONFIG_CBFS_HEADER_ROM_OFFSET) \ + -o $(CONFIG_CBFS_ROM_OFFSET) $(prebuild-files) true mv $@.tmp $@ else diff --git a/src/cpu/samsung/exynos5250/Kconfig b/src/cpu/samsung/exynos5250/Kconfig index 477ee51453..6a09d88e1b 100644 --- a/src/cpu/samsung/exynos5250/Kconfig +++ b/src/cpu/samsung/exynos5250/Kconfig @@ -48,6 +48,11 @@ config ROMSTAGE_SIZE hex default 0x10000 +config CBFS_ROM_OFFSET + # Calculated by BL1 + max bootblock size. + hex "offset of CBFS data in ROM" + default 0x0A000 + # TODO Change this to some better address not overlapping bootblock when # cbfstool supports creating header in arbitrary location. config CBFS_HEADER_ROM_OFFSET |