diff options
author | Chris Johns <chrisj@rtems.org> | 2014-06-23 17:23:10 +1000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2014-06-23 17:23:10 +1000 |
commit | ddb5f2d241a52e42c7bc09af5a8364c413e5f01b (patch) | |
tree | 06c820806df67663dae3563252d6fb9fe505f082 /rtems.py | |
parent | 3d38f366b776c0bb5b57739ee5c64d7f4e857b9a (diff) |
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.
Diffstat (limited to 'rtems.py')
-rw-r--r-- | rtems.py | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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 |