blob: 57b2febdcd3e5e94fea4a2c2a68195aa361fb2c5 [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: [
131 "libbase",
132 "libcrypto",
Sen Jiangb5f631d2018-12-18 16:59:57 -0800133 "libfec",
Dan Willemsenf5a904e2018-10-23 01:02:44 -0700134 ],
Dan Willemsenf5a904e2018-10-23 01:02:44 -0700135}
136
137cc_library_static {
138 name: "libpayload_consumer",
139 defaults: [
140 "ue_defaults",
141 "libpayload_consumer_exports",
142 ],
143 host_supported: true,
144 recovery_available: true,
145
146 srcs: [
147 "common/action_processor.cc",
148 "common/boot_control_stub.cc",
149 "common/clock.cc",
150 "common/constants.cc",
151 "common/cpu_limiter.cc",
152 "common/error_code_utils.cc",
153 "common/file_fetcher.cc",
154 "common/hash_calculator.cc",
155 "common/http_common.cc",
156 "common/http_fetcher.cc",
157 "common/hwid_override.cc",
158 "common/multi_range_http_fetcher.cc",
159 "common/platform_constants_android.cc",
160 "common/prefs.cc",
161 "common/proxy_resolver.cc",
162 "common/subprocess.cc",
163 "common/terminator.cc",
164 "common/utils.cc",
165 "payload_consumer/bzip_extent_writer.cc",
166 "payload_consumer/cached_file_descriptor.cc",
167 "payload_consumer/delta_performer.cc",
168 "payload_consumer/download_action.cc",
169 "payload_consumer/extent_reader.cc",
170 "payload_consumer/extent_writer.cc",
171 "payload_consumer/file_descriptor.cc",
172 "payload_consumer/file_descriptor_utils.cc",
173 "payload_consumer/file_writer.cc",
174 "payload_consumer/filesystem_verifier_action.cc",
175 "payload_consumer/install_plan.cc",
176 "payload_consumer/mount_history.cc",
177 "payload_consumer/payload_constants.cc",
178 "payload_consumer/payload_metadata.cc",
179 "payload_consumer/payload_verifier.cc",
180 "payload_consumer/postinstall_runner_action.cc",
181 "payload_consumer/verity_writer_android.cc",
182 "payload_consumer/xz_extent_writer.cc",
183 "payload_consumer/fec_file_descriptor.cc",
184 ],
Dan Willemsenf5a904e2018-10-23 01:02:44 -0700185}
186
187// libupdate_engine_boot_control (type: static_library)
188// ========================================================
189// A BootControl class implementation using Android's HIDL boot_control HAL.
190cc_defaults {
191 name: "libupdate_engine_boot_control_exports",
192 defaults: ["update_metadata-protos_exports"],
193
194 static_libs: ["update_metadata-protos"],
195 shared_libs: [
196 "libbootloader_message",
197 "libfs_mgr",
198 "libhwbinder",
199 "libhidlbase",
200 "liblp",
201 "libutils",
202 "android.hardware.boot@1.0",
203 ],
204}
205
206cc_library_static {
207 name: "libupdate_engine_boot_control",
208 defaults: [
209 "ue_defaults",
210 "libupdate_engine_boot_control_exports",
211 ],
212 recovery_available: true,
213
214 srcs: [
215 "boot_control_android.cc",
216 "dynamic_partition_control_android.cc",
Yifan Hong012508e2019-07-22 18:30:40 -0700217 "dynamic_partition_utils.cc",
Dan Willemsenf5a904e2018-10-23 01:02:44 -0700218 ],
219}
220
221// libupdate_engine_android (type: static_library)
222// ========================================================
223// The main daemon static_library used in Android (non-Brillo). This only has a
224// loop to apply payloads provided by the upper layer via a Binder interface.
225cc_defaults {
226 name: "libupdate_engine_android_exports",
227 defaults: [
228 "ue_defaults",
229 "libpayload_consumer_exports",
230 "libupdate_engine_boot_control_exports",
231 ],
232
233 static_libs: [
234 "libpayload_consumer",
235 "libupdate_engine_boot_control",
236 ],
237 shared_libs: [
238 "libandroid_net",
239 "libbase",
240 "libbinder",
241 "libbinderwrapper",
242 "libbootloader_message",
243 "libbrillo-binder",
244 "libcurl",
245 "libcutils",
246 "liblog",
247 "libmetricslogger",
248 "libssl",
249 "libutils",
250 ],
251}
252
253cc_library_static {
254 name: "libupdate_engine_android",
255 defaults: [
256 "ue_defaults",
257 "libupdate_engine_android_exports",
258 ],
259
260 // TODO(deymo): Remove external/cros/system_api/dbus once the strings are moved
261 // out of the DBus interface.
262 include_dirs: ["external/cros/system_api/dbus"],
263
264 aidl: {
265 local_include_dirs: ["binder_bindings"],
266 export_aidl_headers: true,
267 },
268
269 srcs: [
270 ":libupdate_engine_aidl",
271 "binder_service_android.cc",
272 "certificate_checker.cc",
273 "daemon.cc",
274 "daemon_state_android.cc",
275 "hardware_android.cc",
276 "libcurl_http_fetcher.cc",
277 "metrics_reporter_android.cc",
278 "metrics_utils.cc",
279 "network_selector_android.cc",
280 "update_attempter_android.cc",
281 "update_boot_flags_action.cc",
282 "update_status_utils.cc",
283 ],
284}
285
286// update_engine (type: executable)
287// ========================================================
288// update_engine daemon.
289cc_binary {
290 name: "update_engine",
291 defaults: [
292 "ue_defaults",
293 "libupdate_engine_android_exports",
294 ],
295
296 static_libs: ["libupdate_engine_android"],
Tao Bao1e1c86c2019-04-18 10:48:32 -0700297 required: [
298 "cacerts_google",
299 "update_engine_payload_key",
300 ],
Dan Willemsenf5a904e2018-10-23 01:02:44 -0700301
302 srcs: ["main.cc"],
303 init_rc: ["update_engine.rc"],
304}
305
306// update_engine_sideload (type: executable)
307// ========================================================
308// A binary executable equivalent to update_engine daemon that installs an update
309// from a local file directly instead of running in the background. Used in
310// recovery image.
311cc_binary {
312 name: "update_engine_sideload",
313 defaults: [
314 "ue_defaults",
315 "update_metadata-protos_exports",
316 "libupdate_engine_boot_control_exports",
317 "libpayload_consumer_exports",
318 ],
319 recovery: true,
320
321 cflags: ["-D_UE_SIDELOAD"],
322 // TODO(deymo): Remove external/cros/system_api/dbus once the strings are moved
323 // out of the DBus interface.
324 include_dirs: ["external/cros/system_api/dbus"],
325
326 srcs: [
327 "hardware_android.cc",
328 "metrics_reporter_stub.cc",
329 "metrics_utils.cc",
330 "network_selector_stub.cc",
331 "sideload_main.cc",
332 "update_attempter_android.cc",
333 "update_boot_flags_action.cc",
334 "update_status_utils.cc",
335 ],
336
337 // Use commonly used shared libraries. libprotobuf-cpp-lite.so is filtered out,
338 // as it doesn't look beneficial to be installed separately due to its size. Note
339 // that we explicitly request their recovery variants, so that the expected files
340 // will be used and installed.
341 shared_libs: [
342 "libbase",
343 "liblog",
344 ],
345 static_libs: [
346 "libpayload_consumer",
347 "libupdate_engine_boot_control",
348 "update_metadata-protos",
349
350 // We add the static versions of the shared libraries that are not installed to
351 // recovery image due to size concerns. Need to include all the static library
352 // dependencies of these static libraries.
353 "libevent",
354 "libmodpb64",
355 "libgtest_prod",
356 "libprotobuf-cpp-lite",
357 "libbrillo-stream",
358 "libbrillo",
359 "libchrome",
360 ],
361 target: {
362 recovery: {
363 exclude_shared_libs: [
364 "libprotobuf-cpp-lite",
365 "libhwbinder",
366 "libbrillo-stream",
367 "libbrillo",
368 "libchrome",
369 ],
370 },
371 },
372
Tao Bao1e1c86c2019-04-18 10:48:32 -0700373 required: [
Tao Bao1e1c86c2019-04-18 10:48:32 -0700374 "update_engine_payload_key.recovery",
375 ],
Dan Willemsenf5a904e2018-10-23 01:02:44 -0700376}
377
378// libupdate_engine_client (type: shared_library)
379// ========================================================
380cc_library_shared {
381 name: "libupdate_engine_client",
382
383 cflags: [
384 "-Wall",
385 "-Werror",
386 "-Wno-unused-parameter",
387 "-DUSE_BINDER=1",
388 ],
389 export_include_dirs: ["client_library/include"],
390 include_dirs: [
391 // TODO(deymo): Remove "external/cros/system_api/dbus" when dbus is not used.
392 "external/cros/system_api/dbus",
393 "system",
394 ],
395
396 aidl: {
397 local_include_dirs: ["binder_bindings"],
398 },
399
400 shared_libs: [
401 "libchrome",
402 "libbrillo",
403 "libbinder",
404 "libbrillo-binder",
405 "libutils",
406 ],
407
408 srcs: [
Dan Willemsen3c7e4b62019-06-06 14:56:15 -0700409 ":libupdate_engine_client_aidl",
Dan Willemsenf5a904e2018-10-23 01:02:44 -0700410 "client_library/client.cc",
411 "client_library/client_binder.cc",
412 "parcelable_update_engine_status.cc",
413 "update_status_utils.cc",
414 ],
415}
416
Dan Willemsen3c7e4b62019-06-06 14:56:15 -0700417filegroup {
418 name: "libupdate_engine_client_aidl",
419 srcs: [
420 "binder_bindings/android/brillo/IUpdateEngine.aidl",
421 "binder_bindings/android/brillo/IUpdateEngineStatusCallback.aidl",
422 ],
423 path: "binder_bindings",
424}
425
Dan Willemsenf5a904e2018-10-23 01:02:44 -0700426// update_engine_client (type: executable)
427// ========================================================
428// update_engine console client.
429cc_binary {
430 name: "update_engine_client",
431 defaults: ["ue_defaults"],
432
433 // TODO(deymo): Remove external/cros/system_api/dbus once the strings are moved
434 // out of the DBus interface.
435 include_dirs: ["external/cros/system_api/dbus"],
436
437 shared_libs: [
438 "libbinder",
439 "libbinderwrapper",
440 "libbrillo-binder",
441 "libutils",
442 ],
443
444 aidl: {
445 local_include_dirs: ["binder_bindings"],
446 },
447
448 srcs: [
449 ":libupdate_engine_aidl",
450 "common/error_code_utils.cc",
451 "update_engine_client_android.cc",
452 "update_status_utils.cc",
453 ],
454}
455
456// libpayload_generator (type: static_library)
457// ========================================================
458// server-side code. This is used for delta_generator and unittests but not
459// for any client code.
460cc_defaults {
461 name: "libpayload_generator_exports",
462 defaults: [
463 "libpayload_consumer_exports",
464 "update_metadata-protos_exports",
465 ],
466
467 static_libs: [
468 "libavb",
469 "libbrotli",
470 "libbsdiff",
471 "libdivsufsort",
472 "libdivsufsort64",
473 "liblzma",
474 "libpayload_consumer",
475 "libpuffdiff",
476 "libverity_tree",
477 "update_metadata-protos",
478 ],
479 shared_libs: [
480 "libbase",
481 "libext2fs",
482 ],
483}
484
485cc_library_static {
486 name: "libpayload_generator",
487 defaults: [
488 "ue_defaults",
489 "libpayload_generator_exports",
490 ],
491 host_supported: true,
492
493 srcs: [
494 "payload_generator/ab_generator.cc",
495 "payload_generator/annotated_operation.cc",
496 "payload_generator/blob_file_writer.cc",
497 "payload_generator/block_mapping.cc",
498 "payload_generator/boot_img_filesystem.cc",
499 "payload_generator/bzip.cc",
500 "payload_generator/cycle_breaker.cc",
501 "payload_generator/deflate_utils.cc",
502 "payload_generator/delta_diff_generator.cc",
503 "payload_generator/delta_diff_utils.cc",
504 "payload_generator/ext2_filesystem.cc",
505 "payload_generator/extent_ranges.cc",
506 "payload_generator/extent_utils.cc",
507 "payload_generator/full_update_generator.cc",
508 "payload_generator/graph_types.cc",
509 "payload_generator/graph_utils.cc",
510 "payload_generator/inplace_generator.cc",
511 "payload_generator/mapfile_filesystem.cc",
512 "payload_generator/payload_file.cc",
513 "payload_generator/payload_generation_config_android.cc",
514 "payload_generator/payload_generation_config.cc",
515 "payload_generator/payload_signer.cc",
516 "payload_generator/raw_filesystem.cc",
517 "payload_generator/squashfs_filesystem.cc",
518 "payload_generator/tarjan.cc",
519 "payload_generator/topological_sort.cc",
520 "payload_generator/xz_android.cc",
521 ],
522}
523
524// delta_generator (type: executable)
525// ========================================================
526// server-side delta generator.
527cc_binary_host {
528 name: "delta_generator",
529 defaults: [
530 "ue_defaults",
531 "libpayload_generator_exports",
532 "libpayload_consumer_exports",
533 ],
534
535 static_libs: [
536 "libavb_host_sysdeps",
537 "libpayload_consumer",
538 "libpayload_generator",
539 ],
540
541 srcs: ["payload_generator/generate_delta_main.cc"],
542}
543
544cc_test {
545 name: "ue_unittest_delta_generator",
546 defaults: [
547 "ue_defaults",
548 "libpayload_generator_exports",
549 "libpayload_consumer_exports",
550 ],
551
552 static_libs: [
553 "libpayload_consumer",
554 "libpayload_generator",
555 ],
556
557 srcs: ["payload_generator/generate_delta_main.cc"],
558
559 gtest: false,
560 stem: "delta_generator",
Dan Willemsenf5a904e2018-10-23 01:02:44 -0700561}
562
563// test_http_server (type: executable)
564// ========================================================
565// Test HTTP Server.
566cc_test {
567 name: "test_http_server",
568 defaults: ["ue_defaults"],
569 srcs: [
570 "common/http_common.cc",
571 "test_http_server.cc",
572 ],
573
574 gtest: false,
Dan Willemsenf5a904e2018-10-23 01:02:44 -0700575}
576
577// test_subprocess (type: executable)
578// ========================================================
579// Test helper subprocess program.
580cc_test {
581 name: "test_subprocess",
582 defaults: ["ue_defaults"],
583 srcs: ["test_subprocess.cc"],
584
585 gtest: false,
Dan Willemsenf5a904e2018-10-23 01:02:44 -0700586}
587
588// Public keys for unittests.
589// ========================================================
590genrule {
591 name: "ue_unittest_keys",
592 cmd: "openssl rsa -in $(location unittest_key.pem) -pubout -out $(location unittest_key.pub.pem) &&" +
xunchangcda3c032019-03-26 15:41:14 -0700593 "openssl rsa -in $(location unittest_key2.pem) -pubout -out $(location unittest_key2.pub.pem) &&" +
594 "openssl rsa -in $(location unittest_key_RSA4096.pem) -pubout -out $(location unittest_key_RSA4096.pub.pem)",
Dan Willemsenf5a904e2018-10-23 01:02:44 -0700595 srcs: [
596 "unittest_key.pem",
597 "unittest_key2.pem",
xunchangcda3c032019-03-26 15:41:14 -0700598 "unittest_key_RSA4096.pem",
Dan Willemsenf5a904e2018-10-23 01:02:44 -0700599 ],
600 out: [
601 "unittest_key.pub.pem",
602 "unittest_key2.pub.pem",
xunchangcda3c032019-03-26 15:41:14 -0700603 "unittest_key_RSA4096.pub.pem",
Dan Willemsenf5a904e2018-10-23 01:02:44 -0700604 ],
605}
606
607// Sample images for unittests.
608// ========================================================
609// Extract sample image from the compressed sample_images.tar.bz2 file used by
610// the unittests.
611genrule {
612 name: "ue_unittest_disk_imgs",
613 cmd: "tar -jxf $(in) -C $(genDir)/gen disk_ext2_1k.img disk_ext2_4k.img disk_ext2_4k_empty.img disk_ext2_unittest.img",
614 srcs: ["sample_images/sample_images.tar.bz2"],
615 out: [
616 "gen/disk_ext2_1k.img",
617 "gen/disk_ext2_4k.img",
618 "gen/disk_ext2_4k_empty.img",
619 "gen/disk_ext2_unittest.img",
620 ],
621}
622
623// update_engine_unittests (type: executable)
624// ========================================================
625// Main unittest file.
626cc_test {
627 name: "update_engine_unittests",
628 defaults: [
629 "ue_defaults",
630 "libpayload_generator_exports",
631 "libupdate_engine_android_exports",
632 ],
Dan Willemsenf5a904e2018-10-23 01:02:44 -0700633
634 static_libs: [
635 "libpayload_generator",
636 "libbrillo-test-helpers",
637 "libgmock",
638 "libchrome_test_helpers",
639 "libupdate_engine_android",
640 ],
641 shared_libs: [
642 "libhidltransport",
643 ],
644
645 data: [
Tao Bao9456b6f2019-04-29 18:14:58 -0700646 ":test_http_server",
647 ":test_subprocess",
648 ":ue_unittest_delta_generator",
Dan Willemsenf5a904e2018-10-23 01:02:44 -0700649 ":ue_unittest_disk_imgs",
650 ":ue_unittest_keys",
651 "unittest_key.pem",
652 "unittest_key2.pem",
xunchangcda3c032019-03-26 15:41:14 -0700653 "unittest_key_RSA4096.pem",
Dan Willemsenf5a904e2018-10-23 01:02:44 -0700654 "update_engine.conf",
655 ],
656
Tao Bao9456b6f2019-04-29 18:14:58 -0700657 // We cannot use the default generated AndroidTest.xml because of the use of helper modules
658 // (i.e. test_http_server, test_subprocess, ue_unittest_delta_generator).
659 test_config: "test_config.xml",
660 test_suites: ["device-tests"],
661
Dan Willemsenf5a904e2018-10-23 01:02:44 -0700662 srcs: [
663 "boot_control_android_unittest.cc",
664 "certificate_checker_unittest.cc",
665 "common/action_pipe_unittest.cc",
666 "common/action_processor_unittest.cc",
667 "common/action_unittest.cc",
668 "common/cpu_limiter_unittest.cc",
669 "common/fake_prefs.cc",
670 "common/file_fetcher_unittest.cc",
671 "common/hash_calculator_unittest.cc",
672 "common/http_fetcher_unittest.cc",
673 "common/hwid_override_unittest.cc",
674 "common/mock_http_fetcher.cc",
675 "common/prefs_unittest.cc",
676 "common/proxy_resolver_unittest.cc",
677 "common/subprocess_unittest.cc",
678 "common/terminator_unittest.cc",
679 "common/test_utils.cc",
680 "common/utils_unittest.cc",
Yifan Hongc049f932019-07-23 15:06:05 -0700681 "dynamic_partition_control_android_unittest.cc",
Dan Willemsenf5a904e2018-10-23 01:02:44 -0700682 "payload_consumer/bzip_extent_writer_unittest.cc",
683 "payload_consumer/cached_file_descriptor_unittest.cc",
684 "payload_consumer/delta_performer_integration_test.cc",
685 "payload_consumer/delta_performer_unittest.cc",
686 "payload_consumer/extent_reader_unittest.cc",
687 "payload_consumer/extent_writer_unittest.cc",
688 "payload_consumer/fake_file_descriptor.cc",
689 "payload_consumer/file_descriptor_utils_unittest.cc",
690 "payload_consumer/file_writer_unittest.cc",
691 "payload_consumer/filesystem_verifier_action_unittest.cc",
692 "payload_consumer/postinstall_runner_action_unittest.cc",
693 "payload_consumer/verity_writer_android_unittest.cc",
694 "payload_consumer/xz_extent_writer_unittest.cc",
695 "payload_generator/ab_generator_unittest.cc",
696 "payload_generator/blob_file_writer_unittest.cc",
697 "payload_generator/block_mapping_unittest.cc",
698 "payload_generator/boot_img_filesystem_unittest.cc",
699 "payload_generator/cycle_breaker_unittest.cc",
700 "payload_generator/deflate_utils_unittest.cc",
701 "payload_generator/delta_diff_utils_unittest.cc",
702 "payload_generator/ext2_filesystem_unittest.cc",
703 "payload_generator/extent_ranges_unittest.cc",
704 "payload_generator/extent_utils_unittest.cc",
705 "payload_generator/fake_filesystem.cc",
706 "payload_generator/full_update_generator_unittest.cc",
707 "payload_generator/graph_utils_unittest.cc",
708 "payload_generator/inplace_generator_unittest.cc",
709 "payload_generator/mapfile_filesystem_unittest.cc",
710 "payload_generator/payload_file_unittest.cc",
711 "payload_generator/payload_generation_config_android_unittest.cc",
712 "payload_generator/payload_generation_config_unittest.cc",
713 "payload_generator/payload_signer_unittest.cc",
714 "payload_generator/squashfs_filesystem_unittest.cc",
715 "payload_generator/tarjan_unittest.cc",
716 "payload_generator/topological_sort_unittest.cc",
717 "payload_generator/zip_unittest.cc",
718 "testrunner.cc",
719 "update_attempter_android_unittest.cc",
720 ],
721}
722
723// Brillo update payload generation script
724// ========================================================
725cc_prebuilt_binary {
726 name: "brillo_update_payload",
727 device_supported: false,
728 host_supported: true,
729
730 srcs: ["scripts/brillo_update_payload"],
731 required: [
732 "delta_generator",
733 "shflags",
734 "simg2img",
735 ],
736
737 target: {
738 darwin: {
739 enabled: false,
740 },
741 },
Colin Cross606913a2017-11-14 13:05:37 -0800742}