Skip to contentSkip to conversation

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

PATCH New Masahiro Yamada 1 participant 1 message Aug 11, 2021

lore
Share & tools
lore
#0 lore raw

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

Use obj-y to clean up Makefile.

---

 arch/nds32/Kbuild   | 3 +++
 arch/nds32/Makefile | 3 ---
 2 files changed, 3 insertions(+), 3 deletions(-)
arch/nds32/Kbuild +3 -0
index a4e40e534e6a..565b9bc3c9db 100644
@@ -1 +1,4 @@
 # SPDX-License-Identifier: GPL-2.0-only
+obj-y			+= kernel/ mm/
+obj-$(CONFIG_FPU)	+= math-emu/
+obj-y			+= boot/dts/
arch/nds32/Makefile +0 -3
index ccdca7142020..853a5df32f68 100644
@@ -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)/$@
Signature · 1 line
2.30.2