streamline_config.pl (6288cf1e768ae73db5ddaaae54d85245cc1c2b56) | streamline_config.pl (f597a718296eef9622ebc1d13f4f8324fa169cef) |
---|---|
1#!/usr/bin/perl -w 2# 3# Copyright 2005-2009 - Steven Rostedt 4# Licensed under the terms of the GNU GPL License version 2 5# 6# It's simple enough to figure out how this works. 7# If not, then you can ask me at stripconfig@goodmis.org 8# --- 101 unchanged lines hidden (view full) --- 110 die "No config file found"; 111} 112 113find_config; 114 115# Get the build source and top level Kconfig file (passed in) 116my $ksource = $ARGV[0]; 117my $kconfig = $ARGV[1]; | 1#!/usr/bin/perl -w 2# 3# Copyright 2005-2009 - Steven Rostedt 4# Licensed under the terms of the GNU GPL License version 2 5# 6# It's simple enough to figure out how this works. 7# If not, then you can ask me at stripconfig@goodmis.org 8# --- 101 unchanged lines hidden (view full) --- 110 die "No config file found"; 111} 112 113find_config; 114 115# Get the build source and top level Kconfig file (passed in) 116my $ksource = $ARGV[0]; 117my $kconfig = $ARGV[1]; |
118my $lsmod_file = $ARGV[2]; | 118my $lsmod_file = $ENV{'LSMOD'}; |
119 120my @makefiles = `find $ksource -name Makefile 2>/dev/null`; 121chomp @makefiles; 122 123my %depends; 124my %selects; 125my %prompts; 126my %objects; --- 164 unchanged lines hidden (view full) --- 291 } 292 close(MIN); 293} 294 295my %modules; 296 297if (defined($lsmod_file)) { 298 if ( ! -f $lsmod_file) { | 119 120my @makefiles = `find $ksource -name Makefile 2>/dev/null`; 121chomp @makefiles; 122 123my %depends; 124my %selects; 125my %prompts; 126my %objects; --- 164 unchanged lines hidden (view full) --- 291 } 292 close(MIN); 293} 294 295my %modules; 296 297if (defined($lsmod_file)) { 298 if ( ! -f $lsmod_file) { |
299 die "$lsmod_file not found"; | 299 if ( -f $ENV{'objtree'}."/".$lsmod_file) { 300 $lsmod_file = $ENV{'objtree'}."/".$lsmod_file; 301 } else { 302 die "$lsmod_file not found"; 303 } |
300 } 301 if ( -x $lsmod_file) { 302 # the file is executable, run it 303 open(LIN, "$lsmod_file|"); 304 } else { 305 # Just read the contents 306 open(LIN, "$lsmod_file"); 307 } --- 144 unchanged lines hidden --- | 304 } 305 if ( -x $lsmod_file) { 306 # the file is executable, run it 307 open(LIN, "$lsmod_file|"); 308 } else { 309 # Just read the contents 310 open(LIN, "$lsmod_file"); 311 } --- 144 unchanged lines hidden --- |