linux/arch/arm64/boot/dts/arm
Masahiro Yamada 7e7962dd1a kbuild: handle dtb-y and CONFIG_OF_ALL_DTBS natively in Makefile.lib
If CONFIG_OF_ALL_DTBS is enabled, "make ARCH=arm64 dtbs" compiles each
DTB twice; one from arch/arm64/boot/dts/*/Makefile and the other from
the dtb-$(CONFIG_OF_ALL_DTBS) line in arch/arm64/boot/dts/Makefile.
It could be a race problem when building DTBS in parallel.

Another minor issue is CONFIG_OF_ALL_DTBS covers only *.dts in vendor
sub-directories, so this broke when Broadcom added one more hierarchy
in arch/arm64/boot/dts/broadcom/<soc>/.

One idea to fix the issues in a clean way is to move DTB handling
to Kbuild core scripts.  Makefile.dtbinst already recognizes dtb-y
natively, so it should not hurt to do so.

Add $(dtb-y) to extra-y, and $(dtb-) as well if CONFIG_OF_ALL_DTBS is
enabled.  All clutter things in Makefiles go away.

As a bonus clean-up, I also removed dts-dirs.  Just use subdir-y
directly to traverse sub-directories.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
[robh: corrected BUILTIN_DTB to CONFIG_BUILTIN_DTB]
Signed-off-by: Rob Herring <robh@kernel.org>
2017-11-09 17:03:07 -06:00
..
foundation-v8-gicv3.dts arm64: dts: add .dts for GICv3 Foundation model 2016-02-09 10:46:31 +00:00
foundation-v8.dts arm64: dts: split Foundation model dts to put the GIC separately 2016-02-09 10:46:31 +00:00
foundation-v8.dtsi arm64: dts: juno: replace underscores with hyphen in device node names 2017-08-02 11:32:14 +01:00
juno-base.dtsi arm64: dts: juno: replace underscores with hyphen in device node names 2017-08-02 11:32:14 +01:00
juno-clocks.dtsi arm64: dts: juno: remove dtsi nesting inside tree structure 2017-01-18 11:14:07 +00:00
juno-cs-r1r2.dtsi arm64: dts: juno: add CoreSight support for Juno r1/r2 variants 2017-01-18 11:14:23 +00:00
juno-motherboard.dtsi arm64: dts: juno: fix few unit address format warnings 2017-04-19 12:16:31 +01:00
juno-r1.dts arm64: dts: juno: add coresight CPU debug nodes 2017-05-19 14:30:34 +01:00
juno-r2.dts arm64: dts: juno: add coresight CPU debug nodes 2017-05-19 14:30:34 +01:00
juno.dts arm64: dts: juno: add coresight CPU debug nodes 2017-05-19 14:30:34 +01:00
Makefile kbuild: handle dtb-y and CONFIG_OF_ALL_DTBS natively in Makefile.lib 2017-11-09 17:03:07 -06:00
rtsm_ve-aemv8a.dts arm64: dts: vexpress: Support GICC_DIR operations 2016-12-30 15:31:24 +00:00
rtsm_ve-motherboard.dtsi arm64: dts: juno: replace underscores with hyphen in device node names 2017-08-02 11:32:14 +01:00
vexpress-v2f-1xv7-ca53x2.dts arm64: dts: juno/vexpress: fix node name unit-address presence warnings 2016-03-08 13:54:27 +00:00
vexpress-v2m-rs1.dtsi ARM64: dts: vexpress: Use a symlink to vexpress-v2m-rs1.dtsi from arch=arm 2015-10-14 17:55:50 +02:00