mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-01 08:59:33 +00:00
a0ca51f70b
Now that mkimage can generate TOC0 images, and the SPL can interpret them, hook up the build infrastructure so the user can choose which image type to build. Since the absolute load address is stored in the TOC0 header, that information must be passed to mkimage. Signed-off-by: Samuel Holland <samuel@sholland.org> Reviewed-by: Andre Przywara <andre.przywara@arm.com> Signed-off-by: Andre Przywara <andre.przywara@arm.com>
24 lines
630 B
Text
24 lines
630 B
Text
choice
|
|
prompt "SPL Image Type"
|
|
default SPL_IMAGE_TYPE_SUNXI_EGON
|
|
|
|
config SPL_IMAGE_TYPE_SUNXI_EGON
|
|
bool "eGON (normal)"
|
|
help
|
|
Select this option to embed the SPL binary in an eGON.BT0 image,
|
|
which is compatible with the normal boot ROM (NBROM).
|
|
|
|
This is usually the correct option to choose.
|
|
|
|
config SPL_IMAGE_TYPE_SUNXI_TOC0
|
|
bool "TOC0 (secure)"
|
|
help
|
|
Select this option to embed the SPL binary in a TOC0 image,
|
|
which is compatible with the secure boot ROM (SBROM).
|
|
|
|
endchoice
|
|
|
|
config SPL_IMAGE_TYPE
|
|
string
|
|
default "sunxi_egon" if SPL_IMAGE_TYPE_SUNXI_EGON
|
|
default "sunxi_toc0" if SPL_IMAGE_TYPE_SUNXI_TOC0
|