Lines Matching refs:args
550 def Binman(args): argument
562 if args.full_help:
575 if args.cmd in ['ls', 'extract', 'replace']:
577 tout.Init(args.verbosity)
579 if args.cmd == 'ls':
580 ListEntries(args.image, args.paths)
582 if args.cmd == 'extract':
583 ExtractEntries(args.image, args.filename, args.outdir, args.paths,
584 not args.uncompressed)
586 if args.cmd == 'replace':
587 ReplaceEntries(args.image, args.filename, args.indir, args.paths,
588 do_compress=not args.compressed,
589 allow_resize=not args.fix_size, write_map=args.map)
597 if args.dt:
598 dtb_fname = args.dt
600 board = args.board
603 board_pathname = os.path.join(args.build_dir, board)
605 if not args.indir:
606 args.indir = ['.']
607 args.indir.append(board_pathname)
610 tout.Init(args.verbosity)
611 elf.debug = args.debug
612 cbfs_util.VERBOSE = args.verbosity > 2
613 state.use_fake_dtb = args.fake_dtb
615 tools.SetInputDirs(args.indir)
616 tools.PrepareOutputDir(args.outdir, args.preserve)
617 tools.SetToolPaths(args.toolpath)
618 state.SetEntryArgs(args.entry_arg)
620 images = PrepareImagesAndDtbs(dtb_fname, args.image,
621 args.update_fdt)
624 missing |= ProcessImage(image, args.update_fdt, args.map,
625 allow_missing=args.allow_missing)