Ejemplo n.º 1
0
def MAP(env, target, source):
    """
    A pseudo-builder wrapper for the Xilinx map
    """
    config = utils.read_config(env)

    env["MAP_SOURCES"] = source
    env["MAP_TARGETS"] = target

    _map_builder.__call__(env, target, source)

    return map_utils.get_map_filename(config)
Ejemplo n.º 2
0
def MAP(env, target, source):
    """
    A pseudo-builder wrapper for the Xilinx map
    """
    config = utils.read_config(env)

    env["MAP_SOURCES"] = source
    env["MAP_TARGETS"] = target

    _map_builder.__call__(env, target, source)

    return map_utils.get_map_filename(config)
Ejemplo n.º 3
0
def generate(env):
    """Add the map builder to the environment"""
    env["MAP_COMMAND"] = _detect(env)

    config = utils.read_config(env)
    map_utils.create_map_dir(config)
    map_file = map_utils.get_map_filename(config, absolute=True)
    flag_string = map_utils.get_build_flags_string(config)

    env.SetDefault(MAP_OUTFILE=map_file,
                   MAP_FLAGSTRING=flag_string,
                   MAP_COM="$MAP_COMMAND $MAP_FLAGSTRING $MAP_SOURCES")
    env.AddMethod(MAP, 'map')
    return None
Ejemplo n.º 4
0
def generate(env):
    """Add the map builder to the environment"""
    env["MAP_COMMAND"] = _detect(env)

    config = utils.read_config(env)
    map_utils.create_map_dir(config)
    map_file = map_utils.get_map_filename(config, absolute = True)
    flag_string = map_utils.get_build_flags_string(config)

    env.SetDefault(
        MAP_OUTFILE = map_file,
        MAP_FLAGSTRING = flag_string,
        MAP_COM = "$MAP_COMMAND $MAP_FLAGSTRING $MAP_SOURCES"
    )
    env.AddMethod(MAP, 'map')
    return None
Ejemplo n.º 5
0
def get_map_targets(env):
    config = utils.read_config(env)
    return map_utils.get_map_filename(config, absolute=True)
Ejemplo n.º 6
0
 def test_get_output_map_file(self):
     config = self.config
     map_fn = map_utils.get_map_filename(config, absolute = True)