diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2021-08-12 01:37:31 +0900 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2021-08-11 11:37:13 -0700 |
commit | 7b7cec477fc3cd42ce565dfc3e53f144504fc95c (patch) | |
tree | c1348db279614e8b0b79c266b817f62aab9cadb9 /arch | |
parent | 59210499a02a58e5b2c6da763d08adecb760d74b (diff) | |
download | linux-7b7cec477fc3cd42ce565dfc3e53f144504fc95c.tar.gz linux-7b7cec477fc3cd42ce565dfc3e53f144504fc95c.tar.bz2 linux-7b7cec477fc3cd42ce565dfc3e53f144504fc95c.zip |
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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/xtensa/Kbuild | 1 | ||||
-rw-r--r-- | arch/xtensa/Makefile | 3 | ||||
-rw-r--r-- | arch/xtensa/platforms/Makefile | 4 |
3 files changed, 5 insertions, 3 deletions
diff --git a/arch/xtensa/Kbuild b/arch/xtensa/Kbuild index a4e40e534e6a..fd12f61745ba 100644 --- a/arch/xtensa/Kbuild +++ b/arch/xtensa/Kbuild @@ -1 +1,2 @@ # SPDX-License-Identifier: GPL-2.0-only +obj-y += kernel/ mm/ platforms/ boot/dts/ diff --git a/arch/xtensa/Makefile b/arch/xtensa/Makefile index 093e87b889be..96714ef7c89e 100644 --- a/arch/xtensa/Makefile +++ b/arch/xtensa/Makefile @@ -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 index 000000000000..e2e7e0726979 --- /dev/null +++ b/arch/xtensa/platforms/Makefile @@ -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/ |