diff options
author | Chris Zankel <chris@zankel.net> | 2009-04-02 19:58:53 -0400 |
---|---|---|
committer | Chris Zankel <chris@zankel.net> | 2009-04-03 03:06:45 -0400 |
commit | f1933189b89da2b34fc37e6737737c8c9bf01139 (patch) | |
tree | e72eb72eb1ec8bd5c59828f7629fd40b8d99c187 /arch | |
parent | 06a7476be78c58a5ee0f4b4cc4acf43800087d52 (diff) |
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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/xtensa/Makefile | 16 | ||||
-rw-r--r-- | arch/xtensa/variants/dc232b/Makefile | 1 | ||||
-rw-r--r-- | arch/xtensa/variants/fsf/Makefile | 1 |
3 files changed, 8 insertions, 10 deletions
diff --git a/arch/xtensa/Makefile b/arch/xtensa/Makefile index d0a8ba4b12cf..4caffac3ca2e 100644 --- a/arch/xtensa/Makefile +++ b/arch/xtensa/Makefile | |||
@@ -64,23 +64,23 @@ ifneq ($(VARIANT),) | |||
64 | endif | 64 | endif |
65 | endif | 65 | endif |
66 | 66 | ||
67 | # | 67 | # Only build variant and/or platform if it includes a Makefile |
68 | |||
69 | buildvar := $(shell test -a $(srctree)/arch/xtensa/variants/$(VARIANT)/Makefile && echo arch/xtensa/variants/$(VARIANT)/) | ||
70 | buildplf := $(shell test -a $(srctree)/arch/xtensa/platforms/$(PLATFORM)/Makefile && echo arch/xtensa/platforms/$(PLATFORM)/) | ||
71 | |||
72 | # Find libgcc.a | ||
68 | 73 | ||
69 | LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name) | 74 | LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name) |
70 | 75 | ||
71 | head-y := arch/xtensa/kernel/head.o | 76 | head-y := arch/xtensa/kernel/head.o |
72 | core-y += arch/xtensa/kernel/ arch/xtensa/mm/ | 77 | core-y += arch/xtensa/kernel/ arch/xtensa/mm/ |
73 | ifneq ($(VARIANT),) | 78 | core-y += $(buildvar) $(buildplf) |
74 | core-y += arch/xtensa/variants/$(VARIANT)/ | 79 | |
75 | endif | ||
76 | ifneq ($(PLATFORM),) | ||
77 | core-y += arch/xtensa/platforms/$(PLATFORM)/ | ||
78 | endif | ||
79 | libs-y += arch/xtensa/lib/ $(LIBGCC) | 80 | libs-y += arch/xtensa/lib/ $(LIBGCC) |
80 | 81 | ||
81 | boot := arch/xtensa/boot | 82 | boot := arch/xtensa/boot |
82 | 83 | ||
83 | |||
84 | all: zImage | 84 | all: zImage |
85 | 85 | ||
86 | bzImage : zImage | 86 | bzImage : zImage |
diff --git a/arch/xtensa/variants/dc232b/Makefile b/arch/xtensa/variants/dc232b/Makefile deleted file mode 100644 index 3c8f268317d3..000000000000 --- a/arch/xtensa/variants/dc232b/Makefile +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | # dc232b Makefile | ||
diff --git a/arch/xtensa/variants/fsf/Makefile b/arch/xtensa/variants/fsf/Makefile deleted file mode 100644 index 3fadcfd03d19..000000000000 --- a/arch/xtensa/variants/fsf/Makefile +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | # fsf Makefile | ||