scummvm random work
[patches.git] / linux-headersinst-translate-dash.patch
CommitLineData
5e993f12 1Make sure we translate dashes in file names to underscores for use as defines.
2
3Signed-off-by: Mike Frysinger <vapier@gentoo.org>
4
5--- a/scripts/Makefile.headersinst
6+++ b/scripts/Makefile.headersinst
7@@ -109,7 +109,7 @@ quiet_cmd_mkdir = MKDIR $(patsubst $(INSTALL_HDR_PATH)/%,%,$@)
8 quiet_cmd_gen = GEN $(patsubst $(INSTALL_HDR_PATH)/%,%,$@)
9 cmd_gen = \
10 FNAME=$(patsubst $(INSTALL_HDR_PATH)/$(_dst)/%,%,$@) \
11-STUBDEF=__ASM_STUB_`echo $$FNAME | tr a-z. A-Z_`; \
12+STUBDEF=__ASM_STUB_`echo $$FNAME | tr a-z.- A-Z__`; \
13 (echo "/* File autogenerated by 'make headers_install' */" ; \
14 echo "\#ifndef $$STUBDEF" ; \
15 echo "\#define $$STUBDEF" ; \