diff options
author | Alistair Popple <alistair@popple.id.au> | 2019-05-08 16:17:47 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2019-05-15 16:22:23 +1000 |
commit | d7636a10bd59728888185aeb67adc9728ba84ae8 (patch) | |
tree | d1d45b8d7a4d1cd1d753a3823c8b1807fed344e9 /external | |
parent | 90d01f9526ba7884b22a4c5527a91cb90443785e (diff) | |
download | skiboot-d7636a10bd59728888185aeb67adc9728ba84ae8.zip skiboot-d7636a10bd59728888185aeb67adc9728ba84ae8.tar.gz skiboot-d7636a10bd59728888185aeb67adc9728ba84ae8.tar.bz2 |
external/mambo: Add an option to exit Mambo when the system is shutdown
Automatically exiting can be convenient for scripting. Will also exit
due to a HW crash (eg. unhandled exception).
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Alistair Popple <alistair@popple.id.au>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
[stewart: handle case where SKIBOOT_AUTORUN is not set]
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'external')
-rw-r--r-- | external/mambo/README.md | 5 | ||||
-rw-r--r-- | external/mambo/skiboot.tcl | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/external/mambo/README.md b/external/mambo/README.md index a0bc4a0..0390cc0 100644 --- a/external/mambo/README.md +++ b/external/mambo/README.md @@ -40,6 +40,11 @@ export SKIBOOT_ZIMAGE=$HOME/src/op-build/output/images/zImage.epapr export SKIBOOT=$HOME/src/op-build/output/images/skiboot.lid export SKIBOOT_AUTORUN=1 ``` +If you want Mambo to autmatically run *AND* exit when the system is +shutdown (or has a HW crash) use this: +``` +export SKIBOOT_AUTORUN=2 +``` If you want a vmlinux and separate initramfs you can also do this: ``` export SKIBOOT_ZIMAGE=$HOME/src/op-build/output/images/vmlinux diff --git a/external/mambo/skiboot.tcl b/external/mambo/skiboot.tcl index 1b05ba8..cd2f3ee 100644 --- a/external/mambo/skiboot.tcl +++ b/external/mambo/skiboot.tcl @@ -590,3 +590,7 @@ if { [info exists env(SKIBOOT_AUTORUN)] } { } else { readline } + +if { [info exists env(SKIBOOT_AUTORUN)] && $env(SKIBOOT_AUTORUN) == 2 } { + quit +} |