|
|
@@ -309,7 +309,7 @@ endif
|
|
|
|
|
|
# Build the DT binary blobs if we have OF configured
|
|
|
ifeq ($(CONFIG_USE_OF),y)
|
|
|
-KBUILD_DTBS := dtbs
|
|
|
+KBUILD_DTBS := dtbs itbs
|
|
|
endif
|
|
|
|
|
|
all: $(notdir $(KBUILD_IMAGE)) $(KBUILD_DTBS)
|
|
|
@@ -339,17 +339,28 @@ $(BOOT_TARGETS): vmlinux
|
|
|
$(INSTALL_TARGETS):
|
|
|
$(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $@
|
|
|
|
|
|
-%.dtb: | scripts
|
|
|
- $(Q)$(MAKE) $(build)=$(boot)/dts MACHINE=$(MACHINE) $(boot)/dts/$@
|
|
|
+%.dtb %.dtbo %.itb: dtbdir=$(patsubst %/,%,$(patsubst %./,%,$(boot)/dts/$(dir $@)))
|
|
|
|
|
|
-PHONY += dtbs dtbs_install
|
|
|
+%.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 itbs_install
|
|
|
|
|
|
dtbs: prepare scripts
|
|
|
$(Q)$(MAKE) $(build)=$(boot)/dts
|
|
|
|
|
|
+itbs: prepare scripts zImage
|
|
|
+ $(Q)$(MAKE) $(build)=$(boot)/dts BUILD_ITBS=y
|
|
|
+
|
|
|
dtbs_install:
|
|
|
$(Q)$(MAKE) $(dtbinst)=$(boot)/dts
|
|
|
|
|
|
+itbs_install:
|
|
|
+ $(Q)$(MAKE) $(dtbinst)=$(boot)/dts BUILD_ITBS=y
|
|
|
+
|
|
|
PHONY += vdso_install
|
|
|
vdso_install:
|
|
|
ifeq ($(CONFIG_VDSO),y)
|
|
|
@@ -373,6 +384,8 @@ define archhelp
|
|
|
echo ' (supply initrd image via make variable INITRD=<path>)'
|
|
|
echo '* dtbs - Build device tree blobs for enabled boards'
|
|
|
echo ' dtbs_install - Install dtbs to $(INSTALL_DTBS_PATH)'
|
|
|
+ echo '* itbs - Build FIT images for enabled boards'
|
|
|
+ echo ' itbs_install - Install FIT images to $(INSTALL_DTBS_PATH)'
|
|
|
echo ' install - Install uncompressed kernel'
|
|
|
echo ' zinstall - Install compressed kernel'
|
|
|
echo ' uinstall - Install U-Boot wrapped compressed kernel'
|