Mercurial > hg > aboriginal
annotate sources/patches/linux-2.6.28-perl2.patch @ 772:7cb6ef2cdf10
Busybox unstable currently needs this patch too.
author | Rob Landley <rob@landley.net> |
---|---|
date | Wed, 01 Jul 2009 18:02:44 -0500 |
parents | 79baef2e88cc |
children | d42727e9e075 |
rev | line source |
---|---|
561
8dc7e099309e
Update the perl removal patches for 2.6.28 to the versions I'm submitting to the linux-kernel list.
Rob Landley <rob@landley.net>
parents:
541
diff
changeset
|
1 From: Rob Landley <rob@landley.net> |
8dc7e099309e
Update the perl removal patches for 2.6.28 to the versions I'm submitting to the linux-kernel list.
Rob Landley <rob@landley.net>
parents:
541
diff
changeset
|
2 |
8dc7e099309e
Update the perl removal patches for 2.6.28 to the versions I'm submitting to the linux-kernel list.
Rob Landley <rob@landley.net>
parents:
541
diff
changeset
|
3 Remove perl from make headers_install by replacing a perl script (doing |
8dc7e099309e
Update the perl removal patches for 2.6.28 to the versions I'm submitting to the linux-kernel list.
Rob Landley <rob@landley.net>
parents:
541
diff
changeset
|
4 a simple regex search and replace) with a smaller and faster shell script |
8dc7e099309e
Update the perl removal patches for 2.6.28 to the versions I'm submitting to the linux-kernel list.
Rob Landley <rob@landley.net>
parents:
541
diff
changeset
|
5 implementation. The new shell script is a single for loop calling sed and |
8dc7e099309e
Update the perl removal patches for 2.6.28 to the versions I'm submitting to the linux-kernel list.
Rob Landley <rob@landley.net>
parents:
541
diff
changeset
|
6 piping its output through unifdef to produce the target file. |
8dc7e099309e
Update the perl removal patches for 2.6.28 to the versions I'm submitting to the linux-kernel list.
Rob Landley <rob@landley.net>
parents:
541
diff
changeset
|
7 |
8dc7e099309e
Update the perl removal patches for 2.6.28 to the versions I'm submitting to the linux-kernel list.
Rob Landley <rob@landley.net>
parents:
541
diff
changeset
|
8 Signed-off-by: Rob Landley <rob@landley.net> |
8dc7e099309e
Update the perl removal patches for 2.6.28 to the versions I'm submitting to the linux-kernel list.
Rob Landley <rob@landley.net>
parents:
541
diff
changeset
|
9 --- |
541
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
10 |
759
79baef2e88cc
Update perl removal patches to the versions submitted to linux-kernel. (Mostly description tweak.)
Rob Landley <rob@landley.net>
parents:
646
diff
changeset
|
11 Changes from previous version (http://lkml.org/lkml/2009/1/2/22): |
79baef2e88cc
Update perl removal patches to the versions submitted to linux-kernel. (Mostly description tweak.)
Rob Landley <rob@landley.net>
parents:
646
diff
changeset
|
12 |
79baef2e88cc
Update perl removal patches to the versions submitted to linux-kernel. (Mostly description tweak.)
Rob Landley <rob@landley.net>
parents:
646
diff
changeset
|
13 Updated for Mike Frysinger's Jan 2 commit adding asm/inline/volatile. |
79baef2e88cc
Update perl removal patches to the versions submitted to linux-kernel. (Mostly description tweak.)
Rob Landley <rob@landley.net>
parents:
646
diff
changeset
|
14 |
561
8dc7e099309e
Update the perl removal patches for 2.6.28 to the versions I'm submitting to the linux-kernel list.
Rob Landley <rob@landley.net>
parents:
541
diff
changeset
|
15 scripts/Makefile.headersinst | 6 ++-- |
646
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
16 scripts/headers_install.pl | 49 --------------------------------- |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
17 scripts/headers_install.sh | 39 ++++++++++++++++++++++++++ |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
18 3 files changed, 42 insertions(+), 52 deletions(-) |
561
8dc7e099309e
Update the perl removal patches for 2.6.28 to the versions I'm submitting to the linux-kernel list.
Rob Landley <rob@landley.net>
parents:
541
diff
changeset
|
19 |
759
79baef2e88cc
Update perl removal patches to the versions submitted to linux-kernel. (Mostly description tweak.)
Rob Landley <rob@landley.net>
parents:
646
diff
changeset
|
20 diff -ruN linux-2.6.30.old/scripts/headers_install.pl linux-2.6.30/scripts/headers_install.pl |
79baef2e88cc
Update perl removal patches to the versions submitted to linux-kernel. (Mostly description tweak.)
Rob Landley <rob@landley.net>
parents:
646
diff
changeset
|
21 --- linux-2.6.30.old/scripts/headers_install.pl 2009-06-09 22:05:27.000000000 -0500 |
79baef2e88cc
Update perl removal patches to the versions submitted to linux-kernel. (Mostly description tweak.)
Rob Landley <rob@landley.net>
parents:
646
diff
changeset
|
22 +++ linux-2.6.30/scripts/headers_install.pl 1969-12-31 18:00:00.000000000 -0600 |
646
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
23 @@ -1,49 +0,0 @@ |
541
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
24 -#!/usr/bin/perl -w |
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
25 -# |
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
26 -# headers_install prepare the listed header files for use in |
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
27 -# user space and copy the files to their destination. |
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
28 -# |
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
29 -# Usage: headers_install.pl readdir installdir arch [files...] |
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
30 -# readdir: dir to open files |
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
31 -# installdir: dir to install the files |
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
32 -# arch: current architecture |
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
33 -# arch is used to force a reinstallation when the arch |
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
34 -# changes because kbuild then detect a command line change. |
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
35 -# files: list of files to check |
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
36 -# |
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
37 -# Step in preparation for users space: |
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
38 -# 1) Drop all use of compiler.h definitions |
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
39 -# 2) Drop include of compiler.h |
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
40 -# 3) Drop all sections defined out by __KERNEL__ (using unifdef) |
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
41 - |
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
42 -use strict; |
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
43 - |
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
44 -my ($readdir, $installdir, $arch, @files) = @ARGV; |
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
45 - |
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
46 -my $unifdef = "scripts/unifdef -U__KERNEL__"; |
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
47 - |
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
48 -foreach my $file (@files) { |
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
49 - local *INFILE; |
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
50 - local *OUTFILE; |
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
51 - my $tmpfile = "$installdir/$file.tmp"; |
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
52 - open(INFILE, "<$readdir/$file") |
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
53 - or die "$readdir/$file: $!\n"; |
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
54 - open(OUTFILE, ">$tmpfile") or die "$tmpfile: $!\n"; |
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
55 - while (my $line = <INFILE>) { |
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
56 - $line =~ s/([\s(])__user\s/$1/g; |
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
57 - $line =~ s/([\s(])__force\s/$1/g; |
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
58 - $line =~ s/([\s(])__iomem\s/$1/g; |
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
59 - $line =~ s/\s__attribute_const__\s/ /g; |
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
60 - $line =~ s/\s__attribute_const__$//g; |
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
61 - $line =~ s/^#include <linux\/compiler.h>//; |
646
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
62 - $line =~ s/(^|\s)(inline)\b/$1__$2__/g; |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
63 - $line =~ s/(^|\s)(asm)\b(\s|[(]|$)/$1__$2__$3/g; |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
64 - $line =~ s/(^|\s|[(])(volatile)\b(\s|[(]|$)/$1__$2__$3/g; |
541
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
65 - printf OUTFILE "%s", $line; |
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
66 - } |
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
67 - close OUTFILE; |
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
68 - close INFILE; |
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
69 - system $unifdef . " $tmpfile > $installdir/$file"; |
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
70 - unlink $tmpfile; |
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
71 -} |
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
72 -exit 0; |
759
79baef2e88cc
Update perl removal patches to the versions submitted to linux-kernel. (Mostly description tweak.)
Rob Landley <rob@landley.net>
parents:
646
diff
changeset
|
73 diff -ruN linux-2.6.30.old/scripts/headers_install.sh linux-2.6.30/scripts/headers_install.sh |
79baef2e88cc
Update perl removal patches to the versions submitted to linux-kernel. (Mostly description tweak.)
Rob Landley <rob@landley.net>
parents:
646
diff
changeset
|
74 --- linux-2.6.30.old/scripts/headers_install.sh 1969-12-31 18:00:00.000000000 -0600 |
79baef2e88cc
Update perl removal patches to the versions submitted to linux-kernel. (Mostly description tweak.)
Rob Landley <rob@landley.net>
parents:
646
diff
changeset
|
75 +++ linux-2.6.30/scripts/headers_install.sh 2009-06-22 16:21:23.000000000 -0500 |
646
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
76 @@ -0,0 +1,39 @@ |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
77 +#!/bin/sh |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
78 + |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
79 +if [ $# -lt 2 ] |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
80 +then |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
81 + echo "Usage: headers_install.sh INDIR OUTDIR [FILES...] |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
82 + echo |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
83 + echo "Prepares kernel header files for use by user space, by removing" |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
84 + echo "all compiler.h definitions and #includes, removing any" |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
85 + echo "#ifdef __KERNEL__ sections, and putting __underscores__ around" |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
86 + echo "asm/inline/volatile keywords." |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
87 + echo |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
88 + echo "INDIR: directory to read each kernel header FILE from." |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
89 + echo "OUTDIR: directory to write each userspace header FILE to." |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
90 + echo "FILES: list of header files to operate on." |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
91 + |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
92 + exit 1 |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
93 +fi |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
94 + |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
95 +# Grab arguments |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
96 + |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
97 +INDIR="$1" |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
98 +shift |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
99 +OUTDIR="$1" |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
100 +shift |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
101 + |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
102 +# Iterate through files listed on command line |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
103 + |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
104 +for i in "$@" |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
105 +do |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
106 + sed -r \ |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
107 + -e 's/([ \t(])(__user|__force|__iomem)[ \t]/\1/g' \ |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
108 + -e 's/__attribute_const__([ \t]|$)/\1/g' \ |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
109 + -e 's@^#include <linux/compiler.h>@@' \ |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
110 + -e 's/(^|[ \t])(inline|asm|volatile)([ \t(]|$)/\1__\2__\3/g' \ |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
111 + "$INDIR/$i" | |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
112 + scripts/unifdef -U__KERNEL__ - > "$OUTDIR/$i" |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
113 +done |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
114 + |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
115 +exit 0 |
759
79baef2e88cc
Update perl removal patches to the versions submitted to linux-kernel. (Mostly description tweak.)
Rob Landley <rob@landley.net>
parents:
646
diff
changeset
|
116 diff -ruN linux-2.6.30.old/scripts/Makefile.headersinst linux-2.6.30/scripts/Makefile.headersinst |
79baef2e88cc
Update perl removal patches to the versions submitted to linux-kernel. (Mostly description tweak.)
Rob Landley <rob@landley.net>
parents:
646
diff
changeset
|
117 --- linux-2.6.30.old/scripts/Makefile.headersinst 2009-06-09 22:05:27.000000000 -0500 |
79baef2e88cc
Update perl removal patches to the versions submitted to linux-kernel. (Mostly description tweak.)
Rob Landley <rob@landley.net>
parents:
646
diff
changeset
|
118 +++ linux-2.6.30/scripts/Makefile.headersinst 2009-06-22 16:21:23.000000000 -0500 |
79baef2e88cc
Update perl removal patches to the versions submitted to linux-kernel. (Mostly description tweak.)
Rob Landley <rob@landley.net>
parents:
646
diff
changeset
|
119 @@ -46,8 +46,8 @@ |
646
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
120 quiet_cmd_install = INSTALL $(printdir) ($(words $(all-files))\ |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
121 file$(if $(word 2, $(all-files)),s)) |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
122 cmd_install = \ |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
123 - $(PERL) $< $(srctree)/$(obj) $(install) $(SRCARCH) $(header-y); \ |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
124 - $(PERL) $< $(objtree)/$(obj) $(install) $(SRCARCH) $(objhdr-y); \ |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
125 + $(CONFIG_SHELL) $< $(srctree)/$(obj) $(install) $(header-y); \ |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
126 + $(CONFIG_SHELL) $< $(objtree)/$(obj) $(install) $(objhdr-y); \ |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
127 touch $@ |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
128 |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
129 quiet_cmd_remove = REMOVE $(unwanted) |
759
79baef2e88cc
Update perl removal patches to the versions submitted to linux-kernel. (Mostly description tweak.)
Rob Landley <rob@landley.net>
parents:
646
diff
changeset
|
130 @@ -66,7 +66,7 @@ |
646
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
131 @: |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
132 |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
133 targets += $(install-file) |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
134 -$(install-file): scripts/headers_install.pl $(input-files) FORCE |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
135 +$(install-file): scripts/headers_install.sh $(input-files) FORCE |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
136 $(if $(unwanted),$(call cmd,remove),) |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
137 $(if $(wildcard $(dir $@)),,$(shell mkdir -p $(dir $@))) |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
138 $(call if_changed,install) |