From ddb5f2d241a52e42c7bc09af5a8364c413e5f01b Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Mon, 23 Jun 2014 17:23:10 +1000 Subject: Let the user provide a handler that is called when configuring. The handler is called with the BSP environment set up so the user can perform various checks. --- rtems.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/rtems.py b/rtems.py index 59047f3..f064ac4 100644 --- a/rtems.py +++ b/rtems.py @@ -118,7 +118,7 @@ def init(ctx, filters = None): except: pass -def configure(conf): +def configure(conf, bsp_configure = None): # # Handle the show commands option. # @@ -202,6 +202,13 @@ def configure(conf): # conf.env.SHOW_COMMANDS = show_commands + # + # If there is a handler call it. This lets the user make configuration + # checks with in the BSP's context. + # + if bsp_configure is not None: + bsp_configure(conf, ab) + conf.setenv('', env) conf.env.RTEMS_TOOLS = rtems_tools -- cgit v1.2.3