aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Johansson <erik.johansson@motorola.com>2007-07-12 03:37:00 -0400
committerPaul Mundt <lethal@linux-sh.org>2007-07-12 03:37:00 -0400
commit8cb661d6a4b69734c393beeb523cbf86c915f374 (patch)
tree1c99adf454101d534f0017c668841fda85adc58b
parent0caf3ead5131215cbd462d31f7658798030f793d (diff)
sh: fix race in parallel out-of-tree build
Depending on which of the three dependencies for archprepare (in arch/sh/Makefile) get built first, the directory include/asm-sh may or may not exist when the maketools target is built. If the directory does not exist, awk will fail to generate machtypes.h. This patch fixes this by creating the directory before awk is executed. Signed-off-by: Erik Johansson <erik.johansson@motorola.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
-rw-r--r--arch/sh/tools/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sh/tools/Makefile b/arch/sh/tools/Makefile
index 3c370a113291..567516b58acc 100644
--- a/arch/sh/tools/Makefile
+++ b/arch/sh/tools/Makefile
@@ -12,4 +12,5 @@
12 12
13include/asm-sh/machtypes.h: $(src)/gen-mach-types $(src)/mach-types 13include/asm-sh/machtypes.h: $(src)/gen-mach-types $(src)/mach-types
14 @echo ' Generating $@' 14 @echo ' Generating $@'
15 $(Q)if [ ! -d include/asm-sh ]; then mkdir -p include/asm-sh; fi
15 $(Q)$(AWK) -f $^ > $@ || { rm -f $@; /bin/false; } 16 $(Q)$(AWK) -f $^ > $@ || { rm -f $@; /bin/false; }