Lines Matching refs:config

9 #  config-bisect.pl [options] good-config bad-config [good|bad]
12 # Compares a good config to a bad config, then takes half of the diffs
13 # and produces a config that is somewhere between the good config and
14 # the bad config. That is, the resulting config will start with the
15 # good config and will try to make half of the differences of between
16 # the good and bad configs match the bad config. It tries because of
18 # exactly half of the configs that are different between the two config
24 # $ config-bisect.pl /path/to/good/config /path/to/bad/config
26 # This will now pull in good config (blowing away .config in that directory
28 # build the config with "make oldconfig" to make sure it matches the
30 # the good config. It does the same for the bad config as well.
34 # It then copies the result of its good config to /path/to/good/config.tmp
35 # and the bad config to /path/to/bad/config.tmp (just appends ".tmp" to the
36 # files passed in). And the ".config" that you should test will be in
43 # $ config-bisect.pl /path/to/good/config /path/to/bad/config good
46 # $ config-bisect.pl /path/to/good/config /path/to/bad/config bad
48 # Do not change the good-config or bad-config, config-bisect.pl will
49 # copy the good-config to a temp file with the same name as good-config
50 # but with a ".tmp" after it. It will do the same with the bad-config.
55 # If the last config is labeled "good", then it will copy it to the good .tmp
56 # version. If the last config is labeled "bad", it will copy it to the bad
74 usage: config-bisect.pl [-l linux-tree][-b build-dir] good-config bad-config [good|bad]
77 good-config the config that is considered good
78 bad-config the config that does not work
79 "good" add this if the last run produced a good config
80 "bad" add this if the last run produced a bad config
210 # a good config and we will ignore these configs for the rest
211 # of a config bisect. These configs stay as they were.
217 # config_off holds the set of configs that the bad config had disabled.
218 # We need to record them and set them in the .config when running
243 dodie "failed make config oldconfig";
249 my ($hash, $config) = @_;
251 doprint "Reading configs from $config\n";
253 open (IN, $config)
254 or dodie "Failed to read $config";
269 my ($config) = @_;
271 assign_configs \%config_ignore, $config;
275 my ($config) = @_;
277 my $arr = $dependency{$config};
301 foreach my $config (keys %configs) {
302 print OUT "$configs{$config}\n";
310 doprint "Creating old config from $name configs\n";
317 # compare two config hashes, and return configs with different vals.
318 # It returns B's config values, but you can use A to see what A was.
337 # compare two config hashes and return the configs in B but not A
388 my ($config) = @_;
391 doprint "Found bad config: $config\n";
412 doprint "New config equals bad config, try next test\n";
419 doprint "New config equals good config, try next test\n";
430 my ($config) = @_;
432 if ($config =~ /^# (.*) is not set/) {
433 $config = "$1=n";
436 $config =~ s/^CONFIG_//;
437 return $config;
441 my ($sym, $config) = @_;
443 $config = convert_config $config;
444 doprint "$sym$config\n";
456 my $config = $1;
460 doprint " $config $good_value -> $bad_value\n";
536 doprint "Set tmp config to be good config with some bad config values\n";
545 doprint "Set tmp config to be bad config with some good config values\n";
561 doprint "Set tmp config to be good config with some bad config values\n";
570 doprint "Set tmp config to be bad config with some good config values\n";
582 doprint "READY TO TEST .config IN $build\n";
708 $output_config = "$build/.config";
744 run_command "cp $output_config $good" or die "failed to copy $config to $good\n";
746 run_command "cp $output_config $bad" or die "failed to copy $config to $bad\n";