提交 aafe5c5e 编写于 作者: S Simon Glass

Makefile: Allow building .rom files for non-x86 boards

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: NSimon Glass <sjg@chromium.org>
上级 fab4f323
......@@ -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
ifdef CONFIG_SPL
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
endif
ifdef CONFIG_TPL
rom-deps += tpl/u-boot-tpl.bin
endif
endif
u-boot.rom: $(rom-deps) FORCE
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册