Skip to content

Commit ec268be

Browse files
vapierLinus Torvalds
authored andcommitted
[PATCH] translate dashes in filenames for headers install
The current filename->define translation does not scrub dashes so when creating stub defines for like asm-x86_64/ptrace-abi.h, we get: #define __ASM_STUB_PTRACE-ABI_H gcc just hates that sort of thing :) trivial attached patch adds - to the tr list to scrub it to _ Signed-off-by: Mike Frysinger <vapier@gentoo.org> Cc: David Woodhouse <dwmw2@infradead.org> Cc: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 0d59a01 commit ec268be

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎scripts/Makefile.headersinst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ quiet_cmd_mkdir = MKDIR $(patsubst $(INSTALL_HDR_PATH)/%,%,$@)
109109
quiet_cmd_gen = GEN $(patsubst $(INSTALL_HDR_PATH)/%,%,$@)
110110
cmd_gen = \
111111
FNAME=$(patsubst $(INSTALL_HDR_PATH)/$(_dst)/%,%,$@) \
112-
STUBDEF=__ASM_STUB_`echo $$FNAME | tr a-z. A-Z_`; \
112+
STUBDEF=__ASM_STUB_`echo $$FNAME | tr a-z.- A-Z__`; \
113113
(echo "/* File autogenerated by 'make headers_install' */" ; \
114114
echo "\#ifndef $$STUBDEF" ; \
115115
echo "\#define $$STUBDEF" ; \

0 commit comments

Comments
 (0)