summaryrefslogtreecommitdiff
path: root/arch/c6x/boot/Makefile
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2012-11-28 03:29:14 +0400
committerRob Herring <rob.herring@calxeda.com>2012-12-04 03:17:49 +0400
commit1020e29cdab6bed8521a5a1a1b6f6513c393bc85 (patch)
tree9fc0dc87ae0c18ac09e1b3a9b03f91013b3463f8 /arch/c6x/boot/Makefile
parent19fbd6b2961ccbdba73c6c731ef27da29063e094 (diff)
downloadlinux-1020e29cdab6bed8521a5a1a1b6f6513c393bc85.tar.xz
c6x: use new common dtc rule
The current rules have the .dtb files build in a different directory from the .dts files. This patch changes c6x to use the generic dtb rule which builds .dtb files in the same directory as the source .dts. This requires moving parts of arch/c6x/boot/Makefile into newly created arch/c6x/boot/dts/Makefile, and updating arch/c6x/Makefile to call the new Makefile. linked_dtb.S is also moved into boot/dts/ since it's used by rules that were moved. Acked-by: Mark Salter <msalter@redhat.com> Cc: Aurelien Jacquiot <a-jacquiot@ti.com> Cc: linux-c6x-dev@linux-c6x.org Signed-off-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Diffstat (limited to 'arch/c6x/boot/Makefile')
-rw-r--r--arch/c6x/boot/Makefile20
1 files changed, 0 insertions, 20 deletions
diff --git a/arch/c6x/boot/Makefile b/arch/c6x/boot/Makefile
index 6891257d514c..8734abee548e 100644
--- a/arch/c6x/boot/Makefile
+++ b/arch/c6x/boot/Makefile
@@ -6,25 +6,5 @@ OBJCOPYFLAGS_vmlinux.bin := -O binary
$(obj)/vmlinux.bin: vmlinux FORCE
$(call if_changed,objcopy)
-DTC_FLAGS ?= -p 1024
-
-ifneq ($(DTB),)
-obj-y += linked_dtb.o
-endif
-
-$(obj)/%.dtb: $(src)/dts/%.dts FORCE
- $(call if_changed_dep,dtc)
-
-quiet_cmd_cp = CP $< $@$2
- cmd_cp = cat $< >$@$2 || (rm -f $@ && echo false)
-
-# Generate builtin.dtb from $(DTB).dtb
-$(obj)/builtin.dtb: $(obj)/$(DTB).dtb
- $(call if_changed,cp)
-
-$(obj)/linked_dtb.o: $(obj)/builtin.dtb
-
$(obj)/dtbImage.%: vmlinux
$(call if_changed,objcopy)
-
-clean-files := $(obj)/*.dtb