mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-09 06:43:09 +00:00
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: Chris Zankel <chris@zankel.net>
This commit is contained in:
parent
06a7476be7
commit
f1933189b8
@ -64,23 +64,23 @@ ifneq ($(VARIANT),)
|
|||||||
endif
|
endif
|
||||||
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)
|
LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name)
|
||||||
|
|
||||||
head-y := arch/xtensa/kernel/head.o
|
head-y := arch/xtensa/kernel/head.o
|
||||||
core-y += arch/xtensa/kernel/ arch/xtensa/mm/
|
core-y += arch/xtensa/kernel/ arch/xtensa/mm/
|
||||||
ifneq ($(VARIANT),)
|
core-y += $(buildvar) $(buildplf)
|
||||||
core-y += arch/xtensa/variants/$(VARIANT)/
|
|
||||||
endif
|
|
||||||
ifneq ($(PLATFORM),)
|
|
||||||
core-y += arch/xtensa/platforms/$(PLATFORM)/
|
|
||||||
endif
|
|
||||||
libs-y += arch/xtensa/lib/ $(LIBGCC)
|
libs-y += arch/xtensa/lib/ $(LIBGCC)
|
||||||
|
|
||||||
boot := arch/xtensa/boot
|
boot := arch/xtensa/boot
|
||||||
|
|
||||||
|
|
||||||
all: zImage
|
all: zImage
|
||||||
|
|
||||||
bzImage : zImage
|
bzImage : zImage
|
||||||
|
@ -1 +0,0 @@
|
|||||||
# dc232b Makefile
|
|
@ -1 +0,0 @@
|
|||||||
# fsf Makefile
|
|
Loading…
Reference in New Issue
Block a user