• Home
  • Raw
  • Download

Lines Matching refs:OPTIONS

103 OPTIONS = Options()  variable
209 if OPTIONS.verbose:
213 if OPTIONS.logfile:
220 'filename': OPTIONS.logfile,
228 OPTIONS.host_tools[tool_name] = location
241 if tool_name in OPTIONS.host_tools:
242 return OPTIONS.host_tools[tool_name]
1307 key_path = OPTIONS.info_dict.get("avb_" + partition + "_key_path")
1308 if key_path and not os.path.exists(key_path) and OPTIONS.search_path:
1309 new_key_path = os.path.join(OPTIONS.search_path, key_path)
1312 algorithm = OPTIONS.info_dict.get("avb_" + partition + "_algorithm")
1315 avb_salt = OPTIONS.info_dict.get("avb_salt")
1337 info_dict = OPTIONS.info_dict
1373 if key and not os.path.exists(key) and OPTIONS.search_path:
1374 new_key_path = os.path.join(OPTIONS.search_path, key)
1387 assert OPTIONS.aftl_tool_path is not None, 'No aftl tool provided.'
1388 assert OPTIONS.aftl_key_path is not None, 'No AFTL key provided.'
1389 assert OPTIONS.aftl_manufacturer_key_path is not None, \
1394 build_info = BuildInfo(OPTIONS.info_dict, use_legacy_id=True)
1396 aftltool = OPTIONS.aftl_tool_path
1397 server_argument_list = [OPTIONS.aftl_server, OPTIONS.aftl_key_path]
1403 "--manufacturer_key", OPTIONS.aftl_manufacturer_key_path,
1406 if OPTIONS.aftl_signer_helper:
1407 aftl_cmd.extend(shlex.split(OPTIONS.aftl_signer_helper))
1419 OPTIONS.aftl_key_path]
1428 key_path = OPTIONS.info_dict.get("gki_signing_key_path")
1433 if not os.path.exists(key_path) and OPTIONS.search_path:
1434 new_key_path = os.path.join(OPTIONS.search_path, key_path)
1443 algorithm = OPTIONS.info_dict.get("gki_signing_algorithm")
1448 signature_args = OPTIONS.info_dict.get("gki_signing_signature_args")
1472 avbtool = OPTIONS.info_dict["avb_avbtool"]
1476 custom_partitions = OPTIONS.info_dict.get(
1490 args = OPTIONS.info_dict.get("avb_{}_args".format(name))
1506 OPTIONS.input_tmp, dir_name, os.path.basename(chained_image))
1517 if OPTIONS.aftl_server is not None:
1561 info_dict = OPTIONS.info_dict
1665 cmd = [OPTIONS.boot_signer_path]
1666 cmd.extend(OPTIONS.boot_signer_args)
1732 info_dict = OPTIONS.info_dict
1761 info_dict = OPTIONS.info_dict
1811 info_dict = OPTIONS.info_dict
1921 info_dict = OPTIONS.info_dict
2147 p = Run(["openssl", "pkcs8", "-in", k+OPTIONS.private_key_suffix,
2157 p = Run(["openssl", "pkcs8", "-in", k+OPTIONS.private_key_suffix,
2264 extra_signapk_args = OPTIONS.extra_signapk_args
2267 OPTIONS.search_path, OPTIONS.signapk_shared_library_path)
2269 cmd = ([OPTIONS.java_path] + OPTIONS.java_args +
2271 "-jar", os.path.join(OPTIONS.search_path, OPTIONS.signapk_path)] +
2284 cmd.extend([key + OPTIONS.public_key_suffix,
2285 key + OPTIONS.private_key_suffix,
2395 public_key_suffix_len = len(OPTIONS.public_key_suffix)
2396 private_key_suffix_len = len(OPTIONS.private_key_suffix)
2399 elif (cert.endswith(OPTIONS.public_key_suffix) and
2400 privkey.endswith(OPTIONS.private_key_suffix) and
2490 OPTIONS.verbose = True
2492 OPTIONS.search_path = a
2494 OPTIONS.signapk_path = a
2496 OPTIONS.signapk_shared_library_path = a
2498 OPTIONS.extra_signapk_args = shlex.split(a)
2500 OPTIONS.java_path = a
2502 OPTIONS.java_args = shlex.split(a)
2504 OPTIONS.android_jar_path = a
2506 OPTIONS.public_key_suffix = a
2508 OPTIONS.private_key_suffix = a
2510 OPTIONS.boot_signer_path = a
2512 OPTIONS.boot_signer_args = shlex.split(a)
2514 OPTIONS.verity_signer_path = a
2516 OPTIONS.verity_signer_args = shlex.split(a)
2518 OPTIONS.aftl_tool_path = a
2520 OPTIONS.aftl_server = a
2522 OPTIONS.aftl_key_path = a
2524 OPTIONS.aftl_manufacturer_key_path = a
2526 OPTIONS.aftl_signer_helper = a
2528 OPTIONS.device_specific = a
2531 OPTIONS.extras[key] = value
2533 OPTIONS.logfile = a
2538 if OPTIONS.search_path:
2539 os.environ["PATH"] = (os.path.join(OPTIONS.search_path, "bin") +
2550 OPTIONS.tempfiles.append(fn)
2561 OPTIONS.tempfiles.append(dir_name)
2566 for i in OPTIONS.tempfiles:
2571 del OPTIONS.tempfiles[:]
2811 self.extras = OPTIONS.extras
2814 path = OPTIONS.device_specific
3055 for i in range(OPTIONS.worker_threads)]
3074 OPTIONS.info_dict.get("blockimgdiff_versions", "1").split(","))
3078 b = BlockImageDiff(tgt, src, threads=OPTIONS.worker_threads,
3089 if OPTIONS.source_info_dict is None:
3090 is_dynamic_build = OPTIONS.info_dict.get(
3094 is_dynamic_build = OPTIONS.source_info_dict.get(
3097 OPTIONS.source_info_dict.get("dynamic_partition_list", "").strip())
3100 OPTIONS.info_dict.get("dynamic_partition_list", "").strip())
3110 if OPTIONS.source_info_dict is None:
3112 OPTIONS.info_dict)
3115 OPTIONS.source_info_dict)
3472 info_dict = OPTIONS.info_dict
3897 image_size = OPTIONS.info_dict.get(which + "_image_size")
3906 if "extfs_sparse_flag" in OPTIONS.info_dict:
3939 if (verity_block_device in OPTIONS.info_dict or
3940 OPTIONS.info_dict.get(avb_hashtree_enable) == "true"):
3956 partition_props = OPTIONS.info_dict.get(partition + ".build.prop")
3993 if not OPTIONS.replace_updated_files_list:
3994 OPTIONS.replace_updated_files_list = []
3995 shutil.copy(temp_care_map, os.path.join(OPTIONS.input_tmp, care_map_path))
3996 OPTIONS.replace_updated_files_list.append(care_map_path)