sh: move machtypes.h to include/generated
Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Cc: Paul Mundt <lethal@linux-sh.org> Cc: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Michal Marek <mmarek@suse.cz>
This commit is contained in:
committed by
Michal Marek
parent
66206536fe
commit
3252b11fc4
@@ -10,7 +10,7 @@
|
||||
# Shamelessly cloned from ARM.
|
||||
#
|
||||
|
||||
include/asm-sh/machtypes.h: $(src)/gen-mach-types $(src)/mach-types
|
||||
include/generated/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)mkdir -p $(dir $@)
|
||||
$(Q)$(AWK) -f $^ > $@ || { rm -f $@; /bin/false; }
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/bin/awk
|
||||
#
|
||||
# Awk script to generate include/asm-sh/machtypes.h
|
||||
# Awk script to generate include/generated/machtypes.h
|
||||
# Heavily based on arch/arm/tools/gen-mach-types
|
||||
#
|
||||
BEGIN { nr = 0 }
|
||||
|
||||
Reference in New Issue
Block a user