summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2014-06-23 17:23:10 +1000
committerChris Johns <chrisj@rtems.org>2014-06-23 17:23:10 +1000
commitddb5f2d241a52e42c7bc09af5a8364c413e5f01b (patch)
tree06c820806df67663dae3563252d6fb9fe505f082
parent3d38f366b776c0bb5b57739ee5c64d7f4e857b9a (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.
-rw-r--r--rtems.py9
1 files changed, 8 insertions, 1 deletions
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