[PATCH] nds32: move core-y in arch/nds32/Makefile to arch/nds32/Kbuild

From: Masahiro Yamada
Date: Wed Aug 11 2021 - 12:45:15 EST


Use obj-y to clean up Makefile.

Signed-off-by: Masahiro Yamada <masahiroy@xxxxxxxxxx>
---

arch/nds32/Kbuild | 3 +++
arch/nds32/Makefile | 3 ---
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/nds32/Kbuild b/arch/nds32/Kbuild
index a4e40e534e6a..565b9bc3c9db 100644
--- a/arch/nds32/Kbuild
+++ b/arch/nds32/Kbuild
@@ -1 +1,4 @@
# SPDX-License-Identifier: GPL-2.0-only
+obj-y += kernel/ mm/
+obj-$(CONFIG_FPU) += math-emu/
+obj-y += boot/dts/
diff --git a/arch/nds32/Makefile b/arch/nds32/Makefile
index ccdca7142020..853a5df32f68 100644
--- a/arch/nds32/Makefile
+++ b/arch/nds32/Makefile
@@ -25,8 +25,6 @@ export TEXTADDR


# If we have a machine-specific directory, then include it in the build.
-core-y += arch/nds32/kernel/ arch/nds32/mm/
-core-$(CONFIG_FPU) += arch/nds32/math-emu/
libs-y += arch/nds32/lib/

ifneq '$(CONFIG_NDS32_BUILTIN_DTB)' '""'
@@ -48,7 +46,6 @@ CHECKFLAGS += -D__NDS32_EB__
endif

boot := arch/nds32/boot
-core-y += $(boot)/dts/

Image: vmlinux
$(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
--
2.30.2