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

ARM: dt: change .dtb build rules to build in dts directory

The current rules have the .dtb files build in a different directory
from the .dts files. The only reason for this is that it was what
PowerPC has done historically. This patch changes ARM to use the generic
dtb rule which builds .dtb files in the same directory as the source .dts.

Cc: Russell King <linux@arm.linux.org.uk>
Cc: Arnd Bergmann <arnd@arndb.de>
Acked-by: Olof Johansson <olof@lixom.net>
Cc: linux-arm-kernel@lists.infradead.org
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
[swarren: added rm command for old stale .dtb files]
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Rob Herring <rob.herring@calxeda.com>

authored by

Grant Likely and committed by
Rob Herring
499cd829 90b335fb

+10 -14
+2 -2
arch/arm/Makefile
··· 292 292 $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $@ 293 293 294 294 %.dtb: scripts 295 - $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $(boot)/$@ 295 + $(Q)$(MAKE) $(build)=$(boot)/dts MACHINE=$(MACHINE) $(boot)/dts/$@ 296 296 297 297 dtbs: scripts 298 - $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $(boot)/$@ 298 + $(Q)$(MAKE) $(build)=$(boot)/dts MACHINE=$(MACHINE) dtbs 299 299 300 300 # We use MRPROPER_FILES and CLEAN_FILES now 301 301 archclean:
-12
arch/arm/boot/Makefile
··· 15 15 include $(srctree)/$(MACHINE)/Makefile.boot 16 16 endif 17 17 18 - include $(srctree)/arch/arm/boot/dts/Makefile 19 - 20 18 # Note: the following conditions must always be true: 21 19 # ZRELADDR == virt_to_phys(PAGE_OFFSET + TEXT_OFFSET) 22 20 # PARAMS_PHYS must be within 4MB of ZRELADDR ··· 56 58 $(kecho) ' Kernel: $@ is ready' 57 59 58 60 endif 59 - 60 - targets += $(dtb-y) 61 - 62 - # Rule to build device tree blobs 63 - $(obj)/%.dtb: $(src)/dts/%.dts FORCE 64 - $(call if_changed_dep,dtc) 65 - 66 - $(obj)/dtbs: $(addprefix $(obj)/, $(dtb-y)) 67 - 68 - clean-files := *.dtb 69 61 70 62 ifneq ($(LOADADDR),) 71 63 UIMAGE_LOADADDR=$(LOADADDR)
+8
arch/arm/boot/dts/Makefile
··· 104 104 wm8505-ref.dtb \ 105 105 wm8650-mid.dtb 106 106 107 + targets += dtbs 107 108 endif 109 + 110 + # *.dtb used to be generated in the directory above. Clean out the 111 + # old build results so people don't accidentally use them. 112 + dtbs: $(addprefix $(obj)/, $(dtb-y)) 113 + $(Q)rm -f $(obj)/../*.dtb 114 + 115 + clean-files := *.dtb