blob: 4fdc7074bb09bb0c82a6afd6870e62aee96d2f13 [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: [
98 "releasetools_common",
99 ],
100 required: [
101 "checkvintf",
102 ],
103}
104
Tianjiea2076132020-08-19 17:25:32 -0700105python_library_host {
106 name: "ota_metadata_proto",
Tianjiea2076132020-08-19 17:25:32 -0700107 srcs: [
108 "ota_metadata.proto",
109 ],
110 proto: {
111 canonical_path_from_root: false,
112 },
113}
114
Kelvin Zhanga3a74b62021-05-14 17:18:43 -0400115cc_library_static {
116 name: "ota_metadata_proto_cc",
117 srcs: [
118 "ota_metadata.proto",
119 ],
120 host_supported: true,
121 recovery_available: true,
122 proto: {
123 canonical_path_from_root: false,
124 type: "lite",
125 export_proto_headers: true,
126 },
127}
128
Kelvin Zhang2b6a9c32021-04-12 17:24:26 -0400129java_library_static {
130 name: "ota_metadata_proto_java",
131 host_supported: true,
132 proto: {
133 type: "nano",
134 },
135 srcs: ["ota_metadata.proto"],
136 sdk_version: "9",
137 target: {
138 android: {
139 jarjar_rules: "jarjar-rules.txt",
140 },
141 host: {
142 static_libs: ["libprotobuf-java-nano"],
143 },
144 },
145 visibility: ["//frameworks/base:__subpackages__"]
146}
147
Yifan Honge3ba82c2019-08-21 13:29:30 -0700148python_defaults {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700149 name: "releasetools_ota_from_target_files_defaults",
150 srcs: [
151 "edify_generator.py",
Kelvin Zhangcff4d762020-07-29 16:37:51 -0400152 "non_ab_ota.py",
Tianjiea2076132020-08-19 17:25:32 -0700153 "ota_from_target_files.py",
Tianjiea2076132020-08-19 17:25:32 -0700154 "target_files_diff.py",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700155 ],
156 libs: [
Tianjiea2076132020-08-19 17:25:32 -0700157 "ota_metadata_proto",
Yifan Hong9276cf02019-08-21 16:37:04 -0700158 "releasetools_check_target_files_vintf",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700159 "releasetools_common",
160 "releasetools_verity_utils",
Mohammad Samiul Islam9fd58862021-01-06 13:33:25 +0000161 "apex_manifest",
Kelvin Zhang766eea72021-06-03 09:36:08 -0400162 "care_map_proto_py",
Kelvin Zhang197772f2022-04-26 15:15:11 -0700163 "ota_utils_lib",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700164 ],
165 required: [
166 "brillo_update_payload",
Yifan Hong09298552019-09-04 11:49:01 -0700167 "checkvintf",
Yi-Yo Chiang36054e22022-01-08 22:29:30 +0800168 "generate_gki_certificate",
jiajia tangf3f842b2021-03-17 21:49:44 +0800169 "minigzip",
Yifan Hong125d0b62020-09-24 17:07:03 -0700170 "lz4",
171 "toybox",
Mohammad Samiul Islam9fd58862021-01-06 13:33:25 +0000172 "unpack_bootimg",
173 "deapexer",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700174 ],
Yo Chiang096c5152020-08-07 04:22:18 +0000175 target: {
176 darwin: {
177 // required module "brillo_update_payload" is disabled on darwin
178 enabled: false,
179 },
180 },
Tao Bao3c7b2a62019-08-07 12:24:20 -0700181}
182
183//
184// Host libraries.
185//
186
Tao Bao30e31142019-04-09 00:12:30 -0700187python_library_host {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700188 name: "releasetools_add_img_to_target_files",
189 defaults: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700190 "releasetools_add_img_to_target_files_defaults",
191 ],
192}
193
194python_library_host {
195 name: "releasetools_apex_utils",
Tao Bao005305a2019-08-05 13:00:44 -0700196 srcs: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700197 "apex_utils.py",
198 ],
199 libs: [
Mohammad Samiul Islam9fd58862021-01-06 13:33:25 +0000200 "apex_manifest",
201 "ota_metadata_proto",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700202 "releasetools_common",
203 ],
204}
205
206python_library_host {
207 name: "releasetools_build_image",
208 defaults: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700209 "releasetools_build_image_defaults",
210 ],
211}
212
213python_library_host {
214 name: "releasetools_build_super_image",
215 defaults: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700216 "releasetools_build_super_image_defaults",
Tao Bao005305a2019-08-05 13:00:44 -0700217 ],
218}
219
220python_library_host {
Yifan Hongccb86fe2019-08-22 15:52:26 -0700221 name: "releasetools_check_target_files_vintf",
222 defaults: [
Yifan Hongccb86fe2019-08-22 15:52:26 -0700223 "releasetools_check_target_files_vintf_defaults",
224 ],
225}
226
227python_library_host {
Tao Bao2bbb07c2019-05-07 13:12:21 -0700228 name: "releasetools_common",
Tao Bao30e31142019-04-09 00:12:30 -0700229 srcs: [
Tao Bao30e31142019-04-09 00:12:30 -0700230 "blockimgdiff.py",
Tao Bao30e31142019-04-09 00:12:30 -0700231 "common.py",
Tianjie Xu41976c72019-07-03 13:57:01 -0700232 "images.py",
Tao Bao30e31142019-04-09 00:12:30 -0700233 "rangelib.py",
Tao Bao30e31142019-04-09 00:12:30 -0700234 "sparse_img.py",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700235 ],
236 // Only the tools that are referenced directly are listed as required modules. For example,
237 // `avbtool` is not here, as the script always uses the one from info_dict['avb_avbtool'].
238 required: [
changho.shin0f125362019-07-08 10:59:00 +0900239 "aapt2",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700240 "boot_signer",
241 "brotli",
242 "bsdiff",
Yi-Yo Chiang36054e22022-01-08 22:29:30 +0800243 "generate_gki_certificate",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700244 "imgdiff",
245 "minigzip",
J. Avila98cd4cc2020-06-10 20:09:10 +0000246 "lz4",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700247 "mkbootfs",
Luca Stefani3e4b4482020-03-27 14:00:23 +0100248 "signapk",
Yifan Hong14a87122021-01-12 13:26:25 -0800249 "toybox",
250 "unpack_bootimg",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700251 ],
252}
253
254python_library_host {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700255 name: "releasetools_img_from_target_files",
256 defaults: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700257 "releasetools_img_from_target_files_defaults",
258 ],
259}
260
261python_library_host {
262 name: "releasetools_ota_from_target_files",
263 defaults: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700264 "releasetools_ota_from_target_files_defaults",
265 ],
266}
267
268python_library_host {
Inseob Kim9cda3972021-10-12 22:59:12 +0900269 name: "releasetools_fsverity_metadata_generator",
270 srcs: [
271 "fsverity_metadata_generator.py",
272 ],
Inseob Kimf69346e2021-10-13 15:16:33 +0900273 libs: [
274 "fsverity_digests_proto_python",
Inseob Kim9cda3972021-10-12 22:59:12 +0900275 ],
276}
277
278python_library_host {
Tao Bao2bbb07c2019-05-07 13:12:21 -0700279 name: "releasetools_verity_utils",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700280 srcs: [
Tao Bao30e31142019-04-09 00:12:30 -0700281 "verity_utils.py",
282 ],
Tao Bao2bbb07c2019-05-07 13:12:21 -0700283 required: [
284 "append2simg",
285 "build_verity_metadata",
286 "build_verity_tree",
287 "fec",
288 ],
289}
290
Tao Bao3c7b2a62019-08-07 12:24:20 -0700291//
292// Host binaries.
293//
294
Tao Bao2bbb07c2019-05-07 13:12:21 -0700295python_defaults {
296 name: "releasetools_binary_defaults",
297 version: {
Tao Bao2bbb07c2019-05-07 13:12:21 -0700298 py3: {
Cole Faustc76931f2021-11-04 16:59:39 -0700299 embedded_launcher: true,
Tao Bao2bbb07c2019-05-07 13:12:21 -0700300 },
301 },
Kiyoung Kim0a8d2622020-03-24 09:36:03 +0900302 // TODO (b/140144201) Build imgdiff from releasetools_common
303 required: [
304 "aapt2",
305 "boot_signer",
306 "brotli",
307 "bsdiff",
Mohammad Samiul Islamf4909b42021-02-01 20:43:41 +0000308 "deapexer",
Yi-Yo Chiang36054e22022-01-08 22:29:30 +0800309 "generate_gki_certificate",
Kiyoung Kim0a8d2622020-03-24 09:36:03 +0900310 "imgdiff",
311 "minigzip",
Luca Stefanie0fc4ca2020-09-12 06:08:16 +0000312 "lz4",
Kiyoung Kim0a8d2622020-03-24 09:36:03 +0900313 "mkbootfs",
Luca Stefanie0fc4ca2020-09-12 06:08:16 +0000314 "signapk",
Yifan Hong14a87122021-01-12 13:26:25 -0800315 "toybox",
316 "unpack_bootimg",
Kiyoung Kim0a8d2622020-03-24 09:36:03 +0900317 ],
Tao Bao2bbb07c2019-05-07 13:12:21 -0700318}
319
320python_binary_host {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700321 name: "add_img_to_target_files",
322 defaults: [
323 "releasetools_binary_defaults",
324 "releasetools_add_img_to_target_files_defaults",
325 ],
326}
327
Kelvin Zhang197772f2022-04-26 15:15:11 -0700328python_library_host {
329 name: "ota_utils_lib",
330 srcs: [
331 "ota_utils.py",
332 "payload_signer.py",
333 ],
334}
335
336python_binary_host {
337 name: "merge_ota",
338 version: {
339 py3: {
340 embedded_launcher: true,
341 },
342 },
343 srcs: [
344 "merge_ota.py",
345 ],
346 libs: [
347 "ota_metadata_proto",
348 "update_payload",
349 "care_map_proto_py",
350 "releasetools_common",
351 "ota_utils_lib",
352 ],
353}
354
Tao Bao3c7b2a62019-08-07 12:24:20 -0700355python_binary_host {
Tao Bao2bbb07c2019-05-07 13:12:21 -0700356 name: "build_image",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700357 defaults: [
358 "releasetools_binary_defaults",
359 "releasetools_build_image_defaults",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700360 ],
361}
362
363python_binary_host {
364 name: "build_super_image",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700365 defaults: [
366 "releasetools_binary_defaults",
367 "releasetools_build_super_image_defaults",
368 ],
369}
370
371python_binary_host {
Yifan Hong3a7c2ef2019-11-01 18:23:19 +0000372 name: "check_partition_sizes",
373 srcs: [
374 "check_partition_sizes.py",
375 ],
376 libs: [
377 "releasetools_common",
378 ],
379 defaults: [
380 "releasetools_binary_defaults",
381 ],
382}
383
384python_binary_host {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700385 name: "check_ota_package_signature",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700386 defaults: ["releasetools_binary_defaults"],
387 srcs: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700388 "check_ota_package_signature.py",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700389 ],
Tao Bao2bbb07c2019-05-07 13:12:21 -0700390 libs: [
391 "releasetools_common",
392 ],
Tao Bao3c7b2a62019-08-07 12:24:20 -0700393 required: [
394 "delta_generator",
395 ],
Yo Chiang096c5152020-08-07 04:22:18 +0000396 target: {
397 darwin: {
398 // required module "delta_generator" is disabled on darwin
399 enabled: false,
400 },
401 },
Tao Bao3c7b2a62019-08-07 12:24:20 -0700402}
403
404python_binary_host {
405 name: "check_target_files_signatures",
406 defaults: ["releasetools_binary_defaults"],
407 srcs: [
408 "check_target_files_signatures.py",
409 ],
410 libs: [
411 "releasetools_common",
412 ],
413 required: [
Elliott Hughes16a5cac2021-05-14 15:27:23 -0700414 "aapt2",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700415 ],
416}
417
418python_binary_host {
Yifan Honge3ba82c2019-08-21 13:29:30 -0700419 name: "check_target_files_vintf",
420 defaults: [
421 "releasetools_binary_defaults",
422 "releasetools_check_target_files_vintf_defaults"
423 ],
424}
425
426python_binary_host {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700427 name: "img_from_target_files",
428 defaults: [
429 "releasetools_binary_defaults",
430 "releasetools_img_from_target_files_defaults",
431 ],
Tao Bao30e31142019-04-09 00:12:30 -0700432}
433
Daniel Normanb8d52a22020-10-26 17:55:00 -0700434python_defaults {
435 name: "releasetools_find_shareduid_violation_defaults",
436 srcs: [
437 "find_shareduid_violation.py",
438 ],
439 libs: [
440 "releasetools_common",
441 ],
442}
443
444python_binary_host {
445 name: "find_shareduid_violation",
446 defaults: [
447 "releasetools_binary_defaults",
448 "releasetools_find_shareduid_violation_defaults",
449 ],
450}
451
452python_library_host {
453 name: "releasetools_find_shareduid_violation",
454 defaults: [
455 "releasetools_find_shareduid_violation_defaults",
Daniel Normanb8d52a22020-10-26 17:55:00 -0700456 ],
457}
458
Daniel Normanbfc51ef2019-07-24 14:34:54 -0700459python_binary_host {
Tao Baoe11a4602019-08-06 23:21:23 -0700460 name: "make_recovery_patch",
461 defaults: ["releasetools_binary_defaults"],
462 srcs: [
463 "make_recovery_patch.py",
464 ],
465 libs: [
466 "releasetools_common",
467 ],
468}
469
470python_binary_host {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700471 name: "ota_from_target_files",
472 defaults: [
473 "releasetools_binary_defaults",
474 "releasetools_ota_from_target_files_defaults",
475 ],
476}
477
478python_binary_host {
479 name: "ota_package_parser",
480 defaults: ["releasetools_binary_defaults"],
481 srcs: [
482 "ota_package_parser.py",
483 "rangelib.py",
Tao Bao8821d642019-08-05 12:05:45 -0700484 ],
485}
486
Tao Baoe11a4602019-08-06 23:21:23 -0700487python_binary_host {
488 name: "sparse_img",
489 defaults: ["releasetools_binary_defaults"],
490 srcs: [
491 "rangelib.py",
492 "sparse_img.py",
493 ],
Tao Baoe11a4602019-08-06 23:21:23 -0700494}
495
Tao Bao3c7b2a62019-08-07 12:24:20 -0700496python_binary_host {
497 name: "sign_apex",
498 defaults: ["releasetools_binary_defaults"],
499 srcs: [
500 "sign_apex.py",
501 ],
502 libs: [
503 "releasetools_apex_utils",
504 "releasetools_common",
505 ],
506}
507
508python_binary_host {
509 name: "sign_target_files_apks",
510 defaults: ["releasetools_binary_defaults"],
511 srcs: [
512 "sign_target_files_apks.py",
513 ],
514 libs: [
515 "releasetools_add_img_to_target_files",
516 "releasetools_apex_utils",
517 "releasetools_common",
518 ],
519}
520
521python_binary_host {
522 name: "validate_target_files",
523 defaults: ["releasetools_binary_defaults"],
524 srcs: [
525 "validate_target_files.py",
526 ],
527 libs: [
528 "releasetools_common",
529 ],
530}
531
Jiyong Parkb92b8f42021-03-15 23:13:42 +0900532python_binary_host {
533 name: "verity_utils",
534 defaults: ["releasetools_binary_defaults"],
535 srcs: [
536 "verity_utils.py",
537 ],
538 libs: [
539 "releasetools_common",
540 ],
541 required: [
542 "append2simg",
543 "build_verity_metadata",
544 "build_verity_tree",
545 "fec",
546 ],
547}
548
Inseob Kim2d034932021-12-13 14:04:00 +0900549python_binary_host {
Inseob Kim135c1f12022-01-06 17:22:07 +0900550 name: "fsverity_metadata_generator",
Inseob Kim293112d2022-02-16 11:22:03 +0900551 defaults: ["releasetools_binary_defaults"],
Inseob Kim135c1f12022-01-06 17:22:07 +0900552 srcs: [
553 "fsverity_metadata_generator.py",
Inseob Kim2d034932021-12-13 14:04:00 +0900554 ],
555 required: [
556 "fsverity",
557 ],
558}
559
Tao Bao3c7b2a62019-08-07 12:24:20 -0700560//
561// Tests.
562//
563
Tao Baoca82fc92019-05-01 21:58:03 -0700564python_defaults {
565 name: "releasetools_test_defaults",
Tao Bao30e31142019-04-09 00:12:30 -0700566 srcs: [
Tao Bao2bbb07c2019-05-07 13:12:21 -0700567 "check_ota_package_signature.py",
Yifan Hong3a7c2ef2019-11-01 18:23:19 +0000568 "check_partition_sizes.py",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700569 "check_target_files_signatures.py",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700570 "make_recovery_patch.py",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700571 "ota_package_parser.py",
572 "sign_apex.py",
573 "sign_target_files_apks.py",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700574 "validate_target_files.py",
Kelvin Zhang197772f2022-04-26 15:15:11 -0700575 "merge_ota.py",
Daniel Norman2b0b9ca2022-03-02 16:12:08 -0800576 ":releasetools_merge_sources",
577 ":releasetools_merge_tests",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700578
Tao Bao30e31142019-04-09 00:12:30 -0700579 "test_*.py",
580 ],
581 libs: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700582 "releasetools_add_img_to_target_files",
583 "releasetools_apex_utils",
584 "releasetools_build_image",
Tao Bao005305a2019-08-05 13:00:44 -0700585 "releasetools_build_super_image",
Yifan Hongccb86fe2019-08-22 15:52:26 -0700586 "releasetools_check_target_files_vintf",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700587 "releasetools_common",
Daniel Normanb8d52a22020-10-26 17:55:00 -0700588 "releasetools_find_shareduid_violation",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700589 "releasetools_img_from_target_files",
590 "releasetools_ota_from_target_files",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700591 "releasetools_verity_utils",
Kelvin Zhang197772f2022-04-26 15:15:11 -0700592 "update_payload",
Tao Bao30e31142019-04-09 00:12:30 -0700593 ],
594 data: [
Yifan Hongccb86fe2019-08-22 15:52:26 -0700595 "testdata/**/*",
Mohammad Samiul Islam9fd58862021-01-06 13:33:25 +0000596 ":com.android.apex.compressed.v1",
597 ":com.android.apex.compressed.v1_original",
Tao Bao30e31142019-04-09 00:12:30 -0700598 ],
Yo Chiang096c5152020-08-07 04:22:18 +0000599 target: {
600 darwin: {
601 // libs dep "releasetools_ota_from_target_files" is disabled on darwin
602 enabled: false,
603 },
604 },
Mohammad Samiul Islam9fd58862021-01-06 13:33:25 +0000605 required: [
606 "deapexer",
607 ],
Tao Baoca82fc92019-05-01 21:58:03 -0700608}
609
610python_test_host {
611 name: "releasetools_test",
612 defaults: ["releasetools_test_defaults"],
613 main: "test_utils.py",
Cole Faustc76931f2021-11-04 16:59:39 -0700614 // Don't use embedded_launcher, atest will try (but may fail) to load libc++.so from
615 // host, because the test executable won't be able to find the needed libs via its
616 // runpath.
Julien Desprez6d9e78f2020-12-21 13:56:05 -0800617 test_options: {
618 unit_test: true,
619 },
Tao Bao30e31142019-04-09 00:12:30 -0700620}