[PATCH v4 03/27] Makefile: Allow building .rom files for non-x86 boards

Simon Glass sjg at chromium.org
Sun Jul 19 21:55:54 CEST 2020

Some non-x86 devices can use SPI flash to boot and need to produce images
of a fixed size to program the flash.

Add a way to handle this for non-x86 boards.

Signed-off-by: Simon Glass <sjg at chromium.org>

(no changes since v3)

Changes in v3:
- Add a comment about CONFIG_SPL_FRAMEWORK

 Makefile | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/Makefile b/Makefile
index df4e3d6c6b..eb2fa50464 100644
--- a/Makefile
+++ b/Makefile
@@ -1612,6 +1612,20 @@ u-boot-x86-start16.bin: u-boot FORCE
 OBJCOPYFLAGS_u-boot-x86-reset16.bin := -O binary -j .resetvec
 u-boot-x86-reset16.bin: u-boot FORCE
 	$(call if_changed,objcopy)
+else # !CONFIG_X86
+rom-deps += spl/u-boot-spl.bin
+# We can rely on CONFIG_SPL_FRAMEWORK being set for boards that use binman
+rom-deps += u-boot.img
+rom-deps += tpl/u-boot-tpl.bin
 u-boot.rom: $(rom-deps) FORCE

More information about the U-Boot mailing list