summaryrefslogtreecommitdiff
path: root/arch/c6x/boot/dts
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2012-12-04 20:15:52 +0400
committerGrant Likely <grant.likely@secretlab.ca>2012-12-04 20:15:52 +0400
commitf2dcd0f8287967bb8b59f3feb775638f767f8e82 (patch)
tree4fe387cc30d991ba82b785b25aba3104457ef418 /arch/c6x/boot/dts
parent465aac6d496aa3e99caaa6868865fb3830f73d80 (diff)
parent300db34a7256c94dbb7676f1e87101a3bb13cdd9 (diff)
downloadlinux-f2dcd0f8287967bb8b59f3feb775638f767f8e82.tar.xz
Merge remote-tracking branch 'robherring/for-next' into devicetree/next
Diffstat (limited to 'arch/c6x/boot/dts')
-rw-r--r--arch/c6x/boot/dts/Makefile20
-rw-r--r--arch/c6x/boot/dts/linked_dtb.S2
2 files changed, 22 insertions, 0 deletions
diff --git a/arch/c6x/boot/dts/Makefile b/arch/c6x/boot/dts/Makefile
new file mode 100644
index 000000000000..c7528b02d061
--- /dev/null
+++ b/arch/c6x/boot/dts/Makefile
@@ -0,0 +1,20 @@
+#
+# Makefile for device trees
+#
+
+DTC_FLAGS ?= -p 1024
+
+ifneq ($(DTB),)
+obj-y += linked_dtb.o
+endif
+
+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
+
+clean-files := *.dtb
diff --git a/arch/c6x/boot/dts/linked_dtb.S b/arch/c6x/boot/dts/linked_dtb.S
new file mode 100644
index 000000000000..cf347f1d16ce
--- /dev/null
+++ b/arch/c6x/boot/dts/linked_dtb.S
@@ -0,0 +1,2 @@
+.section __fdt_blob,"a"
+.incbin "arch/c6x/boot/dts/builtin.dtb"