2019-04-09 09:12:30 +02:00
|
|
|
// Copyright (C) 2019 The Android Open Source Project
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
// you may not use this file except in compliance with the License.
|
|
|
|
// You may obtain a copy of the License at
|
|
|
|
//
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
//
|
|
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
// limitations under the License.
|
|
|
|
|
2019-08-07 21:24:20 +02:00
|
|
|
//
|
|
|
|
// Module-specific defaults.
|
|
|
|
//
|
|
|
|
// For module X, if we need to build it both as a library and an executable:
|
|
|
|
// - A default rule `releasetools_X_defaults` is created, which lists `srcs`, `libs` and
|
|
|
|
// `required` properties.
|
|
|
|
// - `python_library_host` and `python_binary_host` are created by listing
|
|
|
|
// `releasetools_X_defaults` in their defaults.
|
|
|
|
//
|
|
|
|
|
2021-02-13 06:42:54 +01:00
|
|
|
package {
|
|
|
|
default_applicable_licenses: ["Android-Apache-2.0"],
|
|
|
|
}
|
|
|
|
|
2019-08-07 21:24:20 +02:00
|
|
|
python_defaults {
|
|
|
|
name: "releasetools_add_img_to_target_files_defaults",
|
|
|
|
srcs: [
|
|
|
|
"add_img_to_target_files.py",
|
|
|
|
],
|
|
|
|
libs: [
|
2021-01-19 21:30:46 +01:00
|
|
|
"ota_metadata_proto",
|
|
|
|
"releasetools_apex_utils",
|
2019-08-07 21:24:20 +02:00
|
|
|
"releasetools_build_image",
|
|
|
|
"releasetools_build_super_image",
|
|
|
|
"releasetools_common",
|
2022-09-23 19:06:03 +02:00
|
|
|
"libavbtool",
|
2019-08-07 21:24:20 +02:00
|
|
|
],
|
|
|
|
required: [
|
|
|
|
"care_map_generator",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
|
|
|
python_defaults {
|
|
|
|
name: "releasetools_build_image_defaults",
|
|
|
|
srcs: [
|
|
|
|
"build_image.py",
|
|
|
|
],
|
|
|
|
libs: [
|
|
|
|
"releasetools_common",
|
2021-10-12 15:59:12 +02:00
|
|
|
"releasetools_fsverity_metadata_generator",
|
2019-08-07 21:24:20 +02:00
|
|
|
"releasetools_verity_utils",
|
|
|
|
],
|
|
|
|
required: [
|
|
|
|
"blk_alloc_to_base_fs",
|
|
|
|
"e2fsck",
|
2022-03-04 19:57:58 +01:00
|
|
|
"fsck.erofs",
|
|
|
|
"img2simg",
|
|
|
|
"mkfs.erofs",
|
2020-08-26 01:15:16 +02:00
|
|
|
"mkuserimg_mke2fs",
|
2019-08-07 21:24:20 +02:00
|
|
|
"simg2img",
|
|
|
|
"tune2fs",
|
2022-09-06 03:34:56 +02:00
|
|
|
"mkf2fsuserimg",
|
2021-06-09 03:24:46 +02:00
|
|
|
"fsck.f2fs",
|
2019-08-07 21:24:20 +02:00
|
|
|
],
|
|
|
|
}
|
|
|
|
|
|
|
|
python_defaults {
|
|
|
|
name: "releasetools_build_super_image_defaults",
|
|
|
|
srcs: [
|
|
|
|
"build_super_image.py",
|
|
|
|
],
|
|
|
|
libs: [
|
|
|
|
"releasetools_common",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
|
|
|
python_defaults {
|
|
|
|
name: "releasetools_img_from_target_files_defaults",
|
|
|
|
srcs: [
|
|
|
|
"img_from_target_files.py",
|
|
|
|
],
|
|
|
|
libs: [
|
|
|
|
"releasetools_build_super_image",
|
|
|
|
"releasetools_common",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
2019-08-21 22:29:30 +02:00
|
|
|
python_defaults {
|
|
|
|
name: "releasetools_check_target_files_vintf_defaults",
|
|
|
|
srcs: [
|
|
|
|
"check_target_files_vintf.py",
|
|
|
|
],
|
|
|
|
libs: [
|
|
|
|
"releasetools_common",
|
|
|
|
],
|
|
|
|
required: [
|
|
|
|
"checkvintf",
|
2022-07-28 23:56:28 +02:00
|
|
|
"deapexer",
|
|
|
|
"dump_apex_info",
|
2019-08-21 22:29:30 +02:00
|
|
|
],
|
|
|
|
}
|
|
|
|
|
2020-08-20 02:25:32 +02:00
|
|
|
python_library_host {
|
|
|
|
name: "ota_metadata_proto",
|
|
|
|
srcs: [
|
|
|
|
"ota_metadata.proto",
|
|
|
|
],
|
|
|
|
proto: {
|
|
|
|
canonical_path_from_root: false,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
2021-05-14 23:18:43 +02:00
|
|
|
cc_library_static {
|
|
|
|
name: "ota_metadata_proto_cc",
|
|
|
|
srcs: [
|
|
|
|
"ota_metadata.proto",
|
|
|
|
],
|
|
|
|
host_supported: true,
|
|
|
|
recovery_available: true,
|
|
|
|
proto: {
|
|
|
|
canonical_path_from_root: false,
|
|
|
|
type: "lite",
|
|
|
|
export_proto_headers: true,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
2021-04-12 23:24:26 +02:00
|
|
|
java_library_static {
|
|
|
|
name: "ota_metadata_proto_java",
|
|
|
|
host_supported: true,
|
|
|
|
proto: {
|
|
|
|
type: "nano",
|
|
|
|
},
|
|
|
|
srcs: ["ota_metadata.proto"],
|
|
|
|
sdk_version: "9",
|
|
|
|
target: {
|
|
|
|
android: {
|
|
|
|
jarjar_rules: "jarjar-rules.txt",
|
|
|
|
},
|
|
|
|
host: {
|
|
|
|
static_libs: ["libprotobuf-java-nano"],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
visibility: ["//frameworks/base:__subpackages__"]
|
|
|
|
}
|
|
|
|
|
2019-08-07 21:24:20 +02:00
|
|
|
python_defaults {
|
|
|
|
name: "releasetools_ota_from_target_files_defaults",
|
|
|
|
srcs: [
|
|
|
|
"edify_generator.py",
|
2020-07-29 22:37:51 +02:00
|
|
|
"non_ab_ota.py",
|
2020-08-20 02:25:32 +02:00
|
|
|
"ota_from_target_files.py",
|
|
|
|
"target_files_diff.py",
|
2019-08-07 21:24:20 +02:00
|
|
|
],
|
|
|
|
libs: [
|
2020-08-20 02:25:32 +02:00
|
|
|
"ota_metadata_proto",
|
2019-08-22 01:37:04 +02:00
|
|
|
"releasetools_check_target_files_vintf",
|
2019-08-07 21:24:20 +02:00
|
|
|
"releasetools_common",
|
|
|
|
"releasetools_verity_utils",
|
2021-01-06 14:33:25 +01:00
|
|
|
"apex_manifest",
|
2021-06-03 15:36:08 +02:00
|
|
|
"care_map_proto_py",
|
2022-04-27 00:15:11 +02:00
|
|
|
"ota_utils_lib",
|
2019-08-07 21:24:20 +02:00
|
|
|
],
|
|
|
|
required: [
|
|
|
|
"brillo_update_payload",
|
2019-09-04 20:49:01 +02:00
|
|
|
"checkvintf",
|
2022-01-08 15:29:30 +01:00
|
|
|
"generate_gki_certificate",
|
2021-03-17 14:49:44 +01:00
|
|
|
"minigzip",
|
2020-09-25 02:07:03 +02:00
|
|
|
"lz4",
|
|
|
|
"toybox",
|
2021-01-06 14:33:25 +01:00
|
|
|
"unpack_bootimg",
|
|
|
|
"deapexer",
|
2019-08-07 21:24:20 +02:00
|
|
|
],
|
2020-08-07 06:22:18 +02:00
|
|
|
target: {
|
|
|
|
darwin: {
|
|
|
|
// required module "brillo_update_payload" is disabled on darwin
|
|
|
|
enabled: false,
|
|
|
|
},
|
|
|
|
},
|
2019-08-07 21:24:20 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
//
|
|
|
|
// Host libraries.
|
|
|
|
//
|
|
|
|
|
2019-08-05 22:00:44 +02:00
|
|
|
python_library_host {
|
2019-08-07 21:24:20 +02:00
|
|
|
name: "releasetools_add_img_to_target_files",
|
|
|
|
defaults: [
|
|
|
|
"releasetools_add_img_to_target_files_defaults",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
|
|
|
python_library_host {
|
|
|
|
name: "releasetools_apex_utils",
|
2019-08-05 22:00:44 +02:00
|
|
|
srcs: [
|
2019-08-07 21:24:20 +02:00
|
|
|
"apex_utils.py",
|
|
|
|
],
|
|
|
|
libs: [
|
2021-01-06 14:33:25 +01:00
|
|
|
"apex_manifest",
|
|
|
|
"ota_metadata_proto",
|
2019-08-07 21:24:20 +02:00
|
|
|
"releasetools_common",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
|
|
|
python_library_host {
|
|
|
|
name: "releasetools_build_image",
|
|
|
|
defaults: [
|
|
|
|
"releasetools_build_image_defaults",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
|
|
|
python_library_host {
|
|
|
|
name: "releasetools_build_super_image",
|
|
|
|
defaults: [
|
|
|
|
"releasetools_build_super_image_defaults",
|
2019-08-05 22:00:44 +02:00
|
|
|
],
|
|
|
|
}
|
|
|
|
|
2019-08-23 00:52:26 +02:00
|
|
|
python_library_host {
|
|
|
|
name: "releasetools_check_target_files_vintf",
|
|
|
|
defaults: [
|
|
|
|
"releasetools_check_target_files_vintf_defaults",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
2019-04-09 09:12:30 +02:00
|
|
|
python_library_host {
|
2019-05-07 22:12:21 +02:00
|
|
|
name: "releasetools_common",
|
|
|
|
srcs: [
|
|
|
|
"blockimgdiff.py",
|
|
|
|
"common.py",
|
|
|
|
"images.py",
|
|
|
|
"rangelib.py",
|
|
|
|
"sparse_img.py",
|
|
|
|
],
|
|
|
|
// Only the tools that are referenced directly are listed as required modules. For example,
|
|
|
|
// `avbtool` is not here, as the script always uses the one from info_dict['avb_avbtool'].
|
|
|
|
required: [
|
2019-07-08 03:59:00 +02:00
|
|
|
"aapt2",
|
2019-05-07 22:12:21 +02:00
|
|
|
"boot_signer",
|
|
|
|
"brotli",
|
|
|
|
"bsdiff",
|
2022-01-08 15:29:30 +01:00
|
|
|
"generate_gki_certificate",
|
2019-05-07 22:12:21 +02:00
|
|
|
"imgdiff",
|
|
|
|
"minigzip",
|
2020-06-10 22:09:10 +02:00
|
|
|
"lz4",
|
2019-05-07 22:12:21 +02:00
|
|
|
"mkbootfs",
|
2020-03-27 14:00:23 +01:00
|
|
|
"signapk",
|
2021-01-12 22:26:25 +01:00
|
|
|
"toybox",
|
|
|
|
"unpack_bootimg",
|
2019-05-07 22:12:21 +02:00
|
|
|
],
|
|
|
|
}
|
|
|
|
|
2019-08-07 21:24:20 +02:00
|
|
|
python_library_host {
|
|
|
|
name: "releasetools_img_from_target_files",
|
|
|
|
defaults: [
|
|
|
|
"releasetools_img_from_target_files_defaults",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
|
|
|
python_library_host {
|
|
|
|
name: "releasetools_ota_from_target_files",
|
|
|
|
defaults: [
|
|
|
|
"releasetools_ota_from_target_files_defaults",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
2021-10-12 15:59:12 +02:00
|
|
|
python_library_host {
|
|
|
|
name: "releasetools_fsverity_metadata_generator",
|
|
|
|
srcs: [
|
|
|
|
"fsverity_metadata_generator.py",
|
|
|
|
],
|
2021-10-13 08:16:33 +02:00
|
|
|
libs: [
|
|
|
|
"fsverity_digests_proto_python",
|
2021-10-12 15:59:12 +02:00
|
|
|
],
|
|
|
|
}
|
|
|
|
|
2019-05-07 22:12:21 +02:00
|
|
|
python_library_host {
|
|
|
|
name: "releasetools_verity_utils",
|
|
|
|
srcs: [
|
|
|
|
"verity_utils.py",
|
|
|
|
],
|
|
|
|
required: [
|
|
|
|
"append2simg",
|
|
|
|
"build_verity_metadata",
|
|
|
|
"build_verity_tree",
|
|
|
|
"fec",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
2019-08-07 21:24:20 +02:00
|
|
|
//
|
|
|
|
// Host binaries.
|
|
|
|
//
|
|
|
|
|
2019-05-07 22:12:21 +02:00
|
|
|
python_defaults {
|
|
|
|
name: "releasetools_binary_defaults",
|
|
|
|
version: {
|
|
|
|
py3: {
|
2021-11-05 00:59:39 +01:00
|
|
|
embedded_launcher: true,
|
2019-05-07 22:12:21 +02:00
|
|
|
},
|
|
|
|
},
|
2020-03-24 01:36:03 +01:00
|
|
|
// TODO (b/140144201) Build imgdiff from releasetools_common
|
|
|
|
required: [
|
|
|
|
"aapt2",
|
|
|
|
"boot_signer",
|
|
|
|
"brotli",
|
|
|
|
"bsdiff",
|
2021-02-01 21:43:41 +01:00
|
|
|
"deapexer",
|
2022-01-08 15:29:30 +01:00
|
|
|
"generate_gki_certificate",
|
2020-03-24 01:36:03 +01:00
|
|
|
"imgdiff",
|
|
|
|
"minigzip",
|
2020-09-12 08:08:16 +02:00
|
|
|
"lz4",
|
2020-03-24 01:36:03 +01:00
|
|
|
"mkbootfs",
|
2020-09-12 08:08:16 +02:00
|
|
|
"signapk",
|
2021-01-12 22:26:25 +01:00
|
|
|
"toybox",
|
|
|
|
"unpack_bootimg",
|
2020-03-24 01:36:03 +01:00
|
|
|
],
|
2019-05-07 22:12:21 +02:00
|
|
|
}
|
|
|
|
|
2019-08-07 21:24:20 +02:00
|
|
|
python_binary_host {
|
|
|
|
name: "add_img_to_target_files",
|
|
|
|
defaults: [
|
|
|
|
"releasetools_binary_defaults",
|
|
|
|
"releasetools_add_img_to_target_files_defaults",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
2022-04-27 00:15:11 +02:00
|
|
|
python_library_host {
|
|
|
|
name: "ota_utils_lib",
|
|
|
|
srcs: [
|
|
|
|
"ota_utils.py",
|
|
|
|
"payload_signer.py",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
|
|
|
python_binary_host {
|
|
|
|
name: "merge_ota",
|
|
|
|
version: {
|
|
|
|
py3: {
|
|
|
|
embedded_launcher: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
srcs: [
|
|
|
|
"merge_ota.py",
|
|
|
|
],
|
|
|
|
libs: [
|
|
|
|
"ota_metadata_proto",
|
|
|
|
"update_payload",
|
|
|
|
"care_map_proto_py",
|
|
|
|
"releasetools_common",
|
|
|
|
"ota_utils_lib",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
2019-05-07 22:12:21 +02:00
|
|
|
python_binary_host {
|
|
|
|
name: "build_image",
|
2019-08-07 21:24:20 +02:00
|
|
|
defaults: [
|
|
|
|
"releasetools_binary_defaults",
|
|
|
|
"releasetools_build_image_defaults",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
|
|
|
python_binary_host {
|
|
|
|
name: "build_super_image",
|
|
|
|
defaults: [
|
|
|
|
"releasetools_binary_defaults",
|
|
|
|
"releasetools_build_super_image_defaults",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
2019-11-01 19:23:19 +01:00
|
|
|
python_binary_host {
|
|
|
|
name: "check_partition_sizes",
|
|
|
|
srcs: [
|
|
|
|
"check_partition_sizes.py",
|
|
|
|
],
|
|
|
|
libs: [
|
|
|
|
"releasetools_common",
|
|
|
|
],
|
|
|
|
defaults: [
|
|
|
|
"releasetools_binary_defaults",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
2019-08-07 21:24:20 +02:00
|
|
|
python_binary_host {
|
|
|
|
name: "check_ota_package_signature",
|
2019-05-07 22:12:21 +02:00
|
|
|
defaults: ["releasetools_binary_defaults"],
|
|
|
|
srcs: [
|
2019-08-07 21:24:20 +02:00
|
|
|
"check_ota_package_signature.py",
|
2019-05-07 22:12:21 +02:00
|
|
|
],
|
|
|
|
libs: [
|
|
|
|
"releasetools_common",
|
|
|
|
],
|
|
|
|
required: [
|
2019-08-07 21:24:20 +02:00
|
|
|
"delta_generator",
|
2019-05-07 22:12:21 +02:00
|
|
|
],
|
2020-08-07 06:22:18 +02:00
|
|
|
target: {
|
|
|
|
darwin: {
|
|
|
|
// required module "delta_generator" is disabled on darwin
|
|
|
|
enabled: false,
|
|
|
|
},
|
|
|
|
},
|
2019-05-07 22:12:21 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
python_binary_host {
|
2019-08-07 21:24:20 +02:00
|
|
|
name: "check_target_files_signatures",
|
2019-05-07 22:12:21 +02:00
|
|
|
defaults: ["releasetools_binary_defaults"],
|
|
|
|
srcs: [
|
2019-08-07 21:24:20 +02:00
|
|
|
"check_target_files_signatures.py",
|
2019-05-07 22:12:21 +02:00
|
|
|
],
|
|
|
|
libs: [
|
|
|
|
"releasetools_common",
|
|
|
|
],
|
2019-08-07 21:24:20 +02:00
|
|
|
required: [
|
2021-05-15 00:27:23 +02:00
|
|
|
"aapt2",
|
2019-08-07 21:24:20 +02:00
|
|
|
],
|
|
|
|
}
|
|
|
|
|
2019-08-21 22:29:30 +02:00
|
|
|
python_binary_host {
|
|
|
|
name: "check_target_files_vintf",
|
|
|
|
defaults: [
|
|
|
|
"releasetools_binary_defaults",
|
|
|
|
"releasetools_check_target_files_vintf_defaults"
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
2019-08-07 21:24:20 +02:00
|
|
|
python_binary_host {
|
|
|
|
name: "img_from_target_files",
|
|
|
|
defaults: [
|
|
|
|
"releasetools_binary_defaults",
|
|
|
|
"releasetools_img_from_target_files_defaults",
|
|
|
|
],
|
2019-05-07 22:12:21 +02:00
|
|
|
}
|
|
|
|
|
2020-10-27 01:55:00 +01:00
|
|
|
python_defaults {
|
|
|
|
name: "releasetools_find_shareduid_violation_defaults",
|
|
|
|
srcs: [
|
|
|
|
"find_shareduid_violation.py",
|
|
|
|
],
|
|
|
|
libs: [
|
|
|
|
"releasetools_common",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
|
|
|
python_binary_host {
|
|
|
|
name: "find_shareduid_violation",
|
|
|
|
defaults: [
|
|
|
|
"releasetools_binary_defaults",
|
|
|
|
"releasetools_find_shareduid_violation_defaults",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
|
|
|
python_library_host {
|
|
|
|
name: "releasetools_find_shareduid_violation",
|
|
|
|
defaults: [
|
|
|
|
"releasetools_find_shareduid_violation_defaults",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
2019-08-07 08:21:23 +02:00
|
|
|
python_binary_host {
|
|
|
|
name: "make_recovery_patch",
|
|
|
|
defaults: ["releasetools_binary_defaults"],
|
|
|
|
srcs: [
|
|
|
|
"make_recovery_patch.py",
|
|
|
|
],
|
|
|
|
libs: [
|
|
|
|
"releasetools_common",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
2019-08-07 21:24:20 +02:00
|
|
|
python_binary_host {
|
|
|
|
name: "ota_from_target_files",
|
|
|
|
defaults: [
|
|
|
|
"releasetools_binary_defaults",
|
|
|
|
"releasetools_ota_from_target_files_defaults",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
|
|
|
python_binary_host {
|
|
|
|
name: "ota_package_parser",
|
|
|
|
defaults: ["releasetools_binary_defaults"],
|
|
|
|
srcs: [
|
|
|
|
"ota_package_parser.py",
|
|
|
|
"rangelib.py",
|
2019-08-05 21:05:45 +02:00
|
|
|
],
|
|
|
|
}
|
|
|
|
|
2019-08-07 08:21:23 +02:00
|
|
|
python_binary_host {
|
|
|
|
name: "sparse_img",
|
|
|
|
defaults: ["releasetools_binary_defaults"],
|
|
|
|
srcs: [
|
|
|
|
"rangelib.py",
|
|
|
|
"sparse_img.py",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
2019-08-07 21:24:20 +02:00
|
|
|
python_binary_host {
|
|
|
|
name: "sign_apex",
|
|
|
|
defaults: ["releasetools_binary_defaults"],
|
|
|
|
srcs: [
|
|
|
|
"sign_apex.py",
|
|
|
|
],
|
|
|
|
libs: [
|
|
|
|
"releasetools_apex_utils",
|
|
|
|
"releasetools_common",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
|
|
|
python_binary_host {
|
|
|
|
name: "sign_target_files_apks",
|
|
|
|
defaults: ["releasetools_binary_defaults"],
|
|
|
|
srcs: [
|
|
|
|
"sign_target_files_apks.py",
|
|
|
|
],
|
|
|
|
libs: [
|
|
|
|
"releasetools_add_img_to_target_files",
|
|
|
|
"releasetools_apex_utils",
|
|
|
|
"releasetools_common",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
|
|
|
python_binary_host {
|
|
|
|
name: "validate_target_files",
|
|
|
|
defaults: ["releasetools_binary_defaults"],
|
|
|
|
srcs: [
|
|
|
|
"validate_target_files.py",
|
|
|
|
],
|
|
|
|
libs: [
|
|
|
|
"releasetools_common",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
2021-03-15 15:13:42 +01:00
|
|
|
python_binary_host {
|
|
|
|
name: "verity_utils",
|
|
|
|
defaults: ["releasetools_binary_defaults"],
|
|
|
|
srcs: [
|
|
|
|
"verity_utils.py",
|
|
|
|
],
|
|
|
|
libs: [
|
|
|
|
"releasetools_common",
|
|
|
|
],
|
|
|
|
required: [
|
|
|
|
"append2simg",
|
|
|
|
"build_verity_metadata",
|
|
|
|
"build_verity_tree",
|
|
|
|
"fec",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
2022-01-06 09:22:07 +01:00
|
|
|
python_binary_host {
|
|
|
|
name: "fsverity_metadata_generator",
|
2022-02-16 03:22:03 +01:00
|
|
|
defaults: ["releasetools_binary_defaults"],
|
2022-01-06 09:22:07 +01:00
|
|
|
srcs: [
|
|
|
|
"fsverity_metadata_generator.py",
|
2021-12-13 06:04:00 +01:00
|
|
|
],
|
|
|
|
required: [
|
|
|
|
"fsverity",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
2019-08-07 21:24:20 +02:00
|
|
|
//
|
|
|
|
// Tests.
|
|
|
|
//
|
|
|
|
|
2019-05-07 22:12:21 +02:00
|
|
|
python_defaults {
|
|
|
|
name: "releasetools_test_defaults",
|
2019-04-09 09:12:30 +02:00
|
|
|
srcs: [
|
|
|
|
"check_ota_package_signature.py",
|
2019-11-01 19:23:19 +01:00
|
|
|
"check_partition_sizes.py",
|
2019-04-09 09:12:30 +02:00
|
|
|
"check_target_files_signatures.py",
|
|
|
|
"make_recovery_patch.py",
|
|
|
|
"ota_package_parser.py",
|
2019-06-26 23:54:14 +02:00
|
|
|
"sign_apex.py",
|
2019-04-09 09:12:30 +02:00
|
|
|
"sign_target_files_apks.py",
|
|
|
|
"validate_target_files.py",
|
2022-04-27 00:15:11 +02:00
|
|
|
"merge_ota.py",
|
2022-03-03 01:12:08 +01:00
|
|
|
":releasetools_merge_sources",
|
|
|
|
":releasetools_merge_tests",
|
2019-04-09 09:12:30 +02:00
|
|
|
|
|
|
|
"test_*.py",
|
|
|
|
],
|
|
|
|
libs: [
|
2019-08-07 21:24:20 +02:00
|
|
|
"releasetools_add_img_to_target_files",
|
|
|
|
"releasetools_apex_utils",
|
|
|
|
"releasetools_build_image",
|
2019-08-05 22:00:44 +02:00
|
|
|
"releasetools_build_super_image",
|
2019-08-23 00:52:26 +02:00
|
|
|
"releasetools_check_target_files_vintf",
|
2019-05-07 22:12:21 +02:00
|
|
|
"releasetools_common",
|
2020-10-27 01:55:00 +01:00
|
|
|
"releasetools_find_shareduid_violation",
|
2019-08-07 21:24:20 +02:00
|
|
|
"releasetools_img_from_target_files",
|
|
|
|
"releasetools_ota_from_target_files",
|
2019-05-07 22:12:21 +02:00
|
|
|
"releasetools_verity_utils",
|
2022-04-27 00:15:11 +02:00
|
|
|
"update_payload",
|
2019-04-09 09:12:30 +02:00
|
|
|
],
|
|
|
|
data: [
|
2019-08-23 00:52:26 +02:00
|
|
|
"testdata/**/*",
|
2021-01-06 14:33:25 +01:00
|
|
|
":com.android.apex.compressed.v1",
|
|
|
|
":com.android.apex.compressed.v1_original",
|
2019-04-09 09:12:30 +02:00
|
|
|
],
|
2020-08-07 06:22:18 +02:00
|
|
|
target: {
|
|
|
|
darwin: {
|
|
|
|
// libs dep "releasetools_ota_from_target_files" is disabled on darwin
|
|
|
|
enabled: false,
|
|
|
|
},
|
|
|
|
},
|
2021-01-06 14:33:25 +01:00
|
|
|
required: [
|
|
|
|
"deapexer",
|
|
|
|
],
|
2019-05-02 06:58:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
python_test_host {
|
|
|
|
name: "releasetools_test",
|
|
|
|
defaults: ["releasetools_test_defaults"],
|
|
|
|
main: "test_utils.py",
|
2021-11-05 00:59:39 +01:00
|
|
|
// Don't use embedded_launcher, atest will try (but may fail) to load libc++.so from
|
|
|
|
// host, because the test executable won't be able to find the needed libs via its
|
|
|
|
// runpath.
|
2020-12-21 22:56:05 +01:00
|
|
|
test_options: {
|
|
|
|
unit_test: true,
|
|
|
|
},
|
2019-04-09 09:12:30 +02:00
|
|
|
}
|