aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Richter <rrichter@cavium.com>2014-09-03 09:54:55 -0400
committerRobert Richter <rrichter@cavium.com>2014-10-21 12:06:58 -0400
commitd38726c485d3fd6e9f2ebd1adaef0c3ead48a5ac (patch)
tree3f49c87a782e2af45dca51c116bd7ab2d669ce8c
parent9fb5e5372208973984a23ee6f5f025c05d364633 (diff)
dts, arm/arm64: Remove dtbs build rules in sub-makes
Add dtb files to build targets and let kbuild handle them. Thus, special dtbs rules can be removed. This eases Makefiles and the implementation of the support of vendor dtb subdirectories. Signed-off-by: Robert Richter <rrichter@cavium.com>
-rw-r--r--arch/arm/Makefile2
-rw-r--r--arch/arm/boot/dts/Makefile10
-rw-r--r--arch/arm64/Makefile2
-rw-r--r--arch/arm64/boot/dts/Makefile8
4 files changed, 6 insertions, 16 deletions
diff --git a/arch/arm/Makefile b/arch/arm/Makefile
index c81e0674e568..b61adfae29d1 100644
--- a/arch/arm/Makefile
+++ b/arch/arm/Makefile
@@ -314,7 +314,7 @@ $(INSTALL_TARGETS):
314PHONY += dtbs dtbs_install 314PHONY += dtbs dtbs_install
315 315
316dtbs: prepare scripts 316dtbs: prepare scripts
317 $(Q)$(MAKE) $(build)=$(boot)/dts MACHINE=$(MACHINE) $@ 317 $(Q)$(MAKE) $(build)=$(boot)/dts MACHINE=$(MACHINE)
318 318
319dtbs_install: 319dtbs_install:
320 $(Q)$(MAKE) $(dtbinst)=$(boot)/dts MACHINE=$(MACHINE) 320 $(Q)$(MAKE) $(dtbinst)=$(boot)/dts MACHINE=$(MACHINE)
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index e0d348b4d1fa..6e784fac5798 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -517,13 +517,7 @@ dtb-$(CONFIG_MACH_DOVE) += dove-cm-a510.dtb \
517 dove-dove-db.dtb 517 dove-dove-db.dtb
518dtb-$(CONFIG_ARCH_MEDIATEK) += mt6589-aquaris5.dtb 518dtb-$(CONFIG_ARCH_MEDIATEK) += mt6589-aquaris5.dtb
519 519
520targets += dtbs dtbs_install
521targets += $(dtb-y)
522endif 520endif
523 521
524# *.dtb used to be generated in the directory above. Clean out the 522always := $(dtb-y)
525# old build results so people don't accidentally use them. 523clean-files := *.dtb
526dtbs: $(addprefix $(obj)/, $(dtb-y))
527 $(Q)rm -f $(obj)/../*.dtb
528
529clean-files := *.dtb
diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile
index 8e9167a19b6b..1c43cec971b5 100644
--- a/arch/arm64/Makefile
+++ b/arch/arm64/Makefile
@@ -73,7 +73,7 @@ zinstall install: vmlinux
73PHONY += dtbs dtbs_install 73PHONY += dtbs dtbs_install
74 74
75dtbs: prepare scripts 75dtbs: prepare scripts
76 $(Q)$(MAKE) $(build)=$(boot)/dts $@ 76 $(Q)$(MAKE) $(build)=$(boot)/dts
77 77
78dtbs_install: 78dtbs_install:
79 $(Q)$(MAKE) $(dtbinst)=$(boot)/dts 79 $(Q)$(MAKE) $(dtbinst)=$(boot)/dts
diff --git a/arch/arm64/boot/dts/Makefile b/arch/arm64/boot/dts/Makefile
index 29ac5adf50ae..aa28902c3582 100644
--- a/arch/arm64/boot/dts/Makefile
+++ b/arch/arm64/boot/dts/Makefile
@@ -2,9 +2,5 @@ dtb-$(CONFIG_ARCH_THUNDER) += thunder-88xx.dtb
2dtb-$(CONFIG_ARCH_VEXPRESS) += rtsm_ve-aemv8a.dtb foundation-v8.dtb 2dtb-$(CONFIG_ARCH_VEXPRESS) += rtsm_ve-aemv8a.dtb foundation-v8.dtb
3dtb-$(CONFIG_ARCH_XGENE) += apm-mustang.dtb 3dtb-$(CONFIG_ARCH_XGENE) += apm-mustang.dtb
4 4
5targets += dtbs dtbs_install 5always := $(dtb-y)
6targets += $(dtb-y) 6clean-files := *.dtb
7
8dtbs: $(addprefix $(obj)/, $(dtb-y))
9
10clean-files := *.dtb