* Date: Tue, 17 Jul 2007 16:08:54 +0200 > > From: Mike Frysinger <[email protected]> > > The sed expression used at the moment in scripts/Makefile.headersinst > relies on the (handy) GNU extension where you can escape ERE's in an > otherwise BRE without using the GNU -r option. The following patch > replaces this "\+" usage with a functionally equivalent POSIX BRE compliant > "\{1,\}". Matching at least one occurrence, right? > Tested with `make headers_install` against blackfin/x86_64/i386 > targets. > > Stupid whiny OS X users and their crappy sed ;) That may be. My games with strict POSIX sed syntax render busybox's sed as crap for example. So, you never know. > # Eliminate the contents of (and inclusions of) compiler.h OK, that means annotations and non ANSI 'inline' thing. Lets see. > HDRSED := sed -e "s/ inline / __inline__ /g" \ [] > - -e "s/[[:space:]]__attribute_const__[[:space:]]\+/\ /g" \ * [[:space:]] are more than tab and space isspace(3), is it more effective to use [[:blank:]] instead? > + -e > "s/[[:space:]]__user[[:space:]]\{1,\} substitute one or more ' __user ' > / /g" \ with ' ', everywhere (flag 'g'). So, is it really needed that '\{' thing? > + -e "s/(__user[[:space:]]\{1,\}/ (/g" \ > + -e "s/[[:space:]]__force[[:space:]]\{1,\}/ /g" \ > + -e "s/(__force[[:space:]]\{1,\}/ (/g" \ > + -e "s/[[:space:]]__iomem[[:space:]]\{1,\}/ /g" \ > + -e "s/(__iomem[[:space:]]\{1,\}/ (/g" \ > + -e "s/[[:space:]]__attribute_const__[[:space:]]\{1,\}/\ /g" \ > -e "s/[[:space:]]__attribute_const__$$//" \ Is it allowed to use identifiers like '__attribute_const__foo' or __attribute_const__[anything]? If it's not, last line is useless also. > -e "/^\#include <linux\/compiler.h>/d" whitespace is allowed ^ here and is used for better readability sometimes. ____ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [kbuild-devel] [PATCH 25/33] kbuild: use POSIX BRE in headers install target
- From: "Mike Frysinger" <[email protected]>
- Re: [PATCH 25/33] kbuild: use POSIX BRE in headers install target
- From: Andreas Schwab <[email protected]>
- Re: [kbuild-devel] [PATCH 25/33] kbuild: use POSIX BRE in headers install target
- References:
- [PATCH 01/33] kbuild: asm-offsets.h is now cleaned with O=.. builds
- From: Sam Ravnborg <[email protected]>
- [PATCH 07/33] kconfig: use POSIX equality test in check-lxdialog.sh
- From: Sam Ravnborg <[email protected]>
- [PATCH 08/33] kbuild: add support for reading stdin with gen_init_cpio
- From: Sam Ravnborg <[email protected]>
- [PATCH 09/33] kbuild: add support for squashing uid/gid in gen_initramfs_list.sh
- From: Sam Ravnborg <[email protected]>
- [PATCH 10/33] kconfig: fix update-po-config
- From: Sam Ravnborg <[email protected]>
- [PATCH 11/33] kbuild: make better section mismatch reports on i386 and mips
- From: Sam Ravnborg <[email protected]>
- [PATCH 12/33] kbuild: make better section mismatch reports on arm
- From: Sam Ravnborg <[email protected]>
- [PATCH 13/33] kbuild: suppress modpost warnings for references from the .toc section as used by powerpc
- From: Sam Ravnborg <[email protected]>
- [PATCH 14/33] kbuild: .paravirtprobe section is obsolete, so modpost doesn't need to handle it
- From: Sam Ravnborg <[email protected]>
- [PATCH 15/33] kbuild: ignore section mismatch warnings originating from .note section
- From: Sam Ravnborg <[email protected]>
- [PATCH 16/33] kbuild: refactor code in modpost to improve maintainability
- From: Sam Ravnborg <[email protected]>
- [PATCH 17/33] kbuild: consolidate section checks
- From: Sam Ravnborg <[email protected]>
- [PATCH 19/33] kbuild: remove hardcoded apic_es7000 from modpost
- From: Sam Ravnborg <[email protected]>
- [PATCH 21/33] kbuild: whitelist references from variables named _timer to .init.text
- From: Sam Ravnborg <[email protected]>
- [PATCH 22/33] kbuild: do section mismatch check on full vmlinux
- From: Sam Ravnborg <[email protected]>
- [PATCH 23/33] modpost white list pattern adjustment
- From: Sam Ravnborg <[email protected]>
- [PATCH 24/33] Whitelist references from __dbe_table to .init
- From: Sam Ravnborg <[email protected]>
- [PATCH 25/33] kbuild: use POSIX BRE in headers install target
- From: Sam Ravnborg <[email protected]>
- [PATCH 01/33] kbuild: asm-offsets.h is now cleaned with O=.. builds
- Prev by Date: Re: [broken-out-2007-07-20-00-22] kernel bug at kernel/params:570
- Next by Date: Re: [broken-out-2007-07-20-00-22] kernel bug at kernel/params:570
- Previous by thread: [PATCH 33/33] xtensa: use DATA_DATA in xtensa
- Next by thread: Re: [PATCH 25/33] kbuild: use POSIX BRE in headers install target
- Index(es):