aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sh/Makefile')
-rw-r--r--arch/sh/Makefile12
1 files changed, 5 insertions, 7 deletions
diff --git a/arch/sh/Makefile b/arch/sh/Makefile
index 50c5cc31c302..859285d47a29 100644
--- a/arch/sh/Makefile
+++ b/arch/sh/Makefile
@@ -135,17 +135,14 @@ boot := arch/sh/boot
135 135
136CPPFLAGS_vmlinux.lds := -traditional 136CPPFLAGS_vmlinux.lds := -traditional
137 137
138ifneq ($(KBUILD_SRC),)
139incdir-prefix := $(srctree)/include/asm-sh/ 138incdir-prefix := $(srctree)/include/asm-sh/
140else
141incdir-prefix :=
142endif
143 139
144# Update machine arch and proc symlinks if something which affects 140# Update machine arch and proc symlinks if something which affects
145# them changed. We use .arch and .mach to indicate when they were 141# them changed. We use .arch and .mach to indicate when they were
146# updated last, otherwise make uses the target directory mtime. 142# updated last, otherwise make uses the target directory mtime.
147 143
148include/asm-sh/.cpu: $(wildcard include/config/cpu/*.h) include/config/auto.conf 144include/asm-sh/.cpu: $(wildcard include/config/cpu/*.h) \
145 include/config/auto.conf FORCE
149 @echo ' SYMLINK include/asm-sh/cpu -> include/asm-sh/$(cpuincdir-y)' 146 @echo ' SYMLINK include/asm-sh/cpu -> include/asm-sh/$(cpuincdir-y)'
150 $(Q)if [ ! -d include/asm-sh ]; then mkdir -p include/asm-sh; fi 147 $(Q)if [ ! -d include/asm-sh ]; then mkdir -p include/asm-sh; fi
151 $(Q)ln -fsn $(incdir-prefix)$(cpuincdir-y) include/asm-sh/cpu 148 $(Q)ln -fsn $(incdir-prefix)$(cpuincdir-y) include/asm-sh/cpu
@@ -155,7 +152,8 @@ include/asm-sh/.cpu: $(wildcard include/config/cpu/*.h) include/config/auto.conf
155# don't, just reference the parent directory so the semantics are 152# don't, just reference the parent directory so the semantics are
156# kept roughly the same. 153# kept roughly the same.
157 154
158include/asm-sh/.mach: $(wildcard include/config/sh/*.h) include/config/auto.conf 155include/asm-sh/.mach: $(wildcard include/config/sh/*.h) \
156 include/config/auto.conf FORCE
159 @echo -n ' SYMLINK include/asm-sh/mach -> ' 157 @echo -n ' SYMLINK include/asm-sh/mach -> '
160 $(Q)if [ ! -d include/asm-sh ]; then mkdir -p include/asm-sh; fi 158 $(Q)if [ ! -d include/asm-sh ]; then mkdir -p include/asm-sh; fi
161 $(Q)if [ -d $(incdir-prefix)$(incdir-y) ]; then \ 159 $(Q)if [ -d $(incdir-prefix)$(incdir-y) ]; then \
@@ -168,7 +166,7 @@ include/asm-sh/.mach: $(wildcard include/config/sh/*.h) include/config/auto.conf
168 fi 166 fi
169 @touch $@ 167 @touch $@
170 168
171archprepare: maketools include/asm-sh/.cpu include/asm-sh/.mach 169archprepare: include/asm-sh/.cpu include/asm-sh/.mach maketools
172 170
173PHONY += maketools FORCE 171PHONY += maketools FORCE
174maketools: include/linux/version.h FORCE 172maketools: include/linux/version.h FORCE