summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAndre Przywara <andre.przywara@arm.com>2018-12-20 15:41:34 +0000
committerAndre Przywara <andre.przywara@arm.com>2021-01-11 23:19:33 +0000
commitacd832cd8c3c981cc1c52d85edabf00a462680b4 (patch)
tree102271d22ce5af65f906156aeee2d7c8b04ed784 /scripts
parent6d295099cc96ed39cd2229dad376ab00baba9a5d (diff)
downloadu-boot-acd832cd8c3c981cc1c52d85edabf00a462680b4.tar.gz
u-boot-acd832cd8c3c981cc1c52d85edabf00a462680b4.tar.xz
u-boot-acd832cd8c3c981cc1c52d85edabf00a462680b4.zip
sunxi: Use mkimage for SPL boot image generation
Switch the SPL boot image generation from using mksunxiboot to the new sunxi_egon format of mkimage. Verified to create identical results for all 152 Allwinner boards. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Reviewed-by: Jernej Skrabec <jernej.skrabec@siol.net> Reviewed-by: Samuel Holland <samuel@sholland.org> Reviewed-by: Simon Glass <sjg@chromium.org> Tested-by: Samuel Holland <samuel@sholland.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/Makefile.spl8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/Makefile.spl b/scripts/Makefile.spl
index 87021e22e5..ea4e045769 100644
--- a/scripts/Makefile.spl
+++ b/scripts/Makefile.spl
@@ -386,11 +386,11 @@ endif
$(obj)/$(SPL_BIN).sfp: $(obj)/$(SPL_BIN).bin FORCE
$(call if_changed,mkimage)
-quiet_cmd_mksunxiboot = MKSUNXI $@
-cmd_mksunxiboot = $(objtree)/tools/mksunxiboot \
- --default-dt $(CONFIG_DEFAULT_DEVICE_TREE) $< $@
+MKIMAGEFLAGS_sunxi-spl.bin = -T sunxi_egon \
+ -n $(CONFIG_DEFAULT_DEVICE_TREE)
+
$(obj)/sunxi-spl.bin: $(obj)/$(SPL_BIN).bin FORCE
- $(call if_changed,mksunxiboot)
+ $(call if_changed,mkimage)
quiet_cmd_sunxi_spl_image_builder = SUNXI_SPL_IMAGE_BUILDER $@
cmd_sunxi_spl_image_builder = $(objtree)/tools/sunxi-spl-image-builder \