def build(self, debug=True, log=None, **kwargs): player_bin = kwargs.get('player_bin', None) recorder_bin = kwargs.get('recorder_bin', None) toolbox = None if not all([player_bin, recorder_bin]): print(not all) if log: log.info('Building project sources') toolbox = Toolbox(self.config, log) toolbox.init_builder_module() if not player_bin: print('not player_bin') log.info('Building {}'.format(self.player)) player_bin = self.__build_binary(toolbox, PLAYER_APPS_TO_BUILTIN, self.player, self.zmodem_defconfig) if not recorder_bin: print('not recorder_bin') log.info('Building {}'.format(self.recorder)) recorder_bin = self.__build_binary(toolbox, RECORDER_APPS_TO_BUILTIN, self.recorder, self.recorder_test_defconfig) return dict(player_bin=player_bin, recorder_bin=recorder_bin)
def build(self, debug=True, log=None, device_data=None, device_bin=None, device=None): toolbox = None build_bin = device_bin if not device_bin: if log: log.info('Building project sources') toolbox = Toolbox(self.config, log) toolbox.init_builder_module() if device_data[BUILD_PATH] != None: print('not device_bin') log.info('Building {}'.format(device)) apps_path = [] defconfig_path = None for defconfig in device_data[BUILD_PATH]: if 'examples' == defconfig.split('/')[0]: apps_path.append(defconfig) elif 'defconfig' == defconfig.split('/')[-1].split( '-')[-1]: defconfig_path = os.path.join(os.getcwd(), TESTSW_PATH, defconfig) apps_path.append( defconfig_path.split('/')[-1].split('-')[0]) build_bin = self.__build_binary(toolbox, apps_path, device, defconfig_path) elif device_data[SKETCH_PATH] != None: pass return build_bin
def build(self, debug=True, log=None, **kwargs): dut_bin = kwargs.get('dut_bin', None) toolbox = None if not all([dut_bin]): if log: log.info('Building project sources') toolbox = Toolbox(self.config, log) toolbox.init_builder_module() if not dut_bin: dut_bin = self.__build_binary(toolbox, self.defconfig_path, self.gnss15973_test2_device) return dict(dut_bin=dut_bin)
def build(self, debug=True, log=None, **kwargs): dut_bin = kwargs.get('dut_bin', None) toolbox = None if not all([dut_bin]): print(not all) if log: log.info('Building project sources') toolbox = Toolbox(self.config, log) toolbox.init_builder_module() if not dut_bin: print('not dut_bin') log.info('Building {}'.format(self.device)) dut_bin = self.__build_binary(toolbox, APPS_TO_BUILTIN, self.device, self.test_defconfig) return dict(dut_bin=dut_bin)
def build(self, debug=True, log=None, **kwargs): dut_bin = kwargs.get('dut_bin', None) ref_bin = kwargs.get('ref_bin', None) toolbox = None if not all([dut_bin, ref_bin]): if log: log.info('Building project sources') toolbox = Toolbox(self.config, log) toolbox.init_builder_module() if not dut_bin: dut_bin = self.__build_binary(toolbox, self.defconfig_path, self.dig_write_high_low_test_device) if not ref_bin: ref_bin = self.__build_binary(toolbox, self.defconfig_path, self.dig_read_test_device) return dict(dut_bin=dut_bin, ref_bin=ref_bin)