Lines Matching refs:args
85 def write_head_info(head_info, args): argument
86 args.output.write(pack(dt_head_info_fmt,
91 def write_dtb_entry_t(dt_entry, args): argument
92 args.output.write(pack(dt_entry_fmt,
101 def write_padding(args, padding): argument
103 args.output.write('\x00')
105 def write_dtb(args): argument
106 dtb_file = args.dtb
108 if args.compress == True:
114 padding = align_page_size(dtb_offset, args.pagesize)
116 dtb_size_padding = align_page_size(dtb_size, args.pagesize)
119 write_dtb_entry_t(dt_entry, args)
120 args.output.write(pack('I', 0)) # SUCCESS code number
121 write_padding(args, padding)
123 args.output.write(dtb_fd.read(dtb_size))
124 write_padding(args, dtb_size_padding)
129 def clean_gz_file(args): argument
131 if args.compress != True:
133 remove(args.dtb + '.gz')
152 args = parse_cmdline()
154 write_head_info(dtimg_head_info, args)
155 write_dtb(args)
156 clean_gz_file(args)