blob: a7f92153f6f3cfabbb2b8751732126cd14bfcaa9 [file] [log] [blame]
Dan Willemsenf5a904e2018-10-23 01:02:44 -07001//
2// Copyright (C) 2015 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
Colin Cross606913a2017-11-14 13:05:37 -080017// AIDL interface between libupdate_engine and framework.jar
18filegroup {
19 name: "libupdate_engine_aidl",
20 srcs: [
21 "binder_bindings/android/os/IUpdateEngine.aidl",
22 "binder_bindings/android/os/IUpdateEngineCallback.aidl",
23 ],
Dan Willemsenf5a904e2018-10-23 01:02:44 -070024 path: "binder_bindings",
25}
26
27cc_defaults {
28 name: "ue_defaults",
29
30 cflags: [
Amin Hassani2e4eda52019-01-07 14:01:17 -080031 "-DBASE_VER=576279",
Dan Willemsenf5a904e2018-10-23 01:02:44 -070032 "-DUSE_BINDER=1",
33 "-DUSE_CHROME_NETWORK_PROXY=0",
34 "-DUSE_CHROME_KIOSK_APP=0",
Dan Willemsenf5a904e2018-10-23 01:02:44 -070035 "-DUSE_HWID_OVERRIDE=0",
36 "-DUSE_MTD=0",
37 "-DUSE_OMAHA=0",
38 "-D_FILE_OFFSET_BITS=64",
39 "-D_POSIX_C_SOURCE=199309L",
40 "-Wa,--noexecstack",
41 "-Wall",
42 "-Werror",
43 "-Wextra",
44 "-Wformat=2",
45 "-Wno-psabi",
46 "-Wno-unused-parameter",
47 "-ffunction-sections",
48 "-fstack-protector-strong",
49 "-fvisibility=hidden",
50 ],
51 cppflags: [
52 "-Wnon-virtual-dtor",
53 "-fno-strict-aliasing",
54 ],
55 include_dirs: ["system"],
56 local_include_dirs: ["client_library/include"],
57 static_libs: ["libgtest_prod"],
58 shared_libs: [
59 "libbrillo-stream",
60 "libbrillo",
61 "libchrome",
62 ],
63 ldflags: ["-Wl,--gc-sections"],
64
65 product_variables: {
66 pdk: {
67 enabled: false,
68 },
69 },
70
71 target: {
Sen Jiangb5f631d2018-12-18 16:59:57 -080072 android: {
73 cflags: [
74 "-DUSE_FEC=1",
75 ],
76 },
77 host: {
78 cflags: [
79 "-DUSE_FEC=0",
80 ],
81 },
Dan Willemsenf5a904e2018-10-23 01:02:44 -070082 darwin: {
83 enabled: false,
84 },
85 },
86}
87
88// update_metadata-protos (type: static_library)
89// ========================================================
90// Protobufs.
91cc_defaults {
92 name: "update_metadata-protos_exports",
93
94 shared_libs: ["libprotobuf-cpp-lite"],
95}
96
97cc_library_static {
98 name: "update_metadata-protos",
99 host_supported: true,
100 recovery_available: true,
101
102 srcs: ["update_engine/update_metadata.proto"],
103 cflags: [
104 "-Wall",
105 "-Werror",
106 ],
107 proto: {
108 canonical_path_from_root: false,
109 export_proto_headers: true,
110 },
111}
112
113// libpayload_consumer (type: static_library)
114// ========================================================
115// The payload application component and common dependencies.
116cc_defaults {
117 name: "libpayload_consumer_exports",
118 defaults: ["update_metadata-protos_exports"],
119
120 static_libs: [
121 "update_metadata-protos",
122 "libxz",
123 "libbz",
124 "libbspatch",
125 "libbrotli",
126 "libfec_rs",
127 "libpuffpatch",
128 "libverity_tree",
129 ],
130 shared_libs: [
Tianjie Xu7a78d632019-10-08 16:32:39 -0700131 "libziparchive",
Dan Willemsenf5a904e2018-10-23 01:02:44 -0700132 "libbase",
133 "libcrypto",
Sen Jiangb5f631d2018-12-18 16:59:57 -0800134 "libfec",
Dan Willemsenf5a904e2018-10-23 01:02:44 -0700135 ],
Dan Willemsenf5a904e2018-10-23 01:02:44 -0700136}
137
138cc_library_static {
139 name: "libpayload_consumer",
140 defaults: [
141 "ue_defaults",
142 "libpayload_consumer_exports",
143 ],
144 host_supported: true,
145 recovery_available: true,
146
147 srcs: [
148 "common/action_processor.cc",
149 "common/boot_control_stub.cc",
150 "common/clock.cc",
151 "common/constants.cc",
152 "common/cpu_limiter.cc",
153 "common/error_code_utils.cc",
154 "common/file_fetcher.cc",
155 "common/hash_calculator.cc",
156 "common/http_common.cc",
157 "common/http_fetcher.cc",
158 "common/hwid_override.cc",
159 "common/multi_range_http_fetcher.cc",
160 "common/platform_constants_android.cc",
161 "common/prefs.cc",
162 "common/proxy_resolver.cc",
163 "common/subprocess.cc",
164 "common/terminator.cc",
165 "common/utils.cc",
166 "payload_consumer/bzip_extent_writer.cc",
167 "payload_consumer/cached_file_descriptor.cc",
Tianjie Xu7a78d632019-10-08 16:32:39 -0700168 "payload_consumer/certificate_parser_android.cc",
Dan Willemsenf5a904e2018-10-23 01:02:44 -0700169 "payload_consumer/delta_performer.cc",
170 "payload_consumer/download_action.cc",
171 "payload_consumer/extent_reader.cc",
172 "payload_consumer/extent_writer.cc",
173 "payload_consumer/file_descriptor.cc",
174 "payload_consumer/file_descriptor_utils.cc",
175 "payload_consumer/file_writer.cc",
176 "payload_consumer/filesystem_verifier_action.cc",
177 "payload_consumer/install_plan.cc",
178 "payload_consumer/mount_history.cc",
179 "payload_consumer/payload_constants.cc",
180 "payload_consumer/payload_metadata.cc",
181 "payload_consumer/payload_verifier.cc",
182 "payload_consumer/postinstall_runner_action.cc",
183 "payload_consumer/verity_writer_android.cc",
184 "payload_consumer/xz_extent_writer.cc",
185 "payload_consumer/fec_file_descriptor.cc",
186 ],
Dan Willemsenf5a904e2018-10-23 01:02:44 -0700187}
188
189// libupdate_engine_boot_control (type: static_library)
190// ========================================================
191// A BootControl class implementation using Android's HIDL boot_control HAL.
192cc_defaults {
193 name: "libupdate_engine_boot_control_exports",
194 defaults: ["update_metadata-protos_exports"],
195
Yifan Hong420db9b2019-07-23 20:50:33 -0700196 static_libs: [
197 "libsnapshot",
198 "update_metadata-protos",
199 ],
Dan Willemsenf5a904e2018-10-23 01:02:44 -0700200 shared_libs: [
201 "libbootloader_message",
202 "libfs_mgr",
Dan Willemsenf5a904e2018-10-23 01:02:44 -0700203 "libhidlbase",
204 "liblp",
205 "libutils",
206 "android.hardware.boot@1.0",
207 ],
Yifan Hong420db9b2019-07-23 20:50:33 -0700208 target: {
209 recovery: {
210 static_libs: ["libsnapshot_nobinder"],
211 exclude_static_libs: ["libsnapshot"],
212 },
213 },
Dan Willemsenf5a904e2018-10-23 01:02:44 -0700214}
215
216cc_library_static {
217 name: "libupdate_engine_boot_control",
218 defaults: [
219 "ue_defaults",
220 "libupdate_engine_boot_control_exports",
221 ],
222 recovery_available: true,
223
224 srcs: [
225 "boot_control_android.cc",
226 "dynamic_partition_control_android.cc",
Yifan Hong012508e2019-07-22 18:30:40 -0700227 "dynamic_partition_utils.cc",
Dan Willemsenf5a904e2018-10-23 01:02:44 -0700228 ],
229}
230
231// libupdate_engine_android (type: static_library)
232// ========================================================
233// The main daemon static_library used in Android (non-Brillo). This only has a
234// loop to apply payloads provided by the upper layer via a Binder interface.
235cc_defaults {
236 name: "libupdate_engine_android_exports",
237 defaults: [
238 "ue_defaults",
239 "libpayload_consumer_exports",
240 "libupdate_engine_boot_control_exports",
241 ],
242
243 static_libs: [
244 "libpayload_consumer",
245 "libupdate_engine_boot_control",
246 ],
247 shared_libs: [
248 "libandroid_net",
249 "libbase",
250 "libbinder",
251 "libbinderwrapper",
252 "libbootloader_message",
253 "libbrillo-binder",
254 "libcurl",
255 "libcutils",
256 "liblog",
257 "libmetricslogger",
258 "libssl",
259 "libutils",
260 ],
261}
262
263cc_library_static {
264 name: "libupdate_engine_android",
265 defaults: [
266 "ue_defaults",
267 "libupdate_engine_android_exports",
268 ],
269
270 // TODO(deymo): Remove external/cros/system_api/dbus once the strings are moved
271 // out of the DBus interface.
272 include_dirs: ["external/cros/system_api/dbus"],
273
274 aidl: {
275 local_include_dirs: ["binder_bindings"],
276 export_aidl_headers: true,
277 },
278
279 srcs: [
280 ":libupdate_engine_aidl",
281 "binder_service_android.cc",
282 "certificate_checker.cc",
283 "daemon.cc",
284 "daemon_state_android.cc",
285 "hardware_android.cc",
286 "libcurl_http_fetcher.cc",
287 "metrics_reporter_android.cc",
288 "metrics_utils.cc",
289 "network_selector_android.cc",
290 "update_attempter_android.cc",
291 "update_boot_flags_action.cc",
292 "update_status_utils.cc",
293 ],
294}
295
296// update_engine (type: executable)
297// ========================================================
298// update_engine daemon.
299cc_binary {
300 name: "update_engine",
301 defaults: [
302 "ue_defaults",
303 "libupdate_engine_android_exports",
304 ],
305
306 static_libs: ["libupdate_engine_android"],
Tao Bao1e1c86c2019-04-18 10:48:32 -0700307 required: [
308 "cacerts_google",
Tianjie Xube4ea232019-10-15 18:08:31 -0700309 "otacerts",
Tao Bao1e1c86c2019-04-18 10:48:32 -0700310 ],
Dan Willemsenf5a904e2018-10-23 01:02:44 -0700311
312 srcs: ["main.cc"],
313 init_rc: ["update_engine.rc"],
314}
315
316// update_engine_sideload (type: executable)
317// ========================================================
318// A binary executable equivalent to update_engine daemon that installs an update
319// from a local file directly instead of running in the background. Used in
320// recovery image.
321cc_binary {
322 name: "update_engine_sideload",
323 defaults: [
324 "ue_defaults",
325 "update_metadata-protos_exports",
326 "libupdate_engine_boot_control_exports",
327 "libpayload_consumer_exports",
328 ],
329 recovery: true,
330
331 cflags: ["-D_UE_SIDELOAD"],
332 // TODO(deymo): Remove external/cros/system_api/dbus once the strings are moved
333 // out of the DBus interface.
334 include_dirs: ["external/cros/system_api/dbus"],
335
336 srcs: [
337 "hardware_android.cc",
338 "metrics_reporter_stub.cc",
339 "metrics_utils.cc",
340 "network_selector_stub.cc",
341 "sideload_main.cc",
342 "update_attempter_android.cc",
343 "update_boot_flags_action.cc",
344 "update_status_utils.cc",
345 ],
346
347 // Use commonly used shared libraries. libprotobuf-cpp-lite.so is filtered out,
348 // as it doesn't look beneficial to be installed separately due to its size. Note
349 // that we explicitly request their recovery variants, so that the expected files
350 // will be used and installed.
351 shared_libs: [
352 "libbase",
353 "liblog",
354 ],
355 static_libs: [
356 "libpayload_consumer",
357 "libupdate_engine_boot_control",
358 "update_metadata-protos",
359
360 // We add the static versions of the shared libraries that are not installed to
361 // recovery image due to size concerns. Need to include all the static library
362 // dependencies of these static libraries.
363 "libevent",
364 "libmodpb64",
365 "libgtest_prod",
366 "libprotobuf-cpp-lite",
367 "libbrillo-stream",
368 "libbrillo",
369 "libchrome",
370 ],
371 target: {
372 recovery: {
373 exclude_shared_libs: [
374 "libprotobuf-cpp-lite",
Dan Willemsenf5a904e2018-10-23 01:02:44 -0700375 "libbrillo-stream",
376 "libbrillo",
377 "libchrome",
378 ],
379 },
380 },
381
Tao Bao1e1c86c2019-04-18 10:48:32 -0700382 required: [
Tianjie Xube4ea232019-10-15 18:08:31 -0700383 "otacerts.recovery",
Tao Bao1e1c86c2019-04-18 10:48:32 -0700384 ],
Dan Willemsenf5a904e2018-10-23 01:02:44 -0700385}
386
387// libupdate_engine_client (type: shared_library)
388// ========================================================
389cc_library_shared {
390 name: "libupdate_engine_client",
391
392 cflags: [
393 "-Wall",
394 "-Werror",
395 "-Wno-unused-parameter",
396 "-DUSE_BINDER=1",
397 ],
398 export_include_dirs: ["client_library/include"],
399 include_dirs: [
400 // TODO(deymo): Remove "external/cros/system_api/dbus" when dbus is not used.
401 "external/cros/system_api/dbus",
402 "system",
403 ],
404
405 aidl: {
406 local_include_dirs: ["binder_bindings"],
407 },
408
409 shared_libs: [
410 "libchrome",
411 "libbrillo",
412 "libbinder",
413 "libbrillo-binder",
414 "libutils",
415 ],
416
417 srcs: [
Dan Willemsen3c7e4b62019-06-06 14:56:15 -0700418 ":libupdate_engine_client_aidl",
Dan Willemsenf5a904e2018-10-23 01:02:44 -0700419 "client_library/client.cc",
420 "client_library/client_binder.cc",
421 "parcelable_update_engine_status.cc",
422 "update_status_utils.cc",
423 ],
424}
425
Dan Willemsen3c7e4b62019-06-06 14:56:15 -0700426filegroup {
427 name: "libupdate_engine_client_aidl",
428 srcs: [
429 "binder_bindings/android/brillo/IUpdateEngine.aidl",
430 "binder_bindings/android/brillo/IUpdateEngineStatusCallback.aidl",
431 ],
432 path: "binder_bindings",
433}
434
Dan Willemsenf5a904e2018-10-23 01:02:44 -0700435// update_engine_client (type: executable)
436// ========================================================
437// update_engine console client.
438cc_binary {
439 name: "update_engine_client",
440 defaults: ["ue_defaults"],
441
442 // TODO(deymo): Remove external/cros/system_api/dbus once the strings are moved
443 // out of the DBus interface.
444 include_dirs: ["external/cros/system_api/dbus"],
445
446 shared_libs: [
447 "libbinder",
448 "libbinderwrapper",
449 "libbrillo-binder",
450 "libutils",
451 ],
452
453 aidl: {
454 local_include_dirs: ["binder_bindings"],
455 },
456
457 srcs: [
458 ":libupdate_engine_aidl",
459 "common/error_code_utils.cc",
460 "update_engine_client_android.cc",
461 "update_status_utils.cc",
462 ],
463}
464
465// libpayload_generator (type: static_library)
466// ========================================================
467// server-side code. This is used for delta_generator and unittests but not
468// for any client code.
469cc_defaults {
470 name: "libpayload_generator_exports",
471 defaults: [
472 "libpayload_consumer_exports",
473 "update_metadata-protos_exports",
474 ],
475
476 static_libs: [
477 "libavb",
478 "libbrotli",
479 "libbsdiff",
480 "libdivsufsort",
481 "libdivsufsort64",
482 "liblzma",
483 "libpayload_consumer",
484 "libpuffdiff",
485 "libverity_tree",
486 "update_metadata-protos",
487 ],
488 shared_libs: [
489 "libbase",
490 "libext2fs",
491 ],
492}
493
494cc_library_static {
495 name: "libpayload_generator",
496 defaults: [
497 "ue_defaults",
498 "libpayload_generator_exports",
499 ],
500 host_supported: true,
501
502 srcs: [
503 "payload_generator/ab_generator.cc",
504 "payload_generator/annotated_operation.cc",
505 "payload_generator/blob_file_writer.cc",
506 "payload_generator/block_mapping.cc",
507 "payload_generator/boot_img_filesystem.cc",
508 "payload_generator/bzip.cc",
509 "payload_generator/cycle_breaker.cc",
510 "payload_generator/deflate_utils.cc",
511 "payload_generator/delta_diff_generator.cc",
512 "payload_generator/delta_diff_utils.cc",
513 "payload_generator/ext2_filesystem.cc",
514 "payload_generator/extent_ranges.cc",
515 "payload_generator/extent_utils.cc",
516 "payload_generator/full_update_generator.cc",
517 "payload_generator/graph_types.cc",
518 "payload_generator/graph_utils.cc",
519 "payload_generator/inplace_generator.cc",
520 "payload_generator/mapfile_filesystem.cc",
521 "payload_generator/payload_file.cc",
522 "payload_generator/payload_generation_config_android.cc",
523 "payload_generator/payload_generation_config.cc",
524 "payload_generator/payload_signer.cc",
525 "payload_generator/raw_filesystem.cc",
526 "payload_generator/squashfs_filesystem.cc",
527 "payload_generator/tarjan.cc",
528 "payload_generator/topological_sort.cc",
529 "payload_generator/xz_android.cc",
530 ],
531}
532
533// delta_generator (type: executable)
534// ========================================================
535// server-side delta generator.
536cc_binary_host {
537 name: "delta_generator",
538 defaults: [
539 "ue_defaults",
540 "libpayload_generator_exports",
541 "libpayload_consumer_exports",
542 ],
543
544 static_libs: [
545 "libavb_host_sysdeps",
546 "libpayload_consumer",
547 "libpayload_generator",
548 ],
549
550 srcs: ["payload_generator/generate_delta_main.cc"],
551}
552
553cc_test {
554 name: "ue_unittest_delta_generator",
555 defaults: [
556 "ue_defaults",
557 "libpayload_generator_exports",
558 "libpayload_consumer_exports",
559 ],
560
561 static_libs: [
562 "libpayload_consumer",
563 "libpayload_generator",
564 ],
565
566 srcs: ["payload_generator/generate_delta_main.cc"],
567
568 gtest: false,
569 stem: "delta_generator",
Dan Willemsenf5a904e2018-10-23 01:02:44 -0700570}
571
572// test_http_server (type: executable)
573// ========================================================
574// Test HTTP Server.
575cc_test {
576 name: "test_http_server",
577 defaults: ["ue_defaults"],
578 srcs: [
579 "common/http_common.cc",
580 "test_http_server.cc",
581 ],
582
583 gtest: false,
Dan Willemsenf5a904e2018-10-23 01:02:44 -0700584}
585
586// test_subprocess (type: executable)
587// ========================================================
588// Test helper subprocess program.
589cc_test {
590 name: "test_subprocess",
591 defaults: ["ue_defaults"],
592 srcs: ["test_subprocess.cc"],
593
594 gtest: false,
Dan Willemsenf5a904e2018-10-23 01:02:44 -0700595}
596
597// Public keys for unittests.
598// ========================================================
599genrule {
600 name: "ue_unittest_keys",
601 cmd: "openssl rsa -in $(location unittest_key.pem) -pubout -out $(location unittest_key.pub.pem) &&" +
xunchangcda3c032019-03-26 15:41:14 -0700602 "openssl rsa -in $(location unittest_key2.pem) -pubout -out $(location unittest_key2.pub.pem) &&" +
Tianjie Xu7bbe0152019-10-09 18:11:15 -0700603 "openssl rsa -in $(location unittest_key_RSA4096.pem) -pubout -out $(location unittest_key_RSA4096.pub.pem) &&" +
604 "openssl pkey -in $(location unittest_key_EC.pem) -pubout -out $(location unittest_key_EC.pub.pem)",
Dan Willemsenf5a904e2018-10-23 01:02:44 -0700605 srcs: [
606 "unittest_key.pem",
607 "unittest_key2.pem",
xunchangcda3c032019-03-26 15:41:14 -0700608 "unittest_key_RSA4096.pem",
Tianjie Xu7bbe0152019-10-09 18:11:15 -0700609 "unittest_key_EC.pem",
Dan Willemsenf5a904e2018-10-23 01:02:44 -0700610 ],
611 out: [
612 "unittest_key.pub.pem",
613 "unittest_key2.pub.pem",
xunchangcda3c032019-03-26 15:41:14 -0700614 "unittest_key_RSA4096.pub.pem",
Tianjie Xu7bbe0152019-10-09 18:11:15 -0700615 "unittest_key_EC.pub.pem",
Dan Willemsenf5a904e2018-10-23 01:02:44 -0700616 ],
617}
618
619// Sample images for unittests.
620// ========================================================
621// Extract sample image from the compressed sample_images.tar.bz2 file used by
622// the unittests.
623genrule {
624 name: "ue_unittest_disk_imgs",
625 cmd: "tar -jxf $(in) -C $(genDir)/gen disk_ext2_1k.img disk_ext2_4k.img disk_ext2_4k_empty.img disk_ext2_unittest.img",
626 srcs: ["sample_images/sample_images.tar.bz2"],
627 out: [
628 "gen/disk_ext2_1k.img",
629 "gen/disk_ext2_4k.img",
630 "gen/disk_ext2_4k_empty.img",
631 "gen/disk_ext2_unittest.img",
632 ],
633}
634
635// update_engine_unittests (type: executable)
636// ========================================================
637// Main unittest file.
638cc_test {
639 name: "update_engine_unittests",
640 defaults: [
641 "ue_defaults",
642 "libpayload_generator_exports",
643 "libupdate_engine_android_exports",
644 ],
Dan Willemsenf5a904e2018-10-23 01:02:44 -0700645
646 static_libs: [
647 "libpayload_generator",
648 "libbrillo-test-helpers",
649 "libgmock",
650 "libchrome_test_helpers",
651 "libupdate_engine_android",
652 ],
Dan Willemsenf5a904e2018-10-23 01:02:44 -0700653
Yifan Hong87ea73f2019-09-12 13:07:37 -0700654 header_libs: [
655 "libstorage_literals_headers",
656 ],
657
Dan Willemsenf5a904e2018-10-23 01:02:44 -0700658 data: [
Tao Bao9456b6f2019-04-29 18:14:58 -0700659 ":test_http_server",
660 ":test_subprocess",
661 ":ue_unittest_delta_generator",
Dan Willemsenf5a904e2018-10-23 01:02:44 -0700662 ":ue_unittest_disk_imgs",
663 ":ue_unittest_keys",
Tianjie Xu7a78d632019-10-08 16:32:39 -0700664 "otacerts.zip",
Dan Willemsenf5a904e2018-10-23 01:02:44 -0700665 "unittest_key.pem",
666 "unittest_key2.pem",
xunchangcda3c032019-03-26 15:41:14 -0700667 "unittest_key_RSA4096.pem",
Tianjie Xu7bbe0152019-10-09 18:11:15 -0700668 "unittest_key_EC.pem",
Dan Willemsenf5a904e2018-10-23 01:02:44 -0700669 "update_engine.conf",
670 ],
671
Tao Bao9456b6f2019-04-29 18:14:58 -0700672 // We cannot use the default generated AndroidTest.xml because of the use of helper modules
673 // (i.e. test_http_server, test_subprocess, ue_unittest_delta_generator).
674 test_config: "test_config.xml",
675 test_suites: ["device-tests"],
676
Dan Willemsenf5a904e2018-10-23 01:02:44 -0700677 srcs: [
678 "boot_control_android_unittest.cc",
679 "certificate_checker_unittest.cc",
680 "common/action_pipe_unittest.cc",
681 "common/action_processor_unittest.cc",
682 "common/action_unittest.cc",
683 "common/cpu_limiter_unittest.cc",
684 "common/fake_prefs.cc",
685 "common/file_fetcher_unittest.cc",
686 "common/hash_calculator_unittest.cc",
687 "common/http_fetcher_unittest.cc",
688 "common/hwid_override_unittest.cc",
689 "common/mock_http_fetcher.cc",
690 "common/prefs_unittest.cc",
691 "common/proxy_resolver_unittest.cc",
692 "common/subprocess_unittest.cc",
693 "common/terminator_unittest.cc",
694 "common/test_utils.cc",
695 "common/utils_unittest.cc",
Yifan Hongc049f932019-07-23 15:06:05 -0700696 "dynamic_partition_control_android_unittest.cc",
Dan Willemsenf5a904e2018-10-23 01:02:44 -0700697 "payload_consumer/bzip_extent_writer_unittest.cc",
698 "payload_consumer/cached_file_descriptor_unittest.cc",
Tianjie Xu7a78d632019-10-08 16:32:39 -0700699 "payload_consumer/certificate_parser_android_unittest.cc",
Dan Willemsenf5a904e2018-10-23 01:02:44 -0700700 "payload_consumer/delta_performer_integration_test.cc",
701 "payload_consumer/delta_performer_unittest.cc",
702 "payload_consumer/extent_reader_unittest.cc",
703 "payload_consumer/extent_writer_unittest.cc",
704 "payload_consumer/fake_file_descriptor.cc",
705 "payload_consumer/file_descriptor_utils_unittest.cc",
706 "payload_consumer/file_writer_unittest.cc",
707 "payload_consumer/filesystem_verifier_action_unittest.cc",
708 "payload_consumer/postinstall_runner_action_unittest.cc",
709 "payload_consumer/verity_writer_android_unittest.cc",
710 "payload_consumer/xz_extent_writer_unittest.cc",
711 "payload_generator/ab_generator_unittest.cc",
712 "payload_generator/blob_file_writer_unittest.cc",
713 "payload_generator/block_mapping_unittest.cc",
714 "payload_generator/boot_img_filesystem_unittest.cc",
715 "payload_generator/cycle_breaker_unittest.cc",
716 "payload_generator/deflate_utils_unittest.cc",
717 "payload_generator/delta_diff_utils_unittest.cc",
718 "payload_generator/ext2_filesystem_unittest.cc",
719 "payload_generator/extent_ranges_unittest.cc",
720 "payload_generator/extent_utils_unittest.cc",
721 "payload_generator/fake_filesystem.cc",
722 "payload_generator/full_update_generator_unittest.cc",
723 "payload_generator/graph_utils_unittest.cc",
724 "payload_generator/inplace_generator_unittest.cc",
725 "payload_generator/mapfile_filesystem_unittest.cc",
726 "payload_generator/payload_file_unittest.cc",
727 "payload_generator/payload_generation_config_android_unittest.cc",
728 "payload_generator/payload_generation_config_unittest.cc",
729 "payload_generator/payload_signer_unittest.cc",
730 "payload_generator/squashfs_filesystem_unittest.cc",
731 "payload_generator/tarjan_unittest.cc",
732 "payload_generator/topological_sort_unittest.cc",
733 "payload_generator/zip_unittest.cc",
734 "testrunner.cc",
735 "update_attempter_android_unittest.cc",
736 ],
737}
738
739// Brillo update payload generation script
740// ========================================================
741cc_prebuilt_binary {
742 name: "brillo_update_payload",
743 device_supported: false,
744 host_supported: true,
745
746 srcs: ["scripts/brillo_update_payload"],
747 required: [
748 "delta_generator",
749 "shflags",
750 "simg2img",
751 ],
752
753 target: {
754 darwin: {
755 enabled: false,
756 },
757 },
Colin Cross606913a2017-11-14 13:05:37 -0800758}
Ralph Nathanab8026c2018-08-08 15:43:02 -0700759
760// AIDL interface between libupdate_engine and the Things jar.
761filegroup {
762 name: "things_update_engine_aidl",
763 srcs: [
764 "binder_bindings/android/brillo/IUpdateEngine.aidl",
765 "binder_bindings/android/brillo/IUpdateEngineStatusCallback.aidl",
766 ],
767}