[PATCH v2] Fix bsp_init hook.

Christian Mauderer christian.mauderer at embedded-brains.de
Fri Apr 6 12:07:51 UTC 2018


---
 rtems.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/rtems.py b/rtems.py
index 713066d..6907709 100644
--- a/rtems.py
+++ b/rtems.py
@@ -89,6 +89,8 @@ def init(ctx, filters = None, version = None, long_commands = False, bsp_init =
     #
     rtems_long_commands = long_commands
 
+    env = None
+    contexts = []
     try:
         import waflib.Options
         import waflib.ConfigSet
@@ -116,7 +118,6 @@ def init(ctx, filters = None, version = None, long_commands = False, bsp_init =
         #
         from waflib.Build import BuildContext, CleanContext, \
             InstallContext, UninstallContext
-        contexts = []
         for x in arch_bsps:
             for y in (BuildContext, CleanContext, InstallContext, UninstallContext):
                 name = y.__name__.replace('Context','').lower()
-- 
2.13.6



More information about the devel mailing list