Changeset 4ef2f41 in rtems_waf


Ignore:
Timestamp:
Apr 6, 2018, 6:54:34 AM (4 years ago)
Author:
Christian Mauderer <christian.mauderer@…>
Branches:
1a118bbcd52138dbdc3236e64bc23fd430a064b1
Children:
f490cd3
Parents:
de75eec
git-author:
Christian Mauderer <christian.mauderer@…> (04/06/18 06:54:34)
git-committer:
Chris Johns <chrisj@…> (04/06/18 06:58:15)
Message:

Add bsp_init hook.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtems.py

    rde75eec r4ef2f41  
    7070                   help = 'Print the commands as strings.')
    7171
    72 def init(ctx, filters = None, version = None, long_commands = False):
     72def init(ctx, filters = None, version = None, long_commands = False, bsp_init = None):
    7373    global rtems_filters
    7474    global rtems_default_version
     
    113113
    114114        #
    115         # Update the contextes for all the bsps.
     115        # Update the contexts for all the bsps.
    116116        #
    117117        from waflib.Build import BuildContext, CleanContext, \
    118118            InstallContext, UninstallContext
     119        contexts = []
    119120        for x in arch_bsps:
    120121            for y in (BuildContext, CleanContext, InstallContext, UninstallContext):
     
    123124                    cmd = name + '-' + x
    124125                    variant = x
     126                contexts += [context]
    125127
    126128        #
     
    137139    except:
    138140        pass
     141
     142    if bsp_init:
     143        bsp_init(ctx, env, contexts)
    139144
    140145def configure(conf, bsp_configure = None):
Note: See TracChangeset for help on using the changeset viewer.