h8300: move core-y in arch/h8300/Makefile to arch/h8300/Kbuild
authorMasahiro Yamada <masahiroy@kernel.org>
Wed, 12 May 2021 07:57:27 +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/h8300/Kbuild
arch/h8300/Makefile

index a4e40e5..b2583e7 100644 (file)
@@ -1 +1,2 @@
 # SPDX-License-Identifier: GPL-2.0-only
+obj-y  += kernel/ mm/ boot/dts/
index ba0f26c..eb4cb8f 100644 (file)
@@ -30,9 +30,6 @@ ifeq ($(CROSS_COMPILE),)
 CROSS_COMPILE := $(call cc-cross-prefix, h8300-unknown-linux- h8300-linux-)
 endif
 
-core-y += arch/$(ARCH)/kernel/ arch/$(ARCH)/mm/
-core-y += arch/$(ARCH)/boot/dts/
-
 libs-y += arch/$(ARCH)/lib/
 
 boot := arch/h8300/boot