[examples-v2 commit] User friendly error message if the rtems_waf module is not included.

Chris Johns chrisj at rtems.org
Fri Dec 13 11:02:52 UTC 2013


Module:    examples-v2
Branch:    master
Commit:    c247956c5fd0a0386b8419e7f463c13262b10426
Changeset: http://git.rtems.org/examples-v2/commit/?id=c247956c5fd0a0386b8419e7f463c13262b10426

Author:    Chris Johns <chrisj at rtems.org>
Date:      Fri Dec 13 22:08:41 2013 +1100

User friendly error message if the rtems_waf module is not included.

---

 wscript |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/wscript b/wscript
index 4a4362c..8f976db 100644
--- a/wscript
+++ b/wscript
@@ -1,9 +1,9 @@
 # Copyright 2013 Chris Johns (chrisj at rtems.org)
-# 
+#
 # This file's license is 2-clause BSD as in this distribution's LICENSE.2 file.
 #
 
-# Waf build script for RTEMS examples 
+# Waf build script for RTEMS examples
 #
 # To configure, build and run do:
 #
@@ -17,7 +17,12 @@
 # to build for more than BSP at a time.
 #
 
-import rtems_waf.rtems as rtems
+try:
+    import rtems_waf.rtems as rtems
+except:
+    print 'error: no rtems_waf git submodule; see README.waf'
+    import sys
+    sys.exit(1)
 
 def init(ctx):
     rtems.init(ctx)




More information about the vc mailing list