Mercurial > hg > aboriginal
changeset 1584:75e291fafacc
linux 3.8.
author | Rob Landley <rob@landley.net> |
---|---|
date | Mon, 25 Feb 2013 11:45:44 -0600 |
parents | 307f4415d2bf |
children | 0c9269b5aec6 |
files | download.sh sources/patches/linux-noperl-headers.patch |
diffstat | 2 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/download.sh Sun Feb 17 22:26:10 2013 -0600 +++ b/download.sh Mon Feb 25 11:45:44 2013 -0600 @@ -29,8 +29,8 @@ SHA1=2200c20f00e2e1f9c6b42ffa6af6fd645b17d4a6 \ maybe_fork "download || dienow" -URL=http://www.kernel.org/pub/linux/kernel/v3.x/linux-3.7.tar.bz2 \ -SHA1=4eab447788385b49cb4db170baec8788d5d7dda7 \ +URL=http://www.kernel.org/pub/linux/kernel/v3.x/linux-3.8.tar.bz2 \ +SHA1=04e0496008f6aa08b0bd43963098a87067d00d7f \ maybe_fork "download || dienow"
--- a/sources/patches/linux-noperl-headers.patch Sun Feb 17 22:26:10 2013 -0600 +++ b/sources/patches/linux-noperl-headers.patch Mon Feb 25 11:45:44 2013 -0600 @@ -58,7 +58,7 @@ + -e 's@^#include <linux/compiler.h>@@' \ + -e 's/(^|[^a-zA-Z0-9])__packed([^a-zA-Z0-9_]|$)/\1__attribute__((packed))\2/g' \ + -e 's/(^|[ \t])(inline|asm|volatile)([ \t(]|$)/\1__\2__\3/g' \ -+ -e 's@#(ifndef|define|endif /[*]) _UAPI@#\1 @' \ ++ -e 's@#(ifndef|define|endif[ \t]*/[*])[ \t]*_UAPI@#\1 @' \ + "$i" > "$OUTDIR/$FILE.sed" || exit 1 + scripts/unifdef -U__KERNEL__ -D__EXPORTED_HEADERS__ "$OUTDIR/$FILE.sed" \ + > "$OUTDIR/$FILE" @@ -134,9 +134,9 @@ - $line =~ s/(^|\s)(inline)\b/$1__$2__/g; - $line =~ s/(^|\s)(asm)\b(\s|[(]|$)/$1__$2__$3/g; - $line =~ s/(^|\s|[(])(volatile)\b(\s|[(]|$)/$1__$2__$3/g; -- $line =~ s/#ifndef _UAPI/#ifndef /; -- $line =~ s/#define _UAPI/#define /; -- $line =~ s!#endif /[*] _UAPI!#endif /* !; +- $line =~ s/#ifndef\s+_UAPI/#ifndef /; +- $line =~ s/#define\s+_UAPI/#define /; +- $line =~ s!#endif\s+/[*]\s*_UAPI!#endif /* !; - printf {$out} "%s", $line; - } - close $out;