def tb_c_file_creation(target, source, env):
    """Compile tilebus file into a .h/.c pair for compilation into an ARM object"""

    files = [str(x) for x in source]

    try:
        desc = TBDescriptor(files)
    except pyparsing.ParseException as e:
        raise BuildError("Could not parse tilebus file", parsing_exception=e)

    block = desc.get_block()
    block.render_template(block.CommandFileTemplate, out_path=str(target[0]))
    block.render_template(block.CommandHeaderTemplate, out_path=str(target[1]))
    block.render_template(block.ConfigFileTemplate, out_path=str(target[2]))
    block.render_template(block.ConfigHeaderTemplate, out_path=str(target[3]))
def tb_c_file_creation ( target , source , env ) : files = [ str ( x ) for x in source ] try : desc = TBDescriptor ( files ) except pyparsing . ParseException as e : raise BuildError ( "Could not parse tilebus file" , parsing_exception = e ) block = desc . get_block ( ) block . render_template ( block . CommandFileTemplate , out_path = str ( target [ 0 ] ) ) block . render_template ( block . CommandHeaderTemplate , out_path = str ( target [ 1 ] ) ) block . render_template ( block . ConfigFileTemplate , out_path = str ( target [ 2 ] ) ) block . render_template ( block . ConfigHeaderTemplate , out_path = str ( target [ 3 ] ) )
Compile tilebus file into a .h/.c pair for compilation into an ARM object