[RFC,10/13] ARM: dts: add FIT image build support for ARM architecture

Message ID 1523956215-28154-11-git-send-email-t-kristo@ti.com
State New
Headers show
  • ARM: dts: DT overlay support infra + some data
Related show

Commit Message

Tero Kristo April 17, 2018, 9:10 a.m.
Add basic .itb build target for ARM architecture. FIT images generally
contain the kernel and different DTB + overlay files, so an extra
dependency is made towards zImage being available.

Signed-off-by: Tero Kristo <t-kristo@ti.com>

 arch/arm/Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)


Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


diff --git a/arch/arm/Makefile b/arch/arm/Makefile
index ca09509..8d4811b 100644
--- a/arch/arm/Makefile
+++ b/arch/arm/Makefile
@@ -343,11 +343,14 @@  $(BOOT_TARGETS): vmlinux
 	$(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $@
-%.dtb %.dtbo: dtbdir=$(patsubst %/,%,$(patsubst %./,%,$(boot)/dts/$(dir $@)))
+%.dtb %.dtbo %.itb: dtbdir=$(patsubst %/,%,$(patsubst %./,%,$(boot)/dts/$(dir $@)))
 %.dtb %.dtbo: | scripts
 	$(Q)$(MAKE) $(build)=$(dtbdir) MACHINE=$(MACHINE) $(boot)/dts/$@
+%.itb: | scripts zImage
+	$(Q)$(MAKE) $(build)=$(dtbdir) MACHINE=$(MACHINE) $(boot)/dts/$@
 PHONY += dtbs dtbs_install
 dtbs: prepare scripts