openrisc: add arch/openrisc/Kbuild
authorMasahiro Yamada <masahiroy@kernel.org>
Sun, 17 Jan 2021 08:03:32 +0000 (17:03 +0900)
committerStafford Horne <shorne@gmail.com>
Mon, 18 Jan 2021 11:53:14 +0000 (20:53 +0900)
Describe the subdirectories under arch/openrisc/ in arch/openrisc/Kbuild
so you can use the standard obj-y syntax.

I removed the CONFIG_OPENRISC_BUILTIN_DTB conditional because it is
already controlled by arch/openrisc/boot/dts/Makefile.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Stafford Horne <shorne@gmail.com>
arch/openrisc/Kbuild [new file with mode: 0644]
arch/openrisc/Makefile

diff --git a/arch/openrisc/Kbuild b/arch/openrisc/Kbuild
new file mode 100644 (file)
index 0000000..4234b4c
--- /dev/null
@@ -0,0 +1,3 @@
+# SPDX-License-Identifier: GPL-2.0
+obj-y += lib/ kernel/ mm/
+obj-y += boot/dts/
index b13404f1f8bd4028f9793114298ce91dae6dc318..410e7abfac698262379fda147854606d2d027289 100644 (file)
@@ -42,18 +42,9 @@ endif
 
 head-y                 := arch/openrisc/kernel/head.o
 
-core-y         += arch/openrisc/lib/ \
-                  arch/openrisc/kernel/ \
-                  arch/openrisc/mm/
+core-y         += arch/openrisc/
 libs-y         += $(LIBGCC)
 
-ifneq '$(CONFIG_OPENRISC_BUILTIN_DTB)' '""'
-BUILTIN_DTB := y
-else
-BUILTIN_DTB := n
-endif
-core-$(BUILTIN_DTB) += arch/openrisc/boot/dts/
-
 PHONY += vmlinux.bin
 
 vmlinux.bin: vmlinux