]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/3.6.2/localmodconfig-fix-localyesconfig-to-set-to-y-not-m.patch
4.9-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 3.6.2 / localmodconfig-fix-localyesconfig-to-set-to-y-not-m.patch
1 From 4eae518d4b01b0cbf2f0d8edb5a6f3d6245ee8fb Mon Sep 17 00:00:00 2001
2 From: Yuta Ando <yuta.and@gmail.com>
3 Date: Mon, 1 Oct 2012 23:24:30 +0900
4 Subject: localmodconfig: Fix localyesconfig to set to 'y' not 'm'
5
6 From: Yuta Ando <yuta.and@gmail.com>
7
8 commit 4eae518d4b01b0cbf2f0d8edb5a6f3d6245ee8fb upstream.
9
10 The kbuild target 'localyesconfig' has been same as 'localmodconfig'
11 since the commit 50bce3e "kconfig/streamline_config.pl: merge
12 local{mod,yes}config". The commit expects this script generates
13 different configure depending on target, but it was not yet implemented.
14
15 So I added code that sets to 'yes' when target is 'localyesconfig'.
16
17 Link: http://lkml.kernel.org/r/1349101470-12243-1-git-send-email-yuta.and@gmail.com
18
19 Signed-off-by: Yuta Ando <yuta.and@gmail.com>
20 Cc: linux-kbuild@vger.kernel.org
21 Signed-off-by: Steven Rostedt <rostedt@rostedt.homelinux.com>
22 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
23
24 ---
25 scripts/kconfig/streamline_config.pl | 2 ++
26 1 file changed, 2 insertions(+)
27
28 --- a/scripts/kconfig/streamline_config.pl
29 +++ b/scripts/kconfig/streamline_config.pl
30 @@ -605,6 +605,8 @@ foreach my $line (@config_file) {
31 if (defined($configs{$1})) {
32 if ($localyesconfig) {
33 $setconfigs{$1} = 'y';
34 + print "$1=y\n";
35 + next;
36 } else {
37 $setconfigs{$1} = $2;
38 }