aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMadhavan Srinivasan <maddy@linux.vnet.ibm.com>2018-10-20 20:19:30 +0530
committerStewart Smith <stewart@linux.ibm.com>2018-10-23 20:08:21 -0500
commitae546e0b6d977b13ed93d63c365376af87f0fbb6 (patch)
tree880915b4fde6b621018a36c35258ee9e0aadaa1f
parent6ea075edd7af49c06fe758fb4014105de9cedac2 (diff)
downloadskiboot-ae546e0b6d977b13ed93d63c365376af87f0fbb6.zip
skiboot-ae546e0b6d977b13ed93d63c365376af87f0fbb6.tar.gz
skiboot-ae546e0b6d977b13ed93d63c365376af87f0fbb6.tar.bz2
external/mambo: Check for qtrace_utils.tcl before sourcing it
Commit cb835dbdf875 ('external/mambo: conditionally source qtrace script') added qtrace_utils.tcl sourcing in skiboot.tcl without a check to see whether it exists in the current directory. This broke running mambo from another directory using skiboot.tcl. Patch adds a check. Fixes: cb835dbdf875 ('external/mambo: conditionally source qtrace script') Signed-off-by: Madhavan Srinivasan <maddy@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
-rw-r--r--external/mambo/skiboot.tcl4
1 files changed, 3 insertions, 1 deletions
diff --git a/external/mambo/skiboot.tcl b/external/mambo/skiboot.tcl
index 17561be..545a7cc 100644
--- a/external/mambo/skiboot.tcl
+++ b/external/mambo/skiboot.tcl
@@ -1,6 +1,8 @@
# need to get images path defined early
source $env(LIB_DIR)/ppc/util.tcl
-source qtrace_utils.tcl
+if { [file exists qtrace_utils.tcl] } then {
+ source qtrace_utils.tcl
+}
#
# Call tclreadline's Loop to move to friendlier