xtensa: move core-y in arch/xtensa/Makefile to arch/xtensa/Kbuild
authorMasahiro Yamada <masahiroy@kernel.org>
Wed, 11 Aug 2021 16:37:31 +0000 (01:37 +0900)
committerMax Filippov <jcmvbkbc@gmail.com>
Wed, 11 Aug 2021 18:37:13 +0000 (11:37 -0700)
Use obj-y to clean up Makefile.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Message-Id: <20210811163731.186125-4-masahiroy@kernel.org>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/Kbuild
arch/xtensa/Makefile
arch/xtensa/platforms/Makefile [new file with mode: 0644]

index a4e40e5..fd12f61 100644 (file)
@@ -1 +1,2 @@
 # SPDX-License-Identifier: GPL-2.0-only
+obj-y += kernel/ mm/ platforms/ boot/dts/
index 093e87b..96714ef 100644 (file)
@@ -58,9 +58,6 @@ KBUILD_DEFCONFIG := iss_defconfig
 LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name)
 
 head-y         := arch/xtensa/kernel/head.o
-core-y         += arch/xtensa/kernel/ arch/xtensa/mm/
-core-y         += arch/xtensa/platforms/$(platform-y)/
-core-y                 += arch/xtensa/boot/dts/
 
 libs-y         += arch/xtensa/lib/ $(LIBGCC)
 
diff --git a/arch/xtensa/platforms/Makefile b/arch/xtensa/platforms/Makefile
new file mode 100644 (file)
index 0000000..e2e7e07
--- /dev/null
@@ -0,0 +1,4 @@
+# SPDX-License-Identifier: GPL-2.0-only
+obj-$(CONFIG_XTENSA_PLATFORM_XT2000)   += xt2000/
+obj-$(CONFIG_XTENSA_PLATFORM_ISS)      += iss/
+obj-$(CONFIG_XTENSA_PLATFORM_XTFPGA)   += xtfpga/