summaryrefslogtreecommitdiffstats
path: root/arch/csky/boot/dts
diff options
context:
space:
mode:
authorGuo Ren <ren_guo@c-sky.com>2018-09-05 08:25:06 +0200
committerGuo Ren <ren_guo@c-sky.com>2018-10-25 17:36:19 +0200
commitc32e64e852f3f5c0fd709f84bc94736840088375 (patch)
tree420e0ad361bb187377d7e038b3058391a169466c /arch/csky/boot/dts
parentLinux 4.19 (diff)
downloadlinux-c32e64e852f3f5c0fd709f84bc94736840088375.tar.xz
linux-c32e64e852f3f5c0fd709f84bc94736840088375.zip
csky: Build infrastructure
This patch adds Makefile, Kconfig for build infrastructure. Signed-off-by: Guo Ren <ren_guo@c-sky.com> Acked-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/csky/boot/dts')
-rw-r--r--arch/csky/boot/dts/Makefile13
l---------arch/csky/boot/dts/include/dt-bindings1
2 files changed, 14 insertions, 0 deletions
diff --git a/arch/csky/boot/dts/Makefile b/arch/csky/boot/dts/Makefile
new file mode 100644
index 000000000000..305e81a5e91e
--- /dev/null
+++ b/arch/csky/boot/dts/Makefile
@@ -0,0 +1,13 @@
+dtstree := $(srctree)/$(src)
+
+ifneq '$(CONFIG_CSKY_BUILTIN_DTB)' '""'
+builtindtb-y := $(patsubst "%",%,$(CONFIG_CSKY_BUILTIN_DTB))
+dtb-y += $(builtindtb-y).dtb
+obj-y += $(builtindtb-y).dtb.o
+.SECONDARY: $(obj)/$(builtindtb-y).dtb.S
+else
+dtb-y := $(patsubst $(dtstree)/%.dts,%.dtb, $(wildcard $(dtstree)/*.dts))
+endif
+
+always += $(dtb-y)
+clean-files += *.dtb *.dtb.S
diff --git a/arch/csky/boot/dts/include/dt-bindings b/arch/csky/boot/dts/include/dt-bindings
new file mode 120000
index 000000000000..08c00e4972fa
--- /dev/null
+++ b/arch/csky/boot/dts/include/dt-bindings
@@ -0,0 +1 @@
+../../../../../include/dt-bindings \ No newline at end of file