diff options
Diffstat (limited to 'arch/xtensa/Makefile')
-rw-r--r-- | arch/xtensa/Makefile | 28 |
1 files changed, 9 insertions, 19 deletions
diff --git a/arch/xtensa/Makefile b/arch/xtensa/Makefile index 015b6b2a26b..1da55fe4bef 100644 --- a/arch/xtensa/Makefile +++ b/arch/xtensa/Makefile | |||
@@ -33,6 +33,15 @@ KBUILD_CFLAGS += -ffreestanding | |||
33 | 33 | ||
34 | KBUILD_CFLAGS += -pipe -mlongcalls | 34 | KBUILD_CFLAGS += -pipe -mlongcalls |
35 | 35 | ||
36 | vardirs := $(patsubst %,arch/xtensa/variants/%/,$(variant-y)) | ||
37 | plfdirs := $(patsubst %,arch/xtensa/platforms/%/,$(platform-y)) | ||
38 | |||
39 | ifeq ($(KBUILD_SRC),) | ||
40 | KBUILD_CPPFLAGS += $(patsubst %,-I%include,$(vardirs) $(plfdirs)) | ||
41 | else | ||
42 | KBUILD_CPPFLAGS += $(patsubst %,-I$(srctree)/%include,$(vardirs) $(plfdirs)) | ||
43 | endif | ||
44 | |||
36 | KBUILD_DEFCONFIG := iss_defconfig | 45 | KBUILD_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 | ||
67 | boot := arch/xtensa/boot | 76 | boot := arch/xtensa/boot |
68 | 77 | ||
69 | archinc := include/asm-xtensa | ||
70 | |||
71 | archprepare: $(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 | ||
85 | all: zImage | 79 | all: zImage |
86 | 80 | ||
@@ -89,10 +83,6 @@ bzImage : zImage | |||
89 | zImage zImage.initrd: vmlinux | 83 | zImage zImage.initrd: vmlinux |
90 | $(Q)$(MAKE) $(build)=$(boot) $@ | 84 | $(Q)$(MAKE) $(build)=$(boot) $@ |
91 | 85 | ||
92 | CLEAN_FILES += arch/xtensa/vmlinux.lds \ | ||
93 | $(archinc)/platform $(archinc)/variant \ | ||
94 | $(archinc)/.platform | ||
95 | |||
96 | define archhelp | 86 | define archhelp |
97 | @echo '* zImage - Compressed kernel image (arch/xtensa/boot/images/zImage.*)' | 87 | @echo '* zImage - Compressed kernel image (arch/xtensa/boot/images/zImage.*)' |
98 | endef | 88 | endef |