]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/3.10.88/localmodconfig-use-kbuild-files-too.patch
Linux 3.10.88
[thirdparty/kernel/stable-queue.git] / releases / 3.10.88 / localmodconfig-use-kbuild-files-too.patch
1 From c0ddc8c745b7f89c50385fd7aa03c78dc543fa7a Mon Sep 17 00:00:00 2001
2 From: Richard Weinberger <richard@nod.at>
3 Date: Mon, 27 Jul 2015 00:06:55 +0200
4 Subject: localmodconfig: Use Kbuild files too
5
6 From: Richard Weinberger <richard@nod.at>
7
8 commit c0ddc8c745b7f89c50385fd7aa03c78dc543fa7a upstream.
9
10 In kbuild it is allowed to define objects in files named "Makefile"
11 and "Kbuild".
12 Currently localmodconfig reads objects only from "Makefile"s and misses
13 modules like nouveau.
14
15 Link: http://lkml.kernel.org/r/1437948415-16290-1-git-send-email-richard@nod.at
16
17 Reported-and-tested-by: Leonidas Spyropoulos <artafinde@gmail.com>
18 Signed-off-by: Richard Weinberger <richard@nod.at>
19 Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
20 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
21
22 ---
23 scripts/kconfig/streamline_config.pl | 2 +-
24 1 file changed, 1 insertion(+), 1 deletion(-)
25
26 --- a/scripts/kconfig/streamline_config.pl
27 +++ b/scripts/kconfig/streamline_config.pl
28 @@ -137,7 +137,7 @@ my $ksource = ($ARGV[0] ? $ARGV[0] : '.'
29 my $kconfig = $ARGV[1];
30 my $lsmod_file = $ENV{'LSMOD'};
31
32 -my @makefiles = `find $ksource -name Makefile 2>/dev/null`;
33 +my @makefiles = `find $ksource -name Makefile -or -name Kbuild 2>/dev/null`;
34 chomp @makefiles;
35
36 my %depends;