summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorLokesh Vutla <lokeshvutla@ti.com>2018-08-27 15:57:15 +0530
committerTom Rini <trini@konsulko.com>2018-09-11 08:32:55 -0400
commit82f29fd5130b7c1087eb4f61d96fdcc6e12b3e12 (patch)
treeccb6e408c09da7da57cf8cfac14a5de93c49f063 /scripts
parent9d4f8c42cb98bb959adce4b2073660b120784bb1 (diff)
downloadu-boot-82f29fd5130b7c1087eb4f61d96fdcc6e12b3e12.tar.gz
u-boot-82f29fd5130b7c1087eb4f61d96fdcc6e12b3e12.tar.xz
u-boot-82f29fd5130b7c1087eb4f61d96fdcc6e12b3e12.zip
armv8: K3: am654: Add support for generating build targets
Update Makefile to generate - tispl.bin: First stage bootloader on ARMv8 core - u-boot.img: Second stage bootloader on ARMv8 core. Reviewed-by: Tom Rini <trini@konsulko.com> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/Makefile.spl9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/Makefile.spl b/scripts/Makefile.spl
index 252f13826d..e494d185e4 100644
--- a/scripts/Makefile.spl
+++ b/scripts/Makefile.spl
@@ -144,6 +144,10 @@ quiet_cmd_mkimage = MKIMAGE $@
cmd_mkimage = $(objtree)/tools/mkimage $(MKIMAGEFLAGS_$(@F)) -d $< $@ \
>$(MKIMAGEOUTPUT) $(if $(KBUILD_VERBOSE:0=), && cat $(MKIMAGEOUTPUT))
+quiet_cmd_mkfitimage = MKIMAGE $@
+cmd_mkfitimage = $(objtree)/tools/mkimage $(MKIMAGEFLAGS_$(@F)) -f $(SPL_ITS) -E $@ \
+ $(if $(KBUILD_VERBOSE:1=), MKIMAGEOUTPUT)
+
MKIMAGEFLAGS_MLO = -T omapimage -a $(CONFIG_SPL_TEXT_BASE)
MKIMAGEFLAGS_MLO.byteswap = -T omapimage -n byteswap -a $(CONFIG_SPL_TEXT_BASE)
@@ -407,3 +411,8 @@ $(obj)/$(SPL_BIN).multidtb.fit.gz: $(obj)/$(SPL_BIN).multidtb.fit
$(obj)/$(SPL_BIN).multidtb.fit.lzo: $(obj)/$(SPL_BIN).multidtb.fit
@lzop -f9 $< > $@
+
+ifdef CONFIG_ARCH_K3
+tispl.bin: $(obj)/u-boot-spl-nodtb.bin $(SHRUNK_ARCH_DTB) $(SPL_ITS) FORCE
+ $(call if_changed,mkfitimage)
+endif