blob: ee266b7d91ba5bf684f9ee972ada5ff4d91d5c5a [file] [log] [blame]
Tao Bao30e31142019-04-09 00:12:30 -07001// Copyright (C) 2019 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
Tao Bao3c7b2a62019-08-07 12:24:20 -070015//
16// Module-specific defaults.
17//
18// For module X, if we need to build it both as a library and an executable:
19// - A default rule `releasetools_X_defaults` is created, which lists `srcs`, `libs` and
20// `required` properties.
21// - `python_library_host` and `python_binary_host` are created by listing
22// `releasetools_X_defaults` in their defaults.
23//
24
Bob Badour03905802021-02-12 21:42:54 -080025package {
26 default_applicable_licenses: ["Android-Apache-2.0"],
27}
28
Tao Bao3c7b2a62019-08-07 12:24:20 -070029python_defaults {
30 name: "releasetools_add_img_to_target_files_defaults",
31 srcs: [
32 "add_img_to_target_files.py",
33 ],
34 libs: [
Kelvin Zhang5f0fcee2021-01-19 15:30:46 -050035 "ota_metadata_proto",
36 "releasetools_apex_utils",
Tao Bao3c7b2a62019-08-07 12:24:20 -070037 "releasetools_build_image",
38 "releasetools_build_super_image",
39 "releasetools_common",
Kelvin Zhang1caead02022-09-23 10:06:03 -070040 "libavbtool",
Tao Bao3c7b2a62019-08-07 12:24:20 -070041 ],
42 required: [
43 "care_map_generator",
44 ],
45}
46
47python_defaults {
48 name: "releasetools_build_image_defaults",
49 srcs: [
50 "build_image.py",
51 ],
52 libs: [
53 "releasetools_common",
Inseob Kim9cda3972021-10-12 22:59:12 +090054 "releasetools_fsverity_metadata_generator",
Tao Bao3c7b2a62019-08-07 12:24:20 -070055 "releasetools_verity_utils",
56 ],
57 required: [
58 "blk_alloc_to_base_fs",
59 "e2fsck",
David Anderson94ad5bb2022-03-04 10:57:58 -080060 "fsck.erofs",
61 "img2simg",
62 "mkfs.erofs",
Yifan Hong77023452020-08-25 16:15:16 -070063 "mkuserimg_mke2fs",
Tao Bao3c7b2a62019-08-07 12:24:20 -070064 "simg2img",
65 "tune2fs",
Cole Faustb0002082022-09-05 18:34:56 -070066 "mkf2fsuserimg",
Jaegeuk Kim1f50a362021-06-08 18:24:46 -070067 "fsck.f2fs",
Tao Bao3c7b2a62019-08-07 12:24:20 -070068 ],
69}
70
71python_defaults {
72 name: "releasetools_build_super_image_defaults",
73 srcs: [
74 "build_super_image.py",
75 ],
76 libs: [
77 "releasetools_common",
78 ],
79}
80
81python_defaults {
82 name: "releasetools_img_from_target_files_defaults",
83 srcs: [
84 "img_from_target_files.py",
85 ],
86 libs: [
87 "releasetools_build_super_image",
88 "releasetools_common",
89 ],
90}
91
92python_defaults {
Yifan Honge3ba82c2019-08-21 13:29:30 -070093 name: "releasetools_check_target_files_vintf_defaults",
94 srcs: [
95 "check_target_files_vintf.py",
96 ],
97 libs: [
Jooyung Haneb118212022-10-17 18:07:28 +090098 "apex_manifest",
Yifan Honge3ba82c2019-08-21 13:29:30 -070099 "releasetools_common",
100 ],
101 required: [
Jooyung Hanc9542ab2023-06-27 16:12:32 +0900102 "apexd_host",
Yifan Honge3ba82c2019-08-21 13:29:30 -0700103 "checkvintf",
104 ],
105}
106
Tianjiea2076132020-08-19 17:25:32 -0700107python_library_host {
108 name: "ota_metadata_proto",
Tianjiea2076132020-08-19 17:25:32 -0700109 srcs: [
110 "ota_metadata.proto",
111 ],
112 proto: {
113 canonical_path_from_root: false,
114 },
115}
116
Kelvin Zhanga3a74b62021-05-14 17:18:43 -0400117cc_library_static {
118 name: "ota_metadata_proto_cc",
119 srcs: [
120 "ota_metadata.proto",
121 ],
122 host_supported: true,
123 recovery_available: true,
124 proto: {
125 canonical_path_from_root: false,
126 type: "lite",
127 export_proto_headers: true,
128 },
129}
130
Kelvin Zhang2b6a9c32021-04-12 17:24:26 -0400131java_library_static {
132 name: "ota_metadata_proto_java",
133 host_supported: true,
134 proto: {
135 type: "nano",
136 },
137 srcs: ["ota_metadata.proto"],
138 sdk_version: "9",
139 target: {
140 android: {
141 jarjar_rules: "jarjar-rules.txt",
142 },
143 host: {
144 static_libs: ["libprotobuf-java-nano"],
145 },
146 },
147 visibility: ["//frameworks/base:__subpackages__"]
148}
149
Yifan Honge3ba82c2019-08-21 13:29:30 -0700150python_defaults {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700151 name: "releasetools_ota_from_target_files_defaults",
152 srcs: [
153 "edify_generator.py",
Kelvin Zhangcff4d762020-07-29 16:37:51 -0400154 "non_ab_ota.py",
Tianjiea2076132020-08-19 17:25:32 -0700155 "ota_from_target_files.py",
Tianjiea2076132020-08-19 17:25:32 -0700156 "target_files_diff.py",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700157 ],
158 libs: [
Tianjiea2076132020-08-19 17:25:32 -0700159 "ota_metadata_proto",
Yifan Hong9276cf02019-08-21 16:37:04 -0700160 "releasetools_check_target_files_vintf",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700161 "releasetools_common",
162 "releasetools_verity_utils",
Mohammad Samiul Islam9fd58862021-01-06 13:33:25 +0000163 "apex_manifest",
Kelvin Zhang766eea72021-06-03 09:36:08 -0400164 "care_map_proto_py",
Kelvin Zhang197772f2022-04-26 15:15:11 -0700165 "ota_utils_lib",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700166 ],
167 required: [
Jooyung Hanccec6ad2023-08-29 10:16:31 +0900168 "apexd_host",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700169 "brillo_update_payload",
Yifan Hong09298552019-09-04 11:49:01 -0700170 "checkvintf",
Yi-Yo Chiang36054e22022-01-08 22:29:30 +0800171 "generate_gki_certificate",
Yifan Hong125d0b62020-09-24 17:07:03 -0700172 "lz4",
173 "toybox",
Mohammad Samiul Islam9fd58862021-01-06 13:33:25 +0000174 "unpack_bootimg",
175 "deapexer",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700176 ],
Yo Chiang096c5152020-08-07 04:22:18 +0000177 target: {
178 darwin: {
179 // required module "brillo_update_payload" is disabled on darwin
180 enabled: false,
181 },
182 },
Tao Bao3c7b2a62019-08-07 12:24:20 -0700183}
184
185//
186// Host libraries.
187//
188
Tao Bao30e31142019-04-09 00:12:30 -0700189python_library_host {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700190 name: "releasetools_add_img_to_target_files",
191 defaults: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700192 "releasetools_add_img_to_target_files_defaults",
193 ],
194}
195
196python_library_host {
197 name: "releasetools_apex_utils",
Tao Bao005305a2019-08-05 13:00:44 -0700198 srcs: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700199 "apex_utils.py",
200 ],
201 libs: [
Mohammad Samiul Islam9fd58862021-01-06 13:33:25 +0000202 "apex_manifest",
203 "ota_metadata_proto",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700204 "releasetools_common",
205 ],
206}
207
208python_library_host {
209 name: "releasetools_build_image",
210 defaults: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700211 "releasetools_build_image_defaults",
212 ],
213}
214
215python_library_host {
216 name: "releasetools_build_super_image",
217 defaults: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700218 "releasetools_build_super_image_defaults",
Tao Bao005305a2019-08-05 13:00:44 -0700219 ],
220}
221
222python_library_host {
Yifan Hongccb86fe2019-08-22 15:52:26 -0700223 name: "releasetools_check_target_files_vintf",
224 defaults: [
Yifan Hongccb86fe2019-08-22 15:52:26 -0700225 "releasetools_check_target_files_vintf_defaults",
226 ],
227}
228
229python_library_host {
Tao Bao2bbb07c2019-05-07 13:12:21 -0700230 name: "releasetools_common",
Tao Bao30e31142019-04-09 00:12:30 -0700231 srcs: [
Tao Bao30e31142019-04-09 00:12:30 -0700232 "blockimgdiff.py",
Tao Bao30e31142019-04-09 00:12:30 -0700233 "common.py",
Tianjie Xu41976c72019-07-03 13:57:01 -0700234 "images.py",
Tao Bao30e31142019-04-09 00:12:30 -0700235 "rangelib.py",
Tao Bao30e31142019-04-09 00:12:30 -0700236 "sparse_img.py",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700237 ],
Wei Li6437bae2023-10-16 16:22:34 -0700238 data: [
239 ":zip2zip",
240 ],
Tao Bao2bbb07c2019-05-07 13:12:21 -0700241 // Only the tools that are referenced directly are listed as required modules. For example,
242 // `avbtool` is not here, as the script always uses the one from info_dict['avb_avbtool'].
243 required: [
changho.shin0f125362019-07-08 10:59:00 +0900244 "aapt2",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700245 "boot_signer",
246 "brotli",
247 "bsdiff",
Yi-Yo Chiang36054e22022-01-08 22:29:30 +0800248 "generate_gki_certificate",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700249 "imgdiff",
J. Avila98cd4cc2020-06-10 20:09:10 +0000250 "lz4",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700251 "mkbootfs",
Luca Stefani3e4b4482020-03-27 14:00:23 +0100252 "signapk",
Yifan Hong14a87122021-01-12 13:26:25 -0800253 "toybox",
254 "unpack_bootimg",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700255 ],
256}
257
258python_library_host {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700259 name: "releasetools_img_from_target_files",
260 defaults: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700261 "releasetools_img_from_target_files_defaults",
262 ],
263}
264
265python_library_host {
266 name: "releasetools_ota_from_target_files",
267 defaults: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700268 "releasetools_ota_from_target_files_defaults",
269 ],
270}
271
272python_library_host {
Inseob Kim9cda3972021-10-12 22:59:12 +0900273 name: "releasetools_fsverity_metadata_generator",
274 srcs: [
275 "fsverity_metadata_generator.py",
276 ],
Inseob Kimf69346e2021-10-13 15:16:33 +0900277 libs: [
278 "fsverity_digests_proto_python",
Inseob Kim9cda3972021-10-12 22:59:12 +0900279 ],
280}
281
282python_library_host {
Tao Bao2bbb07c2019-05-07 13:12:21 -0700283 name: "releasetools_verity_utils",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700284 srcs: [
Tao Bao30e31142019-04-09 00:12:30 -0700285 "verity_utils.py",
286 ],
Tao Bao2bbb07c2019-05-07 13:12:21 -0700287 required: [
288 "append2simg",
289 "build_verity_metadata",
290 "build_verity_tree",
291 "fec",
292 ],
293}
294
Tao Bao3c7b2a62019-08-07 12:24:20 -0700295//
296// Host binaries.
297//
298
Tao Bao2bbb07c2019-05-07 13:12:21 -0700299python_defaults {
300 name: "releasetools_binary_defaults",
301 version: {
Tao Bao2bbb07c2019-05-07 13:12:21 -0700302 py3: {
Cole Faustc76931f2021-11-04 16:59:39 -0700303 embedded_launcher: true,
Tao Bao2bbb07c2019-05-07 13:12:21 -0700304 },
305 },
Kiyoung Kim0a8d2622020-03-24 09:36:03 +0900306 // TODO (b/140144201) Build imgdiff from releasetools_common
307 required: [
308 "aapt2",
309 "boot_signer",
310 "brotli",
311 "bsdiff",
Mohammad Samiul Islamf4909b42021-02-01 20:43:41 +0000312 "deapexer",
Yi-Yo Chiang36054e22022-01-08 22:29:30 +0800313 "generate_gki_certificate",
Kiyoung Kim0a8d2622020-03-24 09:36:03 +0900314 "imgdiff",
Luca Stefanie0fc4ca2020-09-12 06:08:16 +0000315 "lz4",
Kiyoung Kim0a8d2622020-03-24 09:36:03 +0900316 "mkbootfs",
Luca Stefanie0fc4ca2020-09-12 06:08:16 +0000317 "signapk",
Yifan Hong14a87122021-01-12 13:26:25 -0800318 "toybox",
319 "unpack_bootimg",
Kiyoung Kim0a8d2622020-03-24 09:36:03 +0900320 ],
Tao Bao2bbb07c2019-05-07 13:12:21 -0700321}
322
323python_binary_host {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700324 name: "add_img_to_target_files",
325 defaults: [
326 "releasetools_binary_defaults",
327 "releasetools_add_img_to_target_files_defaults",
328 ],
329}
330
Kelvin Zhang197772f2022-04-26 15:15:11 -0700331python_library_host {
332 name: "ota_utils_lib",
333 srcs: [
334 "ota_utils.py",
335 "payload_signer.py",
336 ],
Kelvin Zhangf91d74b2023-03-14 16:46:22 -0700337 libs: [
338 "releasetools_common",
339 ],
Kelvin Zhang197772f2022-04-26 15:15:11 -0700340}
341
342python_binary_host {
343 name: "merge_ota",
344 version: {
345 py3: {
346 embedded_launcher: true,
347 },
348 },
349 srcs: [
350 "merge_ota.py",
Kelvin Zhangc7441e52023-08-22 08:56:30 -0700351 "ota_signing_utils.py",
Kelvin Zhang197772f2022-04-26 15:15:11 -0700352 ],
353 libs: [
354 "ota_metadata_proto",
355 "update_payload",
356 "care_map_proto_py",
357 "releasetools_common",
358 "ota_utils_lib",
359 ],
360}
361
Tao Bao3c7b2a62019-08-07 12:24:20 -0700362python_binary_host {
Kelvin Zhangf91d74b2023-03-14 16:46:22 -0700363 name: "create_brick_ota",
364 version: {
365 py3: {
366 embedded_launcher: true,
367 },
368 },
369 srcs: [
370 "create_brick_ota.py",
371 ],
372 libs: [
373 "ota_utils_lib",
374 ],
375}
376
377python_binary_host {
Tao Bao2bbb07c2019-05-07 13:12:21 -0700378 name: "build_image",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700379 defaults: [
380 "releasetools_binary_defaults",
381 "releasetools_build_image_defaults",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700382 ],
383}
384
385python_binary_host {
386 name: "build_super_image",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700387 defaults: [
388 "releasetools_binary_defaults",
389 "releasetools_build_super_image_defaults",
390 ],
391}
392
393python_binary_host {
Yifan Hong3a7c2ef2019-11-01 18:23:19 +0000394 name: "check_partition_sizes",
395 srcs: [
396 "check_partition_sizes.py",
397 ],
398 libs: [
399 "releasetools_common",
400 ],
401 defaults: [
402 "releasetools_binary_defaults",
403 ],
404}
405
406python_binary_host {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700407 name: "check_ota_package_signature",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700408 defaults: ["releasetools_binary_defaults"],
409 srcs: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700410 "check_ota_package_signature.py",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700411 ],
Tao Bao2bbb07c2019-05-07 13:12:21 -0700412 libs: [
413 "releasetools_common",
414 ],
Tao Bao3c7b2a62019-08-07 12:24:20 -0700415 required: [
416 "delta_generator",
417 ],
Yo Chiang096c5152020-08-07 04:22:18 +0000418 target: {
419 darwin: {
420 // required module "delta_generator" is disabled on darwin
421 enabled: false,
422 },
423 },
Tao Bao3c7b2a62019-08-07 12:24:20 -0700424}
425
426python_binary_host {
427 name: "check_target_files_signatures",
428 defaults: ["releasetools_binary_defaults"],
429 srcs: [
430 "check_target_files_signatures.py",
431 ],
432 libs: [
433 "releasetools_common",
434 ],
435 required: [
Elliott Hughes16a5cac2021-05-14 15:27:23 -0700436 "aapt2",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700437 ],
438}
439
440python_binary_host {
Yifan Honge3ba82c2019-08-21 13:29:30 -0700441 name: "check_target_files_vintf",
442 defaults: [
443 "releasetools_binary_defaults",
444 "releasetools_check_target_files_vintf_defaults"
445 ],
446}
447
448python_binary_host {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700449 name: "img_from_target_files",
450 defaults: [
451 "releasetools_binary_defaults",
452 "releasetools_img_from_target_files_defaults",
453 ],
Tao Bao30e31142019-04-09 00:12:30 -0700454}
455
Daniel Normanb8d52a22020-10-26 17:55:00 -0700456python_defaults {
457 name: "releasetools_find_shareduid_violation_defaults",
458 srcs: [
459 "find_shareduid_violation.py",
460 ],
461 libs: [
462 "releasetools_common",
463 ],
464}
465
466python_binary_host {
467 name: "find_shareduid_violation",
468 defaults: [
469 "releasetools_binary_defaults",
470 "releasetools_find_shareduid_violation_defaults",
471 ],
472}
473
474python_library_host {
475 name: "releasetools_find_shareduid_violation",
476 defaults: [
477 "releasetools_find_shareduid_violation_defaults",
Daniel Normanb8d52a22020-10-26 17:55:00 -0700478 ],
479}
480
Daniel Normanbfc51ef2019-07-24 14:34:54 -0700481python_binary_host {
Tao Baoe11a4602019-08-06 23:21:23 -0700482 name: "make_recovery_patch",
483 defaults: ["releasetools_binary_defaults"],
484 srcs: [
485 "make_recovery_patch.py",
486 ],
487 libs: [
488 "releasetools_common",
489 ],
490}
491
492python_binary_host {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700493 name: "ota_from_target_files",
494 defaults: [
495 "releasetools_binary_defaults",
496 "releasetools_ota_from_target_files_defaults",
497 ],
498}
499
500python_binary_host {
Kelvin Zhangc7441e52023-08-22 08:56:30 -0700501 name: "ota_from_raw_img",
502 srcs: [
503 "ota_from_raw_img.py",
504 "ota_signing_utils.py",
505 ],
506 main: "ota_from_raw_img.py",
507 defaults: [
508 "releasetools_binary_defaults",
509 ],
510 required: [
511 "delta_generator",
512 ],
513 libs: [
514 "ota_metadata_proto",
515 "releasetools_common",
516 "ota_utils_lib",
517 ],
518}
519
520python_binary_host {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700521 name: "ota_package_parser",
522 defaults: ["releasetools_binary_defaults"],
523 srcs: [
524 "ota_package_parser.py",
525 "rangelib.py",
Tao Bao8821d642019-08-05 12:05:45 -0700526 ],
527}
528
Tao Baoe11a4602019-08-06 23:21:23 -0700529python_binary_host {
530 name: "sparse_img",
531 defaults: ["releasetools_binary_defaults"],
532 srcs: [
533 "rangelib.py",
534 "sparse_img.py",
535 ],
Tao Baoe11a4602019-08-06 23:21:23 -0700536}
537
Tao Bao3c7b2a62019-08-07 12:24:20 -0700538python_binary_host {
539 name: "sign_apex",
540 defaults: ["releasetools_binary_defaults"],
541 srcs: [
542 "sign_apex.py",
543 ],
544 libs: [
545 "releasetools_apex_utils",
546 "releasetools_common",
547 ],
548}
549
550python_binary_host {
551 name: "sign_target_files_apks",
552 defaults: ["releasetools_binary_defaults"],
553 srcs: [
554 "sign_target_files_apks.py",
555 ],
556 libs: [
557 "releasetools_add_img_to_target_files",
558 "releasetools_apex_utils",
559 "releasetools_common",
560 ],
561}
562
563python_binary_host {
564 name: "validate_target_files",
565 defaults: ["releasetools_binary_defaults"],
566 srcs: [
567 "validate_target_files.py",
568 ],
569 libs: [
570 "releasetools_common",
571 ],
572}
573
Jiyong Parkb92b8f42021-03-15 23:13:42 +0900574python_binary_host {
575 name: "verity_utils",
576 defaults: ["releasetools_binary_defaults"],
577 srcs: [
578 "verity_utils.py",
579 ],
580 libs: [
581 "releasetools_common",
582 ],
583 required: [
584 "append2simg",
585 "build_verity_metadata",
586 "build_verity_tree",
587 "fec",
588 ],
589}
590
Inseob Kim2d034932021-12-13 14:04:00 +0900591python_binary_host {
Inseob Kim135c1f12022-01-06 17:22:07 +0900592 name: "fsverity_metadata_generator",
Inseob Kim293112d2022-02-16 11:22:03 +0900593 defaults: ["releasetools_binary_defaults"],
Inseob Kim135c1f12022-01-06 17:22:07 +0900594 srcs: [
595 "fsverity_metadata_generator.py",
Inseob Kim2d034932021-12-13 14:04:00 +0900596 ],
597 required: [
598 "fsverity",
599 ],
600}
601
Tao Bao3c7b2a62019-08-07 12:24:20 -0700602//
603// Tests.
604//
605
Tao Baoca82fc92019-05-01 21:58:03 -0700606python_defaults {
607 name: "releasetools_test_defaults",
Tao Bao30e31142019-04-09 00:12:30 -0700608 srcs: [
Tao Bao2bbb07c2019-05-07 13:12:21 -0700609 "check_ota_package_signature.py",
Yifan Hong3a7c2ef2019-11-01 18:23:19 +0000610 "check_partition_sizes.py",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700611 "check_target_files_signatures.py",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700612 "make_recovery_patch.py",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700613 "ota_package_parser.py",
614 "sign_apex.py",
615 "sign_target_files_apks.py",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700616 "validate_target_files.py",
Kelvin Zhang197772f2022-04-26 15:15:11 -0700617 "merge_ota.py",
Kelvin Zhangc7441e52023-08-22 08:56:30 -0700618 "ota_signing_utils.py",
Daniel Norman2b0b9ca2022-03-02 16:12:08 -0800619 ":releasetools_merge_sources",
620 ":releasetools_merge_tests",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700621
Tao Bao30e31142019-04-09 00:12:30 -0700622 "test_*.py",
623 ],
624 libs: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700625 "releasetools_add_img_to_target_files",
626 "releasetools_apex_utils",
627 "releasetools_build_image",
Tao Bao005305a2019-08-05 13:00:44 -0700628 "releasetools_build_super_image",
Yifan Hongccb86fe2019-08-22 15:52:26 -0700629 "releasetools_check_target_files_vintf",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700630 "releasetools_common",
Daniel Normanb8d52a22020-10-26 17:55:00 -0700631 "releasetools_find_shareduid_violation",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700632 "releasetools_img_from_target_files",
633 "releasetools_ota_from_target_files",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700634 "releasetools_verity_utils",
Kelvin Zhang197772f2022-04-26 15:15:11 -0700635 "update_payload",
Tao Bao30e31142019-04-09 00:12:30 -0700636 ],
637 data: [
Yifan Hongccb86fe2019-08-22 15:52:26 -0700638 "testdata/**/*",
Mohammad Samiul Islam9fd58862021-01-06 13:33:25 +0000639 ":com.android.apex.compressed.v1",
640 ":com.android.apex.compressed.v1_original",
Rob Seymour9492da52022-10-06 18:23:49 +0000641 ":com.android.apex.vendor.foo.with_vintf"
Tao Bao30e31142019-04-09 00:12:30 -0700642 ],
Yo Chiang096c5152020-08-07 04:22:18 +0000643 target: {
644 darwin: {
645 // libs dep "releasetools_ota_from_target_files" is disabled on darwin
646 enabled: false,
647 },
648 },
Mohammad Samiul Islam9fd58862021-01-06 13:33:25 +0000649 required: [
Jooyung Hanccec6ad2023-08-29 10:16:31 +0900650 "apexd_host",
Mohammad Samiul Islam9fd58862021-01-06 13:33:25 +0000651 "deapexer",
652 ],
Tao Baoca82fc92019-05-01 21:58:03 -0700653}
654
655python_test_host {
656 name: "releasetools_test",
657 defaults: ["releasetools_test_defaults"],
658 main: "test_utils.py",
Cole Faustc76931f2021-11-04 16:59:39 -0700659 // Don't use embedded_launcher, atest will try (but may fail) to load libc++.so from
660 // host, because the test executable won't be able to find the needed libs via its
661 // runpath.
Julien Desprez6d9e78f2020-12-21 13:56:05 -0800662 test_options: {
663 unit_test: true,
664 },
Tao Bao30e31142019-04-09 00:12:30 -0700665}