[Skiboot] [PATCH] external/mambo: Add an option to exit Mambo when the system is shutdown
Alistair Popple
alistair at popple.id.au
Tue Feb 19 12:45:51 AEDT 2019
Automatically exiting can be convenient for scripting. Will also exit
due to a HW crash (eg. unhandled exception).
Signed-off-by: Alistair Popple <alistair at popple.id.au>
---
external/mambo/README.md | 5 +++++
external/mambo/skiboot.tcl | 4 ++++
2 files changed, 9 insertions(+)
diff --git a/external/mambo/README.md b/external/mambo/README.md
index 750a81e4..a11fe4ae 100644
--- a/external/mambo/README.md
+++ b/external/mambo/README.md
@@ -47,6 +47,11 @@ export SKIBOOT_INITRD=$HOME/src/op-build/output/images/rootfs.cpio.xz
export SKIBOOT=$HOME/src/skiboot/skiboot.lid
export SKIBOOT_AUTORUN=1
```
+If you want Mambo to autmatically exit when the system is shutdown (or
+has a HW crash) use this:
+```
+export SKIBOOT_AUTORUN=2
+```
### Run the simulator
```
diff --git a/external/mambo/skiboot.tcl b/external/mambo/skiboot.tcl
index 25414450..62c21897 100644
--- a/external/mambo/skiboot.tcl
+++ b/external/mambo/skiboot.tcl
@@ -568,3 +568,7 @@ if { [info exists env(SKIBOOT_AUTORUN)] } {
readline
}
}
+
+if { $env(SKIBOOT_AUTORUN) == 2 } {
+ quit
+}
--
2.11.0
More information about the Skiboot
mailing list