Lines Matching refs:args
172 def filter_args(self, args): argument
181 if args.patch_base.is_relative_to(_WEST_MANIFEST_DIR):
182 args.patch_base = manifest_dir / args.patch_base.relative_to(_WEST_MANIFEST_DIR)
183 if args.patch_yml.is_relative_to(_WEST_MANIFEST_DIR):
184 args.patch_yml = manifest_dir / args.patch_yml.relative_to(_WEST_MANIFEST_DIR)
185 if args.west_workspace.is_relative_to(_WEST_TOPDIR):
186 args.west_workspace = topdir / args.west_workspace.relative_to(_WEST_TOPDIR)
188 def do_run(self, args, _): argument
189 self.filter_args(args)
191 if not os.path.isfile(args.patch_yml):
195 west_config = Path(args.west_workspace) / ".west" / "config"
200 with open(args.patch_yml) as f:
209 if not args.subcommand:
210 args.subcommand = "list"
218 method[args.subcommand](args, yml)
220 def apply(self, args, yml): argument
231 patch_path = os.path.realpath(Path(args.patch_base) / pth)
266 mod_path = Path(args.west_workspace) / mod
287 if args.roll_back:
288 self.clean(args, yml, patched_mods)
292 def clean(self, args, yml, mods=None): argument
304 for mod, mod_path in Patch.get_mod_paths(args, yml).items():
334 def list(self, args, yml): argument
343 def get_mod_paths(args, yml): argument
351 mod_path = os.path.realpath(Path(args.west_workspace) / mod)