Mercurial > hg > aboriginal
annotate sources/patches/linux-2.6.28-perl2.patch @ 680:924527b0b454
Fix ppc bios, this is the one from qemu svn 6657.
author | Rob Landley <rob@landley.net> |
---|---|
date | Mon, 30 Mar 2009 04:50:02 -0500 |
parents | 0f8659ab466f |
children | 79baef2e88cc |
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 |
646
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
8 Updated for 2.6.29 and Mike Frysinger's Jan 2 commit adding asm/inline/volatile. |
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
|
9 |
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
|
10 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
|
11 --- |
541
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
12 |
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
|
13 scripts/Makefile.headersinst | 6 ++-- |
646
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
14 scripts/headers_install.pl | 49 --------------------------------- |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
15 scripts/headers_install.sh | 39 ++++++++++++++++++++++++++ |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
16 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
|
17 |
646
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
18 diff -ruN linux-old/scripts/headers_install.pl linux-2.6.29-rc7/scripts/headers_install.pl |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
19 --- linux-old/scripts/headers_install.pl 2009-03-03 19:05:22.000000000 -0600 |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
20 +++ linux-2.6.29-rc7/scripts/headers_install.pl 1969-12-31 18:00:00.000000000 -0600 |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
21 @@ -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
|
22 -#!/usr/bin/perl -w |
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
23 -# |
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
24 -# 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
|
25 -# 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
|
26 -# |
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
27 -# 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
|
28 -# 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
|
29 -# 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
|
30 -# arch: current architecture |
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
31 -# 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
|
32 -# 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
|
33 -# 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
|
34 -# |
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
35 -# 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
|
36 -# 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
|
37 -# 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
|
38 -# 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
|
39 - |
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
40 -use strict; |
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 -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
|
43 - |
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
44 -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
|
45 - |
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
46 -foreach my $file (@files) { |
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
47 - local *INFILE; |
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
48 - local *OUTFILE; |
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
49 - 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
|
50 - open(INFILE, "<$readdir/$file") |
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
51 - 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
|
52 - 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
|
53 - while (my $line = <INFILE>) { |
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
54 - $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
|
55 - $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
|
56 - $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
|
57 - $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
|
58 - $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
|
59 - $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
|
60 - $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
|
61 - $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
|
62 - $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
|
63 - printf OUTFILE "%s", $line; |
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
64 - } |
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
65 - close OUTFILE; |
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
66 - close INFILE; |
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
67 - 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
|
68 - unlink $tmpfile; |
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
69 -} |
3abcea34485c
Allow USE_UNSTABLE=linux to build the 2.6.27 kernel.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
70 -exit 0; |
646
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
71 diff -ruN linux-old/scripts/headers_install.sh linux-2.6.29-rc7/scripts/headers_install.sh |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
72 --- linux-old/scripts/headers_install.sh 1969-12-31 18:00:00.000000000 -0600 |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
73 +++ linux-2.6.29-rc7/scripts/headers_install.sh 2009-03-11 12:52:59.000000000 -0500 |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
74 @@ -0,0 +1,39 @@ |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
75 +#!/bin/sh |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
76 + |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
77 +if [ $# -lt 2 ] |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
78 +then |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
79 + 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
|
80 + echo |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
81 + 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
|
82 + 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
|
83 + 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
|
84 + echo "asm/inline/volatile keywords." |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
85 + echo |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
86 + 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
|
87 + 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
|
88 + 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
|
89 + |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
90 + exit 1 |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
91 +fi |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
92 + |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
93 +# Grab arguments |
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 +INDIR="$1" |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
96 +shift |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
97 +OUTDIR="$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 + |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
100 +# 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
|
101 + |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
102 +for i in "$@" |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
103 +do |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
104 + sed -r \ |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
105 + -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
|
106 + -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
|
107 + -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
|
108 + -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
|
109 + "$INDIR/$i" | |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
110 + 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
|
111 +done |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
112 + |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
113 +exit 0 |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
114 diff -ruN linux-old/scripts/Makefile.headersinst linux-2.6.29-rc7/scripts/Makefile.headersinst |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
115 --- linux-old/scripts/Makefile.headersinst 2009-03-03 19:05:22.000000000 -0600 |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
116 +++ linux-2.6.29-rc7/scripts/Makefile.headersinst 2009-03-11 13:24:04.000000000 -0500 |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
117 @@ -44,8 +44,8 @@ |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
118 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
|
119 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
|
120 cmd_install = \ |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
121 - $(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
|
122 - $(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
|
123 + $(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
|
124 + $(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
|
125 touch $@ |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
126 |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
127 quiet_cmd_remove = REMOVE $(unwanted) |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
128 @@ -64,7 +64,7 @@ |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
129 @: |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
130 |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
131 targets += $(install-file) |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
132 -$(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
|
133 +$(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
|
134 $(if $(unwanted),$(call cmd,remove),) |
0f8659ab466f
Update perl2 removal patch for 2.6.29 kernel.
Rob Landley <rob@landley.net>
parents:
605
diff
changeset
|
135 $(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
|
136 $(call if_changed,install) |