aboutsummaryrefslogtreecommitdiffstats
path: root/arch/xtensa
diff options
context:
space:
mode:
Diffstat (limited to 'arch/xtensa')
-rw-r--r--arch/xtensa/Makefile16
-rw-r--r--arch/xtensa/variants/dc232b/Makefile1
-rw-r--r--arch/xtensa/variants/fsf/Makefile1
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
65endif 65endif
66 66
67# 67# Only build variant and/or platform if it includes a Makefile
68
69buildvar := $(shell test -a $(srctree)/arch/xtensa/variants/$(VARIANT)/Makefile && echo arch/xtensa/variants/$(VARIANT)/)
70buildplf := $(shell test -a $(srctree)/arch/xtensa/platforms/$(PLATFORM)/Makefile && echo arch/xtensa/platforms/$(PLATFORM)/)
71
72# Find libgcc.a
68 73
69LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name) 74LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name)
70 75
71head-y := arch/xtensa/kernel/head.o 76head-y := arch/xtensa/kernel/head.o
72core-y += arch/xtensa/kernel/ arch/xtensa/mm/ 77core-y += arch/xtensa/kernel/ arch/xtensa/mm/
73ifneq ($(VARIANT),) 78core-y += $(buildvar) $(buildplf)
74core-y += arch/xtensa/variants/$(VARIANT)/ 79
75endif
76ifneq ($(PLATFORM),)
77core-y += arch/xtensa/platforms/$(PLATFORM)/
78endif
79libs-y += arch/xtensa/lib/ $(LIBGCC) 80libs-y += arch/xtensa/lib/ $(LIBGCC)
80 81
81boot := arch/xtensa/boot 82boot := arch/xtensa/boot
82 83
83
84all: zImage 84all: zImage
85 85
86bzImage : zImage 86bzImage : 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