[PATCH 1/2] Fix bsp_init hook.

Christian Mauderer christian.mauderer at embedded-brains.de
Fri Apr 6 11:19:15 UTC 2018


---
 rtems.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/rtems.py b/rtems.py
index 713066d..f974e25 100644
--- a/rtems.py
+++ b/rtems.py
@@ -136,12 +136,12 @@ def init(ctx, filters = None, version = None, long_commands = False, bsp_init =
             else:
                 commands += [cmd]
         waflib.Options.commands = commands
+
+        if bsp_init:
+            bsp_init(ctx, env, contexts)
     except:
         pass
 
-    if bsp_init:
-        bsp_init(ctx, env, contexts)
-
 def configure(conf, bsp_configure = None):
     #
     # Check the environment for any flags.
-- 
2.13.6




More information about the devel mailing list