File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,17 +33,9 @@ silentoldconfig: $(obj)/conf
3333 $(Q ) mkdir -p include/generated
3434 $< --$@ $(Kconfig )
3535
36- # if no path is given, then use src directory to find file
37- ifdef LSMOD
38- LSMOD_F := $(LSMOD )
39- ifeq ($(findstring /,$(LSMOD ) ) ,)
40- LSMOD_F := $(objtree ) /$(LSMOD )
41- endif
42- endif
43-
4436localmodconfig : $(obj ) /streamline_config.pl $(obj ) /conf
4537 $(Q ) mkdir -p include/generated
46- $(Q ) perl $< $(srctree ) $(Kconfig ) $( LSMOD_F ) > .tmp.config
38+ $(Q ) perl $< $(srctree ) $(Kconfig ) > .tmp.config
4739 $(Q ) if [ -f .config ]; then \
4840 cmp -s .tmp.config .config || \
4941 (mv -f .config .config.old.1; \
@@ -58,7 +50,7 @@ localmodconfig: $(obj)/streamline_config.pl $(obj)/conf
5850
5951localyesconfig : $(obj ) /streamline_config.pl $(obj ) /conf
6052 $(Q ) mkdir -p include/generated
61- $(Q ) perl $< $(srctree ) $(Kconfig ) $( LSMOD_F ) > .tmp.config
53+ $(Q ) perl $< $(srctree ) $(Kconfig ) > .tmp.config
6254 $(Q ) sed -i s/=m/=y/ .tmp.config
6355 $(Q ) if [ -f .config ]; then \
6456 cmp -s .tmp.config .config || \
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ sub find_config {
115115# Get the build source and top level Kconfig file (passed in)
116116my $ksource = $ARGV [0];
117117my $kconfig = $ARGV [1];
118- my $lsmod_file = $ARGV [2] ;
118+ my $lsmod_file = $ENV { ' LSMOD ' } ;
119119
120120my @makefiles = ` find $ksource -name Makefile 2>/dev/null` ;
121121chomp @makefiles ;
@@ -296,7 +296,11 @@ sub read_kconfig {
296296
297297if (defined ($lsmod_file )) {
298298 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+ }
300304 }
301305 if ( -x $lsmod_file ) {
302306 # the file is executable, run it
You can’t perform that action at this time.
0 commit comments