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

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>
This commit is contained in:
Masahiro Yamada 2021-08-12 01:37:31 +09:00 committed by Max Filippov
parent 59210499a0
commit 7b7cec477f
3 changed files with 5 additions and 3 deletions

View File

@ -1 +1,2 @@
# SPDX-License-Identifier: GPL-2.0-only
obj-y += kernel/ mm/ platforms/ boot/dts/

View 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)

View File

@ -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/