summaryrefslogtreecommitdiff
path: root/rtems.py
diff options
context:
space:
mode:
Diffstat (limited to 'rtems.py')
-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