Skip to content

Commit

Permalink
xtensa: move core-y in arch/xtensa/Makefile to arch/xtensa/Kbuild
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Masahiro Yamada authored and Max Filippov committed Aug 11, 2021
1 parent 5921049 commit 7b7cec4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions arch/xtensa/Kbuild
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
# SPDX-License-Identifier: GPL-2.0-only
obj-y += kernel/ mm/ platforms/ boot/dts/
3 changes: 0 additions & 3 deletions arch/xtensa/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
4 changes: 4 additions & 0 deletions arch/xtensa/platforms/Makefile
Original file line number Diff line number Diff line change
@@ -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/

0 comments on commit 7b7cec4

Please sign in to comment.