diff options
author | Chris Zankel <chris@zankel.net> | 2008-11-06 09:40:46 -0500 |
---|---|---|
committer | Chris Zankel <chris@zankel.net> | 2008-11-06 13:25:09 -0500 |
commit | 367b8112fe2ea5c39a7bb4d263dcdd9b612fae18 (patch) | |
tree | 9f3349189718dd2c5678faf0ab38f389786b6925 /arch/xtensa/Makefile | |
parent | 206ead28377fee86b129637edada8c77816cc0d6 (diff) |
xtensa: move headers files to arch/xtensa/include
Move all header files for xtensa to arch/xtensa/include and platform and
variant header files to the appropriate arch/xtensa/platforms/ and
arch/xtensa/variants/ directories.
Moving the files gets also rid of all uses of symlinks in the Makefile.
This has been completed already for the majority of the architectures
and xtensa is one out of six missing.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Chris Zankel <chris@zankel.net>
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 |