source: trunk/openwrt/patches/trunk/032_001-fix_kernel_3.10_build_headers_install.patch @ 557

Last change on this file since 557 was 557, checked in by amain, 6 years ago

openwrt: fix execvp: /bin/sh: Argument list too long for kernel 3.10 and 3.12 compile

File size: 1.5 KB
  • new file openwrt-ar71xx-generic_UBNTRSPRO-trunk-HEAD/target/linux/generic/patches-3.10/001-fix_kernel_build_headers_install.patch

    - +  
     1--- a/scripts/headers_install.sh        2013-07-29 05:00:49.000000000 +0530
     2+++ b/scripts/headers_install.sh        2013-08-08 23:08:46.000000000 +0530
     3@@ -2,7 +2,7 @@
     4 
     5 if [ $# -lt 1 ]
     6 then
     7-       echo "Usage: headers_install.sh OUTDIR [FILES...]
     8+       echo "Usage: headers_install.sh OUTDIR SRCDIR [FILES...]
     9        echo
     10        echo "Prepares kernel header files for use by user space, by removing"
     11        echo "all compiler.h definitions and #includes, removing any"
     12@@ -10,6 +10,7 @@
     13        echo "asm/inline/volatile keywords."
     14        echo
     15        echo "OUTDIR: directory to write each userspace header FILE to."
     16+       echo "SRCDIR: source directory where files are picked."
     17        echo "FILES:  list of header files to operate on."
     18 
     19        exit 1
     20@@ -19,6 +20,8 @@
     21 
     22 OUTDIR="$1"
     23 shift
     24+SRCDIR="$1"
     25+shift
     26 
     27 # Iterate through files listed on command line
     28 
     29@@ -34,7 +37,7 @@
     30                -e 's/(^|[^a-zA-Z0-9])__packed([^a-zA-Z0-9_]|$)/\1__attribute__((packed))\2/g' \
     31                -e 's/(^|[ \t(])(inline|asm|volatile)([ \t(]|$)/\1__\2__\3/g' \
     32                -e 's@#(ifndef|define|endif[ \t]*/[*])[ \t]*_UAPI@#\1 @' \
     33-               "$i" > "$OUTDIR/$FILE.sed" || exit 1
     34+               "$SRCDIR/$i" > "$OUTDIR/$FILE.sed" || exit 1
     35        scripts/unifdef -U__KERNEL__ -D__EXPORTED_HEADERS__ "$OUTDIR/$FILE.sed" \
     36                > "$OUTDIR/$FILE"
     37        [ $? -gt 1 ] && exit 1
Note: See TracBrowser for help on using the repository browser.