diff options
author | Steven Rostedt <srostedt@redhat.com> | 2009-11-20 09:21:12 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2009-11-20 09:45:55 -0500 |
commit | 463bf9000750e08a85ee0b40da3266aae8a54ba2 (patch) | |
tree | 5fb5b03c2350c514a6516a45a0fbd63cc9a76fe4 /scripts/kconfig/streamline_config.pl | |
parent | 648f4e3e50c4793d9dbf9a09afa193631f76fa26 (diff) | |
download | kernel_samsung_smdk4412-463bf9000750e08a85ee0b40da3266aae8a54ba2.zip kernel_samsung_smdk4412-463bf9000750e08a85ee0b40da3266aae8a54ba2.tar.gz kernel_samsung_smdk4412-463bf9000750e08a85ee0b40da3266aae8a54ba2.tar.bz2 |
kconfig: Fix make O=<dir> local{mod,yes}config
When the output directory is something other than the kernel source,
the streamline_config script gets confused. This patch passes in the
source directory to the script so that it can find the proper files.
Reported-by: Peter Zijlstra <peterz@infradead.org>
Tested-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'scripts/kconfig/streamline_config.pl')
-rw-r--r-- | scripts/kconfig/streamline_config.pl | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/kconfig/streamline_config.pl b/scripts/kconfig/streamline_config.pl index 95984db..0d80082 100644 --- a/scripts/kconfig/streamline_config.pl +++ b/scripts/kconfig/streamline_config.pl @@ -43,7 +43,6 @@ # make oldconfig # my $config = ".config"; -my $linuxpath = "."; my $uname = `uname -r`; chomp $uname; @@ -111,7 +110,11 @@ sub find_config { find_config; -my @makefiles = `find $linuxpath -name Makefile`; +# Get the build source and top level Kconfig file (passed in) +my $ksource = $ARGV[0]; +my $kconfig = $ARGV[1]; + +my @makefiles = `find $ksource -name Makefile`; my %depends; my %selects; my %prompts; @@ -119,9 +122,6 @@ my %objects; my $var; my $cont = 0; -# Get the top level Kconfig file (passed in) -my $kconfig = $ARGV[0]; - # prevent recursion my %read_kconfigs; @@ -132,7 +132,7 @@ sub read_kconfig { my $config; my @kconfigs; - open(KIN, $kconfig) || die "Can't open $kconfig"; + open(KIN, "$ksource/$kconfig") || die "Can't open $kconfig"; while (<KIN>) { chomp; |