diff options
author | Samuel Holland <samuel@sholland.org> | 2022-03-18 00:00:45 -0500 |
---|---|---|
committer | Andre Przywara <andre.przywara@arm.com> | 2022-04-04 23:24:17 +0100 |
commit | a0ca51f70b7559733c65cef1069f1b39aa410a0f (patch) | |
tree | f1f41b01fc2261eac77a63be61ed5cf628d1c0e9 /scripts | |
parent | 44de13d9459afedd85334d7ba83c13451af0977d (diff) | |
download | u-boot-a0ca51f70b7559733c65cef1069f1b39aa410a0f.zip u-boot-a0ca51f70b7559733c65cef1069f1b39aa410a0f.tar.gz u-boot-a0ca51f70b7559733c65cef1069f1b39aa410a0f.tar.bz2 |
sunxi: Support building a SPL as a TOC0 image
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>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Makefile.spl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/Makefile.spl b/scripts/Makefile.spl index 16b5a3d..6ad82ce 100644 --- a/scripts/Makefile.spl +++ b/scripts/Makefile.spl @@ -411,7 +411,10 @@ endif $(obj)/$(SPL_BIN).sfp: $(obj)/$(SPL_BIN).bin FORCE $(call if_changed,mkimage) -MKIMAGEFLAGS_sunxi-spl.bin = -A $(ARCH) -T sunxi_egon \ +MKIMAGEFLAGS_sunxi-spl.bin = \ + -A $(ARCH) \ + -T $(CONFIG_SPL_IMAGE_TYPE) \ + -a $(CONFIG_SPL_TEXT_BASE) \ -n $(CONFIG_DEFAULT_DEVICE_TREE) OBJCOPYFLAGS_u-boot-spl-dtb.hex := -I binary -O ihex --change-address=$(CONFIG_SPL_TEXT_BASE) |