Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f1933189 authored by Chris Zankel's avatar Chris Zankel
Browse files

xtensa: only build platform or variant if they contain a Makefile



We only add the platform or variant directory to core-y if it
contains a Makefile. Consequently, we can remove the Makefiles
for the dc232b and fsf processor variants.

Signed-off-by: default avatarChris Zankel <chris@zankel.net>
parent 06a7476b
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
@@ -64,23 +64,23 @@ ifneq ($(VARIANT),)
  endif
endif

#
# Only build variant and/or platform if it includes a Makefile

buildvar := $(shell test -a $(srctree)/arch/xtensa/variants/$(VARIANT)/Makefile && echo arch/xtensa/variants/$(VARIANT)/)
buildplf := $(shell test -a $(srctree)/arch/xtensa/platforms/$(PLATFORM)/Makefile && echo arch/xtensa/platforms/$(PLATFORM)/)

# Find libgcc.a

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

head-y		:= arch/xtensa/kernel/head.o
core-y		+= arch/xtensa/kernel/ arch/xtensa/mm/
ifneq ($(VARIANT),)
core-y		+= arch/xtensa/variants/$(VARIANT)/
endif
ifneq ($(PLATFORM),)
core-y		+= arch/xtensa/platforms/$(PLATFORM)/
endif
core-y		+= $(buildvar) $(buildplf)

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

boot		:= arch/xtensa/boot


all: zImage

bzImage : zImage
+0 −1
Original line number Diff line number Diff line
# dc232b Makefile

arch/xtensa/variants/fsf/Makefile

deleted100644 → 0
+0 −1
Original line number Diff line number Diff line
# fsf Makefile