def run(self, variables, targets, verbose): for v in variables: if "BOARD=" not in v: continue disable_tool = "tool-micronucleus" _, board = v.split("=") bdata = get_boards(board) if "digispark" in bdata['build']['core']: disable_tool = "tool-avrdude" del self.PACKAGES[disable_tool]['alias'] break return BasePlatform.run(self, variables, targets, verbose)
def run(self, variables, targets): for v in variables: if "BOARD=" not in v: continue tuploader = "tool-avrdude" _, board = v.split("=") bdata = get_boards(board) if "digispark" in bdata['build']['core']: tuploader = "tool-micronucleus" self.PACKAGES[tuploader]['alias'] = "uploader" break return BasePlatform.run(self, variables, targets)
def run(self, variables, targets): for v in variables: if "BOARD=" not in v: continue _, board = v.split("=") bdata = get_boards(board) if bdata['build']['core'] == "teensy": tpackage = "toolchain-atmelavr" else: tpackage = "toolchain-gccarmnoneeabi" self.PACKAGES[tpackage]['alias'] = "toolchain" break return BasePlatform.run(self, variables, targets)
def run(self, variables, targets, verbose): for v in variables: if "BOARD=" not in v: continue _, board = v.split("=") bdata = get_boards(board) if bdata['build']['core'] == "teensy": tpackage = "toolchain-atmelavr" else: tpackage = "toolchain-gccarmnoneeabi" self.PACKAGES[tpackage]['alias'] = "toolchain" break return BasePlatform.run(self, variables, targets, verbose)