aboutsummaryrefslogtreecommitdiffstats
path: root/arch/xtensa/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'arch/xtensa/Makefile')
-rw-r--r--arch/xtensa/Makefile28
1 files changed, 9 insertions, 19 deletions
diff --git a/arch/xtensa/Makefile b/arch/xtensa/Makefile
index 015b6b2a26b9..1da55fe4beff 100644
--- a/arch/xtensa/Makefile
+++ b/arch/xtensa/Makefile
@@ -33,6 +33,15 @@ KBUILD_CFLAGS += -ffreestanding
33 33
34KBUILD_CFLAGS += -pipe -mlongcalls 34KBUILD_CFLAGS += -pipe -mlongcalls
35 35
36vardirs := $(patsubst %,arch/xtensa/variants/%/,$(variant-y))
37plfdirs := $(patsubst %,arch/xtensa/platforms/%/,$(platform-y))
38
39ifeq ($(KBUILD_SRC),)
40KBUILD_CPPFLAGS += $(patsubst %,-I%include,$(vardirs) $(plfdirs))
41else
42KBUILD_CPPFLAGS += $(patsubst %,-I$(srctree)/%include,$(vardirs) $(plfdirs))
43endif
44
36KBUILD_DEFCONFIG := iss_defconfig 45KBUILD_DEFCONFIG := iss_defconfig
37 46
38# ramdisk/initrd support 47# ramdisk/initrd support
@@ -66,21 +75,6 @@ libs-y += arch/xtensa/lib/ $(LIBGCC)
66 75
67boot := arch/xtensa/boot 76boot := arch/xtensa/boot
68 77
69archinc := include/asm-xtensa
70
71archprepare: $(archinc)/.platform
72
73# Update processor variant and platform symlinks if something which affects
74# them changed.
75
76$(archinc)/.platform: $(wildcard include/config/arch/*.h) include/config/auto.conf
77 @echo ' SYMLINK $(archinc)/variant -> $(archinc)/variant-$(VARIANT)'
78 $(Q)mkdir -p $(archinc)
79 $(Q)ln -fsn $(srctree)/$(archinc)/variant-$(VARIANT) $(archinc)/variant
80 @echo ' SYMLINK $(archinc)/platform -> $(archinc)/platform-$(PLATFORM)'
81 $(Q)ln -fsn $(srctree)/$(archinc)/platform-$(PLATFORM) $(archinc)/platform
82 @touch $@
83
84 78
85all: zImage 79all: zImage
86 80
@@ -89,10 +83,6 @@ bzImage : zImage
89zImage zImage.initrd: vmlinux 83zImage zImage.initrd: vmlinux
90 $(Q)$(MAKE) $(build)=$(boot) $@ 84 $(Q)$(MAKE) $(build)=$(boot) $@
91 85
92CLEAN_FILES += arch/xtensa/vmlinux.lds \
93 $(archinc)/platform $(archinc)/variant \
94 $(archinc)/.platform
95
96define archhelp 86define archhelp
97 @echo '* zImage - Compressed kernel image (arch/xtensa/boot/images/zImage.*)' 87 @echo '* zImage - Compressed kernel image (arch/xtensa/boot/images/zImage.*)'
98endef 88endef