summaryrefslogtreecommitdiffstats
path: root/arch/sh/tools/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sh/tools/Makefile')
-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 3c370a1132913..567516b58acca 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; }