def create(): compilerAxis = Axis("compiler", abbrev="c", values=[Compiler.AC6, Compiler.GCC, Compiler.IAR], desc="Compiler(s) to be considered.") targetAxis = Axis("target", abbrev="t", values=Target, desc="Target(s) to be considered.") buildStep = BuildStep("build", abbrev="b", desc="Build the selected configurations.") buildStep.projects = lambda step, config: PROJECTS[config['compiler']] buildStep.target = target filterIAR = Filter().addAxis(compilerAxis, Compiler.IAR).addAxis(targetAxis, "V8M*") builder = Builder() builder.addAxis([compilerAxis, targetAxis]) builder.addStep([buildStep]) builder.addFilter([filterIAR]) return builder
def create(): deviceAxis = Axis("device", abbrev="d", values=Device, desc="Device(s) to be considered.") compilerAxis = Axis("compiler", abbrev="c", values=Compiler, desc="Compiler(s) to be considered.") optimizeAxis = Axis("optimize", abbrev="o", values=OPTIMIZATION, desc="Optimization level(s) to be considered.") buildStep = BuildStep("build", abbrev="b", desc="Build the selected configurations.") buildStep.projects = projects buildStep.target = lambda step, config: "arm" + config['device'].value[ 1].lower() buildStep.pre = add_options runStep = RunModelStep("run", abbrev="r", desc="Run the selected configurations.") runStep.images = images runStep.model = lambda step, config: FVP_MODELS[config['device']] runStep.post = storeResult debugStep = RunModelStep("debug", abbrev="d", desc="Debug the selected configurations.") debugStep.images = images debugStep.args = lambda step, config: {'cadi': True, 'timeout': None} debugStep.model = lambda step, config: FVP_MODELS[config['device']] filterAC5 = Filter().addAxis(compilerAxis, Compiler.AC5).addAxis(deviceAxis, "CM[23]3*") filterAC6LTM = Filter().addAxis(compilerAxis, Compiler.AC6LTM).addAxis( deviceAxis, "CM35P*") builder = Builder() builder.addAxis([compilerAxis, deviceAxis, optimizeAxis]) builder.addStep([buildStep, runStep, debugStep]) builder.addFilter([filterAC5, filterAC6LTM]) return builder
def create(): deviceAxis = Axis("device", abbrev="d", values=Device, desc="Device(s) to be considered.") compilerAxis = Axis("compiler", abbrev="c", values=Compiler, desc="Compiler(s) to be considered.") targetAxis = Axis("target", abbrev="t", values=[TARGET_FVP], desc="Target(s) to be considered.") buildStep = BuildStep("build", abbrev="b", desc="Build the selected configurations.") buildStep.projects = projects buildStep.target = lambda step, config: config['target'] runStep = RunModelStep("run", abbrev="r", desc="Run the selected configurations.") runStep.images = images runStep.model = lambda step, config: FVP_MODELS[config['device']] runStep.post = storeResult debugStep = RunModelStep("debug", abbrev="d", desc="Debug the selected configurations.") debugStep.images = images debugStep.args = lambda step, config: {'cadi': True} debugStep.model = lambda step, config: FVP_MODELS[config['device']] filterAC5 = Filter().addAxis(compilerAxis, Compiler.AC5).addAxis(deviceAxis, "CM[23]3*") filterAC6LTM = Filter().addAxis(compilerAxis, Compiler.AC6LTM).addAxis( deviceAxis, "CM[23]3*") builder = Builder() builder.addAxis([compilerAxis, deviceAxis, targetAxis]) builder.addStep([buildStep, runStep, debugStep]) builder.addFilter([filterAC5, filterAC6LTM]) return builder