diff mbox

localmodconfig: Use Kbuild files too

Message ID 1437948415-16290-1-git-send-email-richard@nod.at (mailing list archive)
State New, archived
Headers show

Commit Message

Richard Weinberger July 26, 2015, 10:06 p.m. UTC
In kbuild it is allowed to define objects in files named "Makefile"
and "Kbuild".
Currently localmodconfig reads objects only from "Makefile"s and misses
modules like nouveau.

Reported-and-tested-by: Leonidas Spyropoulos <artafinde@gmail.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
---
 scripts/kconfig/streamline_config.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Richard Weinberger Aug. 8, 2015, 12:47 p.m. UTC | #1
On Mon, Jul 27, 2015 at 12:06 AM, Richard Weinberger <richard@nod.at> wrote:
> In kbuild it is allowed to define objects in files named "Makefile"
> and "Kbuild".
> Currently localmodconfig reads objects only from "Makefile"s and misses
> modules like nouveau.
>
> Reported-and-tested-by: Leonidas Spyropoulos <artafinde@gmail.com>
> Signed-off-by: Richard Weinberger <richard@nod.at>
> ---
>  scripts/kconfig/streamline_config.pl | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/scripts/kconfig/streamline_config.pl b/scripts/kconfig/streamline_config.pl
> index 9cb8522..f3d3fb4 100755
> --- a/scripts/kconfig/streamline_config.pl
> +++ b/scripts/kconfig/streamline_config.pl
> @@ -137,7 +137,7 @@ my $ksource = ($ARGV[0] ? $ARGV[0] : '.');
>  my $kconfig = $ARGV[1];
>  my $lsmod_file = $ENV{'LSMOD'};
>
> -my @makefiles = `find $ksource -name Makefile 2>/dev/null`;
> +my @makefiles = `find $ksource -name Makefile -or -name Kbuild 2>/dev/null`;
>  chomp @makefiles;
>
>  my %depends;
> --

Ping?
Steven Rostedt Aug. 10, 2015, 2:58 p.m. UTC | #2
On Sat, 8 Aug 2015 14:47:32 +0200
Richard Weinberger <richard.weinberger@gmail.com> wrote:

> On Mon, Jul 27, 2015 at 12:06 AM, Richard Weinberger <richard@nod.at> wrote:
> > In kbuild it is allowed to define objects in files named "Makefile"
> > and "Kbuild".
> > Currently localmodconfig reads objects only from "Makefile"s and misses
> > modules like nouveau.
> >
> > Reported-and-tested-by: Leonidas Spyropoulos <artafinde@gmail.com>
> > Signed-off-by: Richard Weinberger <richard@nod.at>
> > ---
> >  scripts/kconfig/streamline_config.pl | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/scripts/kconfig/streamline_config.pl b/scripts/kconfig/streamline_config.pl
> > index 9cb8522..f3d3fb4 100755
> > --- a/scripts/kconfig/streamline_config.pl
> > +++ b/scripts/kconfig/streamline_config.pl
> > @@ -137,7 +137,7 @@ my $ksource = ($ARGV[0] ? $ARGV[0] : '.');
> >  my $kconfig = $ARGV[1];
> >  my $lsmod_file = $ENV{'LSMOD'};
> >
> > -my @makefiles = `find $ksource -name Makefile 2>/dev/null`;
> > +my @makefiles = `find $ksource -name Makefile -or -name Kbuild 2>/dev/null`;
> >  chomp @makefiles;
> >
> >  my %depends;
> > --
> 
> Ping?
> 

Thanks, I'll take a look at this today.

-- Steve

--
To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/scripts/kconfig/streamline_config.pl b/scripts/kconfig/streamline_config.pl
index 9cb8522..f3d3fb4 100755
--- a/scripts/kconfig/streamline_config.pl
+++ b/scripts/kconfig/streamline_config.pl
@@ -137,7 +137,7 @@  my $ksource = ($ARGV[0] ? $ARGV[0] : '.');
 my $kconfig = $ARGV[1];
 my $lsmod_file = $ENV{'LSMOD'};
 
-my @makefiles = `find $ksource -name Makefile 2>/dev/null`;
+my @makefiles = `find $ksource -name Makefile -or -name Kbuild 2>/dev/null`;
 chomp @makefiles;
 
 my %depends;