diff mbox series

[10/15] Allow building .rom files for non-x86 boards

Message ID 20200608192024.21484-7-sjg@chromium.org
State New
Headers show
Series rockchip: Support building ROM files automatically | expand

Commit Message

Simon Glass June 8, 2020, 7:20 p.m. UTC
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>
---

 Makefile | 13 +++++++++++++
 1 file changed, 13 insertions(+)
diff mbox series

Patch

diff --git a/Makefile b/Makefile
index d46338a6a4..b2fde0b98d 100644
--- a/Makefile
+++ b/Makefile
@@ -1608,6 +1608,19 @@  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
+
+ifdef CONFIG_SPL
+rom-deps += spl/u-boot-spl.bin
+rom-deps += u-boot.img
+endif
+
+ifdef CONFIG_TPL
+rom-deps += tpl/u-boot-tpl.bin
+endif
+
+endif
+
 u-boot.rom: $(rom-deps) FORCE
 	$(call if_changed,binman)
 endif