Commit:     8cb661d6a4b69734c393beeb523cbf86c915f374
Parent:     0caf3ead5131215cbd462d31f7658798030f793d
Author:     Erik Johansson <[EMAIL PROTECTED]>
AuthorDate: Thu Jul 12 16:37:00 2007 +0900
Committer:  Paul Mundt <[EMAIL PROTECTED]>
CommitDate: Thu Jul 12 16:37:00 2007 +0900

    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 <[EMAIL PROTECTED]>
    Signed-off-by: Paul Mundt <[EMAIL PROTECTED]>
 arch/sh/tools/Makefile |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/sh/tools/Makefile b/arch/sh/tools/Makefile
index 3c370a1..567516b 100644
--- a/arch/sh/tools/Makefile
+++ b/arch/sh/tools/Makefile
@@ -12,4 +12,5 @@
 include/asm-sh/machtypes.h: $(src)/gen-mach-types $(src)/mach-types
        @echo '  Generating $@'
+       $(Q)if [ ! -d include/asm-sh ]; then mkdir -p include/asm-sh; fi
        $(Q)$(AWK) -f $^ > $@ || { rm -f $@; /bin/false; }
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to