# which would require more options.
my $buildonly = 1;
+# set when creating a new config
+my $newconfig = 0;
+
my %entered_configs;
my %config_help;
my %variable;
(relative to OUTPUT_DIR)
EOF
;
+$config_help{"BUILD_OPTIONS"} = << "EOF"
+ Options to add to \"make\" when building.
+ i.e. -j20
+EOF
+ ;
$config_help{"TARGET_IMAGE"} = << "EOF"
The place to put your image on the test machine.
EOF
for (;;) {
print "$config = ";
- if (defined($default{$config})) {
+ if (defined($default{$config}) && length($default{$config})) {
print "\[$default{$config}\] ";
}
$ans = <STDIN>;
get_ktest_config("BUILD_DIR");
get_ktest_config("OUTPUT_DIR");
+ if ($newconfig) {
+ get_ktest_config("BUILD_OPTIONS");
+ }
+
# options required for other than just building a kernel
if (!$buildonly) {
get_ktest_config("SSH_USER");
}
if (! -f $ktest_config) {
+ $newconfig = 1;
get_test_case;
open(OUT, ">$ktest_config") or die "Can not create $ktest_config";
print OUT << "EOF"