Lines Matching refs:command
215 def sign(self, command, build_dir, build_conf, formats): argument
227 def sign(self, command, build_dir, build_conf, formats): argument
231 args = command.args
234 command.wrn("west sign using imgtool is deprecated and will be removed in a future release")
236 imgtool = self.find_imgtool(command, args)
238 appver = self.get_cfg(command, build_conf, 'CONFIG_MCUBOOT_IMGTOOL_SIGN_VERSION')
239 vtoff = self.get_cfg(command, build_conf, 'CONFIG_ROM_START_OFFSET')
242 flash = self.edt_flash_node(command, b, args.quiet)
243 align, addr, size = self.edt_flash_params(command, flash)
246 command.wrn("CONFIG_BOOTLOADER_MCUBOOT is not set to y in "
254 command.die(f"no unsigned .bin found at {in_bin}")
261 command.die(f"no unsigned .hex found at {in_hex}")
267 command.banner('image configuration:')
268 command.inf('partition offset: {0} (0x{0:x})'.format(addr))
269 command.inf('partition size: {0} (0x{0:x})'.format(size))
270 command.inf('rom start offset: {0} (0x{0:x})'.format(vtoff))
281 command.banner('signing binaries')
286 command.inf(f'unsigned bin: {in_bin}')
287 command.inf(f'signed bin: {out_bin}')
288 command.dbg(quote_sh_list(sign_bin))
294 command.inf(f'unsigned hex: {in_hex}')
295 command.inf(f'signed hex: {out_hex}')
296 command.dbg(quote_sh_list(sign_hex))
323 def get_cfg(command, build_conf, item): argument
327 command.check_force(
414 args = self.command.args
421 self.command.dbg(f'rimage config directory={conf_dir}')
451 self.command.inf(quote_sh_list(preproc_cmd))
455 def sign(self, command, build_dir, build_conf, formats): argument
456 self.command = command
457 args = command.args
471 command.inf(msg)
474 command.die(msg)
506 command.config_get('rimage.path', None)
511 command.check_force(shutil.which(tool_path),
518 command.wrn(err_msg)
519 command.wrn('zephyr binary _not_ signed!')
522 command.die(err_msg)
527 command.inf('Signing with tool {}'.format(tool_path))
530 sof_proj = command.manifest.get_projects(['sof'], allow_paths=False)
538 command.inf('Signing for SOC target ' + target)
574 sign_config_extra_args = command.config_get_words('rimage.extra-args', [])
582 command.wrn('--tool-data ' + args.tool_data + ' ignored! Overridden by: -- -c ... ')
589 … command.die(f"Cannot have both {toml_basename + '.h'} and {toml_basename} in {conf_dir}")
605 command.inf(quote_sh_list(sign_base))
613 command.inf('Prefixing ' + out_bin + ' with manifest ' + out_xman)