]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
Makefile: pass KEYDIR when set to sunxi-spl.bin mkimage
authorJames Hilliard <james.hilliard1@gmail.com>
Fri, 11 Apr 2025 01:10:25 +0000 (19:10 -0600)
committerAndre Przywara <andre.przywara@arm.com>
Mon, 27 Oct 2025 00:44:53 +0000 (00:44 +0000)
Currently we pass this for u-boot-spl.kwb targets, however when
building sunxi-spl.bin in the TOC0 format we may also need to
specify a KEYDIR, as such we should also pass this when set
to mkimage for the sunxi-spl.bin target.

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
scripts/Makefile.xpl

index 3e940bf562d55df4e0eaaed50b5128e7641c254e..52f014ad332415b1127a0c48741c7fe1bc9f7f42 100644 (file)
@@ -442,7 +442,8 @@ MKIMAGEFLAGS_sunxi-spl.bin = \
        -A $(ARCH) \
        -T $(CONFIG_SPL_IMAGE_TYPE) \
        -a $(CONFIG_SPL_TEXT_BASE) \
-       -n $(CONFIG_DEFAULT_DEVICE_TREE)
+       -n $(CONFIG_DEFAULT_DEVICE_TREE) \
+       $(if $(KEYDIR),-k $(KEYDIR))
 
 OBJCOPYFLAGS_u-boot-spl-dtb.hex := -I binary -O ihex --change-address=$(CONFIG_SPL_TEXT_BASE)