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 _ -mike
Attachment:
pgppV0ALxEUpf.pgp
Description: PGP signature
Make sure we translate dashes in file names to underscores for use as defines. Signed-off-by: Mike Frysinger <[email protected]> --- a/scripts/Makefile.headersinst +++ b/scripts/Makefile.headersinst @@ -109,7 +109,7 @@ quiet_cmd_mkdir = MKDIR $(patsubst $(INSTALL_HDR_PATH)/%,%,$@) quiet_cmd_gen = GEN $(patsubst $(INSTALL_HDR_PATH)/%,%,$@) cmd_gen = \ FNAME=$(patsubst $(INSTALL_HDR_PATH)/$(_dst)/%,%,$@) \ -STUBDEF=__ASM_STUB_`echo $$FNAME | tr a-z. A-Z_`; \ +STUBDEF=__ASM_STUB_`echo $$FNAME | tr a-z.- A-Z__`; \ (echo "/* File autogenerated by 'make headers_install' */" ; \ echo "\#ifndef $$STUBDEF" ; \ echo "\#define $$STUBDEF" ; \
- Prev by Date: Re: [PATCH] mm: remove global locks from mm/highmem.c
- Next by Date: Re: Juju
- Previous by thread: [PATCH] fuse: fix bug in control filesystem mount
- Next by thread: [PATCH] cdev.h needs struct inode; add forward declaration
- Index(es):