summaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.2/0064-kconfig-streamline-config.pl-Simplify-backslash-line.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.2/0064-kconfig-streamline-config.pl-Simplify-backslash-line.patch')
-rw-r--r--recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.2/0064-kconfig-streamline-config.pl-Simplify-backslash-line.patch68
1 files changed, 68 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.2/0064-kconfig-streamline-config.pl-Simplify-backslash-line.patch b/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.2/0064-kconfig-streamline-config.pl-Simplify-backslash-line.patch
new file mode 100644
index 00000000..8d788a5a
--- /dev/null
+++ b/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.2/0064-kconfig-streamline-config.pl-Simplify-backslash-line.patch
@@ -0,0 +1,68 @@
1From 700e5b37d0da1b3688992c53abba2ba9c123c547 Mon Sep 17 00:00:00 2001
2From: Steven Rostedt <srostedt@redhat.com>
3Date: Fri, 13 Jan 2012 17:50:39 -0500
4Subject: [PATCH 064/130] kconfig/streamline-config.pl: Simplify backslash
5 line concatination
6
7commit d060d963e88f3e990cec2fe5214de49de9a49eca upstream.
8
9Simplify the way lines ending with backslashes (continuation) in Makefiles
10is parsed. This is needed to implement a necessary fix.
11
12Tested-by: Thomas Lange <thomas-lange2@gmx.de>
13Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
14Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15---
16 scripts/kconfig/streamline_config.pl | 25 ++++++++++++-------------
17 1 files changed, 12 insertions(+), 13 deletions(-)
18
19diff --git a/scripts/kconfig/streamline_config.pl b/scripts/kconfig/streamline_config.pl
20index ec7afce..42ef5ea 100644
21--- a/scripts/kconfig/streamline_config.pl
22+++ b/scripts/kconfig/streamline_config.pl
23@@ -253,17 +253,22 @@ if ($kconfig) {
24 # Read all Makefiles to map the configs to the objects
25 foreach my $makefile (@makefiles) {
26
27- my $cont = 0;
28+ my $line = "";
29
30 open(MIN,$makefile) || die "Can't open $makefile";
31 while (<MIN>) {
32- my $objs;
33-
34- # is this a line after a line with a backslash?
35- if ($cont && /(\S.*)$/) {
36- $objs = $1;
37+ # if this line ends with a backslash, continue
38+ chomp;
39+ if (/^(.*)\\$/) {
40+ $line .= $1;
41+ next;
42 }
43- $cont = 0;
44+
45+ $line .= $_;
46+ $_ = $line;
47+ $line = "";
48+
49+ my $objs;
50
51 # collect objects after obj-$(CONFIG_FOO_BAR)
52 if (/obj-\$\((CONFIG_[^\)]*)\)\s*[+:]?=\s*(.*)/) {
53@@ -271,12 +276,6 @@ foreach my $makefile (@makefiles) {
54 $objs = $2;
55 }
56 if (defined($objs)) {
57- # test if the line ends with a backslash
58- if ($objs =~ m,(.*)\\$,) {
59- $objs = $1;
60- $cont = 1;
61- }
62-
63 foreach my $obj (split /\s+/,$objs) {
64 $obj =~ s/-/_/g;
65 if ($obj =~ /(.*)\.o$/) {
66--
671.7.7.4
68