Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-2.6-kconfig

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-2.6-kconfig:
kconfig: Fix make O=<dir> local{mod,yes}config

+8 -8
+2 -2
scripts/kconfig/Makefile
··· 30 30 $< -s $(Kconfig) 31 31 32 32 localmodconfig: $(obj)/streamline_config.pl $(obj)/conf 33 - $(Q)perl $< $(Kconfig) > .tmp.config 33 + $(Q)perl $< $(srctree) $(Kconfig) > .tmp.config 34 34 $(Q)if [ -f .config ]; then \ 35 35 cmp -s .tmp.config .config || \ 36 36 (mv -f .config .config.old.1; \ ··· 44 44 $(Q)rm -f .tmp.config 45 45 46 46 localyesconfig: $(obj)/streamline_config.pl $(obj)/conf 47 - $(Q)perl $< $(Kconfig) > .tmp.config 47 + $(Q)perl $< $(srctree) $(Kconfig) > .tmp.config 48 48 $(Q)sed -i s/=m/=y/ .tmp.config 49 49 $(Q)if [ -f .config ]; then \ 50 50 cmp -s .tmp.config .config || \
+6 -6
scripts/kconfig/streamline_config.pl
··· 43 43 # make oldconfig 44 44 # 45 45 my $config = ".config"; 46 - my $linuxpath = "."; 47 46 48 47 my $uname = `uname -r`; 49 48 chomp $uname; ··· 110 111 111 112 find_config; 112 113 113 - my @makefiles = `find $linuxpath -name Makefile`; 114 + # Get the build source and top level Kconfig file (passed in) 115 + my $ksource = $ARGV[0]; 116 + my $kconfig = $ARGV[1]; 117 + 118 + my @makefiles = `find $ksource -name Makefile`; 114 119 my %depends; 115 120 my %selects; 116 121 my %prompts; 117 122 my %objects; 118 123 my $var; 119 124 my $cont = 0; 120 - 121 - # Get the top level Kconfig file (passed in) 122 - my $kconfig = $ARGV[0]; 123 125 124 126 # prevent recursion 125 127 my %read_kconfigs; ··· 132 132 my $config; 133 133 my @kconfigs; 134 134 135 - open(KIN, $kconfig) || die "Can't open $kconfig"; 135 + open(KIN, "$ksource/$kconfig") || die "Can't open $kconfig"; 136 136 while (<KIN>) { 137 137 chomp; 138 138