Skip to contentSkip to conversation

arm: k3: Consolidate and silence k3_fit_atf.sh call

PATCH Superseded Jan Kiszka 2 participants 3 messages Jun 25, 2020 – Jun 29, 2020

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 arm: k3: Consolidate and silence k3_fit_atf.sh call

From: Jan Kiszka <[email protected]>

---
 arch/arm/mach-k3/config.mk | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)
arch/arm/mach-k3/config.mk +9 -8
index f6b63db349..f7afef610c 100644
@@ -48,22 +48,23 @@ ALL-y	+= tiboot3.bin
 endif
 
 ifdef CONFIG_ARM64
+
 ifeq ($(CONFIG_TI_SECURE_DEVICE),y)
 SPL_ITS := u-boot-spl-k3_HS.its
-$(SPL_ITS): FORCE
-	IS_HS=1 \
-	$(srctree)/tools/k3_fit_atf.sh \
-	$(patsubst %,$(obj)/dts/%.dtb,$(subst ",,$(CONFIG_SPL_OF_LIST))) > $@
-
+$(SPL_ITS): export IS_HS=1
 ALL-y	+= tispl.bin_HS
 else
 SPL_ITS := u-boot-spl-k3.its
-$(SPL_ITS): FORCE
+ALL-y	+= tispl.bin
+endif
+
+quiet_cmd_k3_mkits = MKITS   $@
+cmd_k3_mkits = \
 	$(srctree)/tools/k3_fit_atf.sh \
 	$(patsubst %,$(obj)/dts/%.dtb,$(subst ",,$(CONFIG_SPL_OF_LIST))) > $@
 
-ALL-y	+= tispl.bin
-endif
+$(SPL_ITS): FORCE
+	$(call cmd,k3_mkits)
 endif
 
 else
Signature · 1 line
2.26.2
#1 lore raw

PATCH 1/1 arm: k3: Consolidate and silence k3_fit_atf.sh call

Quoted 3 lines · Jan Kiszka

From: Jan Kiszka <[email protected]>

Thanks for cleaning ti up Jan. May be a small commit message would help.

Other that that:

Thanks and regards,
Lokesh

Quoted 41 lines
---
 arch/arm/mach-k3/config.mk | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)
arch/arm/mach-k3/config.mk +9 -8
index f6b63db349..f7afef610c 100644
@@ -48,22 +48,23 @@ ALL-y	+= tiboot3.bin
 endif
 
 ifdef CONFIG_ARM64
+
 ifeq ($(CONFIG_TI_SECURE_DEVICE),y)
 SPL_ITS := u-boot-spl-k3_HS.its
-$(SPL_ITS): FORCE
-	IS_HS=1 \
-	$(srctree)/tools/k3_fit_atf.sh \
-	$(patsubst %,$(obj)/dts/%.dtb,$(subst ",,$(CONFIG_SPL_OF_LIST))) > $@
-
+$(SPL_ITS): export IS_HS=1
 ALL-y	+= tispl.bin_HS
 else
 SPL_ITS := u-boot-spl-k3.its
-$(SPL_ITS): FORCE
+ALL-y	+= tispl.bin
+endif
+
+quiet_cmd_k3_mkits = MKITS   $@
+cmd_k3_mkits = \
 	$(srctree)/tools/k3_fit_atf.sh \
 	$(patsubst %,$(obj)/dts/%.dtb,$(subst ",,$(CONFIG_SPL_OF_LIST))) > $@
 
-ALL-y	+= tispl.bin
-endif
+$(SPL_ITS): FORCE
+	$(call cmd,k3_mkits)
 endif
 
 else