Skip to content

Commit 5921049

Browse files
masahir0yjcmvbkbc
authored andcommitted
xtensa: build platform directories unconditionally
All of arch/xtensa/platforms/*/ have Makefile. You do not need to check the presence of Makefile. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Message-Id: <20210811163731.186125-3-masahiroy@kernel.org> Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
1 parent c548584 commit 5921049

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

arch/xtensa/Makefile

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ platform-$(CONFIG_XTENSA_PLATFORM_XT2000) := xt2000
3232
platform-$(CONFIG_XTENSA_PLATFORM_ISS) := iss
3333
platform-$(CONFIG_XTENSA_PLATFORM_XTFPGA) := xtfpga
3434

35-
PLATFORM = $(platform-y)
36-
3735
# temporarily until string.h is fixed
3836
KBUILD_CFLAGS += -ffreestanding -D__linux__
3937
KBUILD_CFLAGS += -pipe -mlongcalls -mtext-section-literals
@@ -55,16 +53,13 @@ KBUILD_CPPFLAGS += $(patsubst %,-I$(srctree)/%include,$(vardirs) $(plfdirs))
5553

5654
KBUILD_DEFCONFIG := iss_defconfig
5755

58-
# Only build platform if it includes a Makefile
59-
buildplf := $(shell test -e $(srctree)/arch/xtensa/platforms/$(PLATFORM)/Makefile && echo arch/xtensa/platforms/$(PLATFORM)/)
60-
6156
# Find libgcc.a
6257

6358
LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name)
6459

6560
head-y := arch/xtensa/kernel/head.o
6661
core-y += arch/xtensa/kernel/ arch/xtensa/mm/
67-
core-y += $(buildplf)
62+
core-y += arch/xtensa/platforms/$(platform-y)/
6863
core-y += arch/xtensa/boot/dts/
6964

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

0 commit comments

Comments
 (0)