sh: move core-y in arch/sh/Makefile to arch/sh/Kbuild
authorMasahiro Yamada <masahiroy@kernel.org>
Wed, 12 May 2021 07:57:29 +0000 (16:57 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Wed, 26 May 2021 14:11:47 +0000 (23:11 +0900)
Use obj-y to clean up Makefile.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
arch/sh/Kbuild
arch/sh/Makefile

index a4e40e5..48c2a09 100644 (file)
@@ -1 +1,4 @@
 # SPDX-License-Identifier: GPL-2.0-only
+obj-y                          += kernel/ mm/ boards/
+obj-$(CONFIG_SH_FPU_EMU)       += math-emu/
+obj-$(CONFIG_USE_BUILTIN_DTB)  += boot/dts/
index 44bcb80..88ddb6f 100644 (file)
@@ -116,11 +116,6 @@ export ld-bfd
 
 head-y := arch/sh/kernel/head_32.o
 
-core-y                         += arch/sh/kernel/ arch/sh/mm/ arch/sh/boards/
-core-$(CONFIG_SH_FPU_EMU)      += arch/sh/math-emu/
-
-core-$(CONFIG_USE_BUILTIN_DTB) += arch/sh/boot/dts/
-
 # Mach groups
 machdir-$(CONFIG_SOLUTION_ENGINE)              += mach-se
 machdir-$(CONFIG_SH_HP6XX)                     += mach-hp6xx