Skip to content

Commit 7b7cec4

Browse files
masahir0yjcmvbkbc
authored andcommitted
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>
1 parent 5921049 commit 7b7cec4

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

arch/xtensa/Kbuild

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
# SPDX-License-Identifier: GPL-2.0-only
2+
obj-y += kernel/ mm/ platforms/ boot/dts/

arch/xtensa/Makefile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,6 @@ KBUILD_DEFCONFIG := iss_defconfig
5858
LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name)
5959

6060
head-y := arch/xtensa/kernel/head.o
61-
core-y += arch/xtensa/kernel/ arch/xtensa/mm/
62-
core-y += arch/xtensa/platforms/$(platform-y)/
63-
core-y += arch/xtensa/boot/dts/
6461

6562
libs-y += arch/xtensa/lib/ $(LIBGCC)
6663

arch/xtensa/platforms/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# SPDX-License-Identifier: GPL-2.0-only
2+
obj-$(CONFIG_XTENSA_PLATFORM_XT2000) += xt2000/
3+
obj-$(CONFIG_XTENSA_PLATFORM_ISS) += iss/
4+
obj-$(CONFIG_XTENSA_PLATFORM_XTFPGA) += xtfpga/

0 commit comments

Comments
 (0)