Lines Matching refs:boot_img
34 def get_kernel(boot_img): argument
37 unpack_bootimg(boot_img, unpack_dir)
44 def add_certificate(boot_img, algorithm, key, extra_args): argument
64 boot_signature_bytes += generate_certificate(boot_img, 'boot')
67 kernel_img.write(get_kernel(boot_img))
79 with open(boot_img, 'ab') as f:
83 def erase_certificate_and_avb_footer(boot_img): argument
90 avbtool_cmd = ['avbtool', 'erase_footer', '--image', boot_img]
92 assert os.path.getsize(boot_img) > 0
95 if os.path.getsize(boot_img) <= BOOT_SIGNATURE_SIZE:
99 with open(boot_img, 'rb') as image:
115 new_file_size = os.path.getsize(boot_img) - BOOT_SIGNATURE_SIZE
116 os.truncate(boot_img, new_file_size)
118 assert os.path.getsize(boot_img) > 0
249 def certify_bootimg(boot_img, output_img, algorithm, key, extra_args, argument
254 shutil.copy2(boot_img, boot_tmp)
259 avb_partition_size = get_avb_image_size(boot_img)
276 for boot_img in glob.glob(os.path.join(unpack_dir, 'boot*.img')):
278 certify_bootimg(boot_img=boot_img, output_img=boot_img,
305 certify_bootimg(args.boot_img, args.output, args.algorithm,