arm64: add option to build Image-dtb
authorHaojian Zhuang <haojian.zhuang@linaro.org>
Fri, 22 Apr 2016 09:23:29 +0000 (17:23 +0800)
committerAmit Pundir <amit.pundir@linaro.org>
Thu, 16 Jun 2016 08:14:10 +0000 (13:44 +0530)
Some bootloaders couldn't decompress Image.gz-dtb.

Change-Id: I698cd0c4ee6894e8d0655d88f3ecf4826c28a645
Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
arch/arm64/Makefile
arch/arm64/boot/Makefile

index 14c74a66c58e39da78705c74631aa390f15bb458..4c2298924cc3157941051d873ac815497f028717 100644 (file)
@@ -116,7 +116,7 @@ dtbs: prepare scripts
 dtbs_install:
        $(Q)$(MAKE) $(dtbinst)=$(boot)/dts
 
-Image.gz-dtb: vmlinux scripts dtbs
+Image-dtb Image.gz-dtb: vmlinux scripts dtbs
        $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
 
 PHONY += vdso_install
index ddd405f883445d920f5f9bfac58f8db13cc36e59..7ab8e74cd83acf1521805f593fdc4245c74a1b41 100644 (file)
@@ -32,6 +32,9 @@ $(obj)/Image: vmlinux FORCE
 $(obj)/Image.bz2: $(obj)/Image FORCE
        $(call if_changed,bzip2)
 
+$(obj)/Image-dtb: $(obj)/Image $(DTB_OBJS) FORCE
+       $(call if_changed,cat)
+
 $(obj)/Image.gz: $(obj)/Image FORCE
        $(call if_changed,gzip)