Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

arm64: Add dtbs target for building all the enabled dtb files

Based on Rob Herring's patches for arch/arm, this patch adds a dtbs
target to arch/arm64/boot/Makefile.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Rob Herring <rob.herring@calxeda.com>

+12 -6
+11 -6
arch/arm64/Makefile
··· 41 41 libs-y += $(LIBGCC) 42 42 43 43 # Default target when executing plain make 44 - KBUILD_IMAGE := Image.gz 44 + KBUILD_IMAGE := Image.gz 45 + KBUILD_DTBS := dtbs 45 46 46 - all: $(KBUILD_IMAGE) 47 + all: $(KBUILD_IMAGE) $(KBUILD_DTBS) 47 48 48 49 boot := arch/arm64/boot 49 50 50 51 Image Image.gz: vmlinux 51 - $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $(boot)/$@ 52 + $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ 52 53 53 54 zinstall install: vmlinux 54 - $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $@ 55 + $(Q)$(MAKE) $(build)=$(boot) $@ 55 56 56 - %.dtb: 57 - $(Q)$(MAKE) $(build)=$(boot)/dts MACHINE=$(MACHINE) $(boot)/dts/$@ 57 + %.dtb: scripts 58 + $(Q)$(MAKE) $(build)=$(boot)/dts $(boot)/dts/$@ 59 + 60 + dtbs: scripts 61 + $(Q)$(MAKE) $(build)=$(boot)/dts $(boot)/dts/$@ 58 62 59 63 # We use MRPROPER_FILES and CLEAN_FILES now 60 64 archclean: ··· 67 63 define archhelp 68 64 echo '* Image.gz - Compressed kernel image (arch/$(ARCH)/boot/Image.gz)' 69 65 echo ' Image - Uncompressed kernel image (arch/$(ARCH)/boot/Image)' 66 + echo '* dtbs - Build device tree blobs for enabled boards' 70 67 echo ' install - Install uncompressed kernel' 71 68 echo ' zinstall - Install compressed kernel' 72 69 echo ' Install using (your) ~/bin/installkernel or'
+1
arch/arm64/boot/dts/.gitignore
··· 1 + *.dtb