diff options
author | Bryan Wu <cooloney@kernel.org> | 2008-08-26 22:51:02 -0400 |
---|---|---|
committer | Bryan Wu <cooloney@kernel.org> | 2008-08-26 22:51:02 -0400 |
commit | 639f6571458948b5112be2cf00c0c2c04db2897d (patch) | |
tree | a4dd7af33d0e92c935ba1e904f6fb7e923ac825e /arch/blackfin/Makefile | |
parent | 3d9b7a5ce534f3963afcf8f4777267e5899fe007 (diff) |
Blackfin arch: move include/asm-blackfin header files to arch/blackfin
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Diffstat (limited to 'arch/blackfin/Makefile')
-rw-r--r-- | arch/blackfin/Makefile | 26 |
1 files changed, 5 insertions, 21 deletions
diff --git a/arch/blackfin/Makefile b/arch/blackfin/Makefile index 9564731ad3a8..eac0533d6e4f 100644 --- a/arch/blackfin/Makefile +++ b/arch/blackfin/Makefile | |||
@@ -98,36 +98,20 @@ libs-y += arch/$(ARCH)/lib/ | |||
98 | 98 | ||
99 | drivers-$(CONFIG_OPROFILE) += arch/$(ARCH)/oprofile/ | 99 | drivers-$(CONFIG_OPROFILE) += arch/$(ARCH)/oprofile/ |
100 | 100 | ||
101 | machdirs := $(patsubst %,arch/blackfin/mach-%/, $(machine-y)) | ||
101 | 102 | ||
103 | KBUILD_CFLAGS += -Iarch/$(ARCH)/include/ | ||
104 | KBUILD_CFLAGS += -Iarch/$(ARCH)/mach-$(MACHINE)/include | ||
102 | 105 | ||
103 | # Update machine arch symlinks if something which affects | 106 | KBUILD_CPPFLAGS += $(patsubst %,-I$(srctree)/%include,$(machdirs)) |
104 | # them changed. We use .mach to indicate when they were updated | ||
105 | # last, otherwise make uses the target directory mtime. | ||
106 | |||
107 | show_mach_symlink = : | ||
108 | quiet_show_mach_symlink = echo ' SYMLINK include/asm-$(ARCH)/mach-$(MACHINE) -> include/asm-$(ARCH)/mach' | ||
109 | silent_show_mach_symlink = : | ||
110 | include/asm-blackfin/.mach: $(wildcard include/config/arch/*.h) include/config/auto.conf | ||
111 | @$($(quiet)show_mach_symlink) | ||
112 | ifneq ($(KBUILD_SRC),) | ||
113 | $(Q)mkdir -p include/asm-$(ARCH) | ||
114 | $(Q)ln -fsn $(srctree)/include/asm-$(ARCH)/mach-$(MACHINE) include/asm-$(ARCH)/mach | ||
115 | else | ||
116 | $(Q)ln -fsn mach-$(MACHINE) include/asm-$(ARCH)/mach | ||
117 | endif | ||
118 | @touch $@ | ||
119 | 107 | ||
120 | CLEAN_FILES += \ | 108 | CLEAN_FILES += \ |
121 | include/asm-$(ARCH)/asm-offsets.h \ | 109 | arch/$(ARCH)/include/asm/asm-offsets.h \ |
122 | arch/$(ARCH)/kernel/asm-offsets.s \ | 110 | arch/$(ARCH)/kernel/asm-offsets.s \ |
123 | include/asm-$(ARCH)/mach \ | ||
124 | include/asm-$(ARCH)/.mach | ||
125 | 111 | ||
126 | archprepare: include/asm-blackfin/.mach | ||
127 | archclean: | 112 | archclean: |
128 | $(Q)$(MAKE) $(clean)=$(boot) | 113 | $(Q)$(MAKE) $(clean)=$(boot) |
129 | 114 | ||
130 | |||
131 | INSTALL_PATH ?= /tftpboot | 115 | INSTALL_PATH ?= /tftpboot |
132 | boot := arch/$(ARCH)/boot | 116 | boot := arch/$(ARCH)/boot |
133 | BOOT_TARGETS = vmImage | 117 | BOOT_TARGETS = vmImage |