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:
parent
59210499a0
commit
7b7cec477f
|
@ -1 +1,2 @@
|
|||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
obj-y += kernel/ mm/ platforms/ boot/dts/
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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/
|
Loading…
Reference in New Issue