]> rtime.felk.cvut.cz Git - novaboot.git/commitdiff
Add an option to disable reseting of the target
authorMichal Sojka <sojkam1@fel.cvut.cz>
Wed, 10 Sep 2014 09:24:01 +0000 (11:24 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Wed, 10 Sep 2014 09:24:01 +0000 (11:24 +0200)
README.md
novaboot

index c8c5eab01cdea64662873871a14496b0bbad10cd..0ef9e89bdbf1a0edb01a932a83bb32c00456e998 100644 (file)
--- a/README.md
+++ b/README.md
@@ -425,6 +425,10 @@ can currently be accomplished by the following options: **--amt**,
 
     Command that resets the target.
 
+- --no-reset, --reset
+
+    Disable/enable reseting of the target.
+
 ## Interaction with the bootloader on the target
 
 - --uboot\[=_prompt_\]
index 803da506dae8c9e48be8329226f735d70be0c7a6..ec60ffe0fe2c9e2b8ee3e160e1eac56465a00dd3 100755 (executable)
--- a/novaboot
+++ b/novaboot
@@ -107,11 +107,12 @@ read_config($_) foreach $cfg or @cfgs;
 my $explicit_target;
 GetOptions ("target|t=s" => \$explicit_target);
 
-my ($amt, @append, $bender, @chainloaders, $concat, $config_name_opt, $dhcp_tftp, $dump_opt, $dump_config, @exiton, @expect_raw, $gen_only, $grub_config, $grub_prefix, $grub_preamble, $grub2_prolog, $grub2_config, $help, $ider, $iprelay, $iso_image, $interactive, $kernel_opt, $make, $man, $no_file_gen, $off_opt, $on_opt, $pulsar, $pulsar_root, $qemu, $qemu_append, $qemu_flags_cmd, $remote_cmd, $remote_expect, $reset_cmd, $rom_prefix, $rsync_flags, @scriptmod, $scons, $serial, $server, $stty, $tftp, $tftp_port, $uboot, %uboot_addr, @uboot_init);
+my ($amt, @append, $bender, @chainloaders, $concat, $config_name_opt, $dhcp_tftp, $dump_opt, $dump_config, @exiton, @expect_raw, $gen_only, $grub_config, $grub_prefix, $grub_preamble, $grub2_prolog, $grub2_config, $help, $ider, $iprelay, $iso_image, $interactive, $kernel_opt, $make, $man, $no_file_gen, $off_opt, $on_opt, $pulsar, $pulsar_root, $qemu, $qemu_append, $qemu_flags_cmd, $remote_cmd, $remote_expect, $reset, $reset_cmd, $rom_prefix, $rsync_flags, @scriptmod, $scons, $serial, $server, $stty, $tftp, $tftp_port, $uboot, %uboot_addr, @uboot_init);
 
 $rsync_flags = '';
 $rom_prefix = 'rom://';
 $stty = 'raw -crtscts -onlcr 115200';
+$reset = 1;                    # Reset target by default
 
 my @expect_seen = ();
 sub handle_expect
@@ -169,6 +170,7 @@ my %opt_spec;
     "qemu-flags|q=s" => \$qemu_flags_cmd,
     "remote-cmd=s"   => \$remote_cmd,
     "remote-expect=s"=> \$remote_expect,
+    "reset!"         => \$reset,
     "reset-cmd=s"    => \$reset_cmd,
     "rsync-flags=s"  => \$rsync_flags,
     "scons:s"       => \$scons,
@@ -976,7 +978,7 @@ if (defined $ider) {
 
 ### Reset target (IP relay, AMT, ...)
 
-if (defined $target_reset) {
+if (defined $target_reset && $reset) {
     print "novaboot: Reseting the test box... ";
     &$target_reset();
     print "done\n";
@@ -1555,6 +1557,10 @@ Replace the default qemu flags (QEMU_FLAGS variable or C<-cpu coreduo
 
 Command that resets the target.
 
+=item --no-reset, --reset
+
+Disable/enable reseting of the target.
+
 =back
 
 =head2 Interaction with the bootloader on the target