Lines Matching refs:config
247 # set when creating a new config
255 # in a .config file. The MIN_CONFIG and ADD_CONFIG configs.
258 # do not force reboots on config problems
531 # a good config and we will ignore these configs for the rest
532 # of a config bisect. These configs stay as they were.
538 # config_off holds the set of configs that the bad config had disabled.
539 # We need to record them and set them in the .config when running
649 my ($config) = @_;
652 return if (defined($opt{$config}));
654 if (defined($config_help{$config})) {
656 print $config_help{$config};
660 print "$config = ";
661 if (defined($default{$config}) && length($default{$config})) {
662 print "\[$default{$config}\] ";
667 if ($default{$config}) {
668 $ans = $default{$config};
674 $entered_configs{$config} = ${ans};
1014 my ($config, $current_test_num) = @_;
1017 open($in, $config) || die "can't read file $config";
1019 my $name = $config;
1160 # check the path of the config file first
1161 if ($config =~ m,(.*)/,) {
1230 # process config variables.
1232 # config and can be defined anywhere. They also ignore
1241 die "$name: $.: Garbage found in config\n$_";
1268 my ($config) = @_;
1273 $test_case = __read_config $config, \$test_num;
1793 "config" => $output_config,
2355 open(IN, "$output_config") or dodie("Can't read config file");
2538 # Read the config file and remove anything that
2540 # then add the force config back.
2558 foreach my $config (keys %force_config) {
2559 print OUT "$force_config{$config}\n";
2582 dodie "failed make config oldconfig";
2587 # read a config file and use this to force new configs.
2589 my ($config) = @_;
2591 doprint "Loading force configs from $config\n";
2592 open(IN, $config) or
2593 dodie "failed to read $config";
2629 dodie "could not copy $1 to .config";
2634 # old config can ask questions
2643 dodie "moving .config";
2667 dodie "failed make config";
2669 # Run old config regardless, to enforce min configurations
3098 print "** BISECT_REPLAY is defined in config file **";
3099 print " Ignore config option and perform new git bisect log?\n";
3181 my ($hash, $config) = @_;
3183 doprint "Reading configs from $config\n";
3185 open (IN, $config) or
3186 dodie "Failed to read $config";
3201 my ($config) = @_;
3203 assign_configs \%config_ignore, $config;
3207 my ($config) = @_;
3209 my $arr = $dependency{$config};
3233 foreach my $config (keys %configs) {
3234 print OUT "$configs{$config}\n";
3242 doprint "Creating old config from $name configs\n";
3269 doprint "No more config bisecting possible.\n";
3285 # config-bisect returns:
3287 # 1 for finding a good config
3299 # Return 3 for good config
3305 # Return 4 for bad config
3326 doprint "No config specified, checking if defconfig works";
3329 fail "Have no good config to compare with, please set CONFIG_BISECT_GOOD";
3338 "$pwd/config-bisect.pl",
3339 "$dirname/config-bisect.pl",
3340 "$builddir/tools/testing/ktest/config-bisect.pl",
3348 fail "Could not find an executable config-bisect.pl\n",
3349 " Set CONFIG_BISECT_EXEC to point to config-bisect.pl";
3363 if (read_yn "Interrupted config-bisect. Continue (n - will start new)?") {
3380 system("cp $output_config $good_config") == 0 or dodie "cp good config";
3386 system("cp $output_config $bad_config") == 0 or dodie "cp bad config";
3390 doprint "Testing bad config\n";
3394 fail "Bad config succeeded when expected to fail!";
3399 doprint "Testing good config\n";
3403 fail "Good config failed when expected to succeed!";
3531 # ?? no config to use?
3566 # $config depends on $dep
3567 my ($config, $dep) = @_;
3569 if (defined($depends{$config})) {
3570 $depends{$config} .= " " . $dep;
3572 $depends{$config} = $dep;
3588 my $config;
3623 if (/^\s*(menu)?config\s+(\S+)\s*$/) {
3625 $config = $2;
3628 add_dep $config, $ifdeps[$i];
3631 # collect the depends for the config
3634 add_dep $config, $1;
3636 # Get the configs that select this config
3639 # selected by depends on config
3640 add_dep $1, $config;
3687 doprint "Could not find arch from config file\n";
3721 foreach my $config (@configs) {
3722 print OUT "$config\n";
3728 my ($config) = @_;
3730 $config =~ s/CONFIG_//;
3732 return $config;
3766 my ($config) = @_;
3770 # if we already processed this config, skip it
3771 if (defined($processed_configs{$config})) {
3774 $processed_configs{$config} = 1;
3776 # if this config failed during this round, skip it
3777 if (defined($nochange_config{$config})) {
3781 my $kconfig = chomp_config $config;
3785 my @parents = get_depends $config;
3787 # if the parent is in the min config, check it first
3796 # Remove this config from the list of configs
3798 # .config to make sure it is missing the config that
3801 $configs{$config} = "# $config is not set";
3804 delete $configs{$config};
3808 if (!defined($configs{$config}) || $configs{$config} =~ /^#/) {
3809 return $config;
3812 doprint "disabling config $config did not change .config\n";
3814 $nochange_config{$config} = 1;
3888 foreach my $config (@config_keys) {
3889 my $kconfig = chomp_config $config;
3897 foreach my $config (@config_keys) {
3899 if (defined($keep_configs{$config})) {
3902 doprint "$config set by $file ... ignored\n";
3903 delete $min_configs{$config};
3906 # But make sure the settings are the same. If a min config
3910 if (defined($config_ignore{$config})) {
3911 if ($config_ignore{$config} ne $min_configs{$config}) {
3912 doprint "$config is in allnoconfig as '$config_ignore{$config}'";
3913 doprint " but it is '$min_configs{$config}' in minconfig .. keeping\n";
3914 $keep_configs{$config} = $min_configs{$config};
3916 doprint "$config set by allnoconfig ... ignored\n";
3918 delete $min_configs{$config};
3926 my $config;
3929 # Now disable each config one by one and do a make oldconfig
3930 # till we find a config that changes our list.
3938 # Put configs that did not modify the config at the end.
3945 # This config didn't change the .config last time.
3947 my $config = shift @test_configs;
3948 push @test_configs, $config;
3951 # if every test config has failed to modify the .config file
3959 foreach my $config (@test_configs) {
3961 $found = test_this_config $config;
3965 # oh well, try another config
3982 $config = $found;
3984 doprint "Test with $config disabled\n";
4004 doprint "$min_configs{$config} is needed to boot the box... keeping\n";
4005 # this config is needed, add it to the ignore list.
4006 $keep_configs{$config} = $min_configs{$config};
4007 $save_configs{$config} = $min_configs{$config};
4008 delete $min_configs{$config};
4014 foreach my $config (keys %save_configs) {
4015 print OUT "$save_configs{$config}\n";
4023 # We booted without this config, remove it from the minconfigs.
4024 doprint "$config is not needed, disabling\n";
4026 delete $min_configs{$config};
4028 # Also disable anything that is not enabled in this config
4032 foreach my $config (@config_keys) {
4033 if (!defined($configs{$config})) {
4034 doprint "$config is not set, disabling\n";
4035 delete $min_configs{$config};
4042 foreach my $config (keys %keep_configs) {
4043 print OUT "$keep_configs{$config}\n";
4045 foreach my $config (keys %min_configs) {
4046 print OUT "$min_configs{$config}\n";
4208 doprint "No email sent: email or mailer not specified in config.\n";
4227 $#ARGV < 1 or die "ktest.pl version: $VERSION\n usage: ktest.pl [config-file]\n";
4251 # the config file. It is best to use this variable when assigning other
4258 # The config options below it will override the defaults
4273 # Append any configs entered in manually to the config file.
4278 foreach my $config (@new_configs) {
4279 print OUT "$config = $entered_configs{$config}\n";
4280 $opt{$config} = process_variables($entered_configs{$config});
4394 $output_config = "$outputdir/.config";
4421 # mistake in config file?
4461 dodie "Failed to create temp config";