Tom Cherry | 8d225d8 | 2017-05-12 17:00:31 -0700 | [diff] [blame] | 1 | // |
| 2 | // Copyright (C) 2017 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 | |
Bryan Henry | 99df6c8 | 2018-10-25 15:00:43 -0700 | [diff] [blame] | 17 | subdirs = ["test", "tools"] |
| 18 | |
Tom Cherry | 8d225d8 | 2017-05-12 17:00:31 -0700 | [diff] [blame] | 19 | cc_defaults { |
| 20 | name: "avb_defaults", |
| 21 | cflags: [ |
| 22 | "-D_FILE_OFFSET_BITS=64", |
| 23 | "-D_POSIX_C_SOURCE=199309L", |
| 24 | "-Wa,--noexecstack", |
| 25 | "-Werror", |
| 26 | "-Wall", |
| 27 | "-Wextra", |
| 28 | "-Wformat=2", |
David Zeuthen | 047ecf7 | 2017-06-28 14:10:55 -0400 | [diff] [blame] | 29 | "-Wmissing-prototypes", |
Tom Cherry | 8d225d8 | 2017-05-12 17:00:31 -0700 | [diff] [blame] | 30 | "-Wno-psabi", |
| 31 | "-Wno-unused-parameter", |
Yi Kong | ed46d64 | 2018-01-03 11:52:56 -0800 | [diff] [blame] | 32 | "-Wno-format", |
Tom Cherry | 8d225d8 | 2017-05-12 17:00:31 -0700 | [diff] [blame] | 33 | "-ffunction-sections", |
| 34 | "-fstack-protector-strong", |
| 35 | "-g", |
| 36 | "-DAVB_ENABLE_DEBUG", |
| 37 | "-DAVB_COMPILATION", |
| 38 | ], |
| 39 | cppflags: [ |
| 40 | "-Wnon-virtual-dtor", |
| 41 | "-fno-strict-aliasing", |
| 42 | ], |
| 43 | ldflags: [ |
| 44 | "-Wl,--gc-sections", |
| 45 | "-rdynamic", |
| 46 | ], |
| 47 | target: { |
| 48 | darwin: { |
| 49 | enabled: false, |
| 50 | }, |
| 51 | }, |
| 52 | } |
| 53 | |
| 54 | cc_defaults { |
| 55 | name: "avb_sources", |
| 56 | srcs: [ |
| 57 | "libavb/avb_chain_partition_descriptor.c", |
Lonnie Liu | 97740e5 | 2017-11-09 11:16:15 -0800 | [diff] [blame] | 58 | "libavb/avb_cmdline.c", |
Tom Cherry | 8d225d8 | 2017-05-12 17:00:31 -0700 | [diff] [blame] | 59 | "libavb/avb_crc32.c", |
| 60 | "libavb/avb_crypto.c", |
| 61 | "libavb/avb_descriptor.c", |
| 62 | "libavb/avb_footer.c", |
| 63 | "libavb/avb_hash_descriptor.c", |
| 64 | "libavb/avb_hashtree_descriptor.c", |
| 65 | "libavb/avb_kernel_cmdline_descriptor.c", |
| 66 | "libavb/avb_property_descriptor.c", |
| 67 | "libavb/avb_rsa.c", |
| 68 | "libavb/avb_sha256.c", |
| 69 | "libavb/avb_sha512.c", |
| 70 | "libavb/avb_slot_verify.c", |
| 71 | "libavb/avb_util.c", |
| 72 | "libavb/avb_vbmeta_image.c", |
| 73 | "libavb/avb_version.c", |
| 74 | ], |
| 75 | } |
| 76 | |
Alex Light | 027718c | 2019-03-07 16:44:46 -0800 | [diff] [blame] | 77 | python_binary_host { |
Tom Cherry | 8d225d8 | 2017-05-12 17:00:31 -0700 | [diff] [blame] | 78 | name: "avbtool", |
Alex Light | 027718c | 2019-03-07 16:44:46 -0800 | [diff] [blame] | 79 | srcs: [":avbtool_py"], |
| 80 | main: "avbtool.py", |
Tom Cherry | 8d225d8 | 2017-05-12 17:00:31 -0700 | [diff] [blame] | 81 | required: ["fec"], |
Alex Light | 027718c | 2019-03-07 16:44:46 -0800 | [diff] [blame] | 82 | version: { |
| 83 | py2: { |
| 84 | enabled: true, |
| 85 | embedded_launcher: true, |
| 86 | }, |
| 87 | py3: { |
| 88 | enabled: false, |
| 89 | }, |
| 90 | }, |
| 91 | } |
| 92 | |
Jan Monsch | 0ec6b9a | 2020-01-29 14:38:46 +0100 | [diff] [blame] | 93 | python_library_host { |
| 94 | name: "aftl_proto", |
| 95 | srcs: [ |
Jan Monsch | fd21e7b | 2020-04-18 01:33:33 +0200 | [diff] [blame^] | 96 | "proto/api.proto", |
| 97 | "proto/aftl.proto", |
| 98 | "proto/aftl_google/rpc/status.proto", |
| 99 | "proto/aftl_google/api/annotations.proto", |
| 100 | "proto/aftl_google/api/http.proto", |
| 101 | "proto/crypto/sigpb/sigpb.proto", |
| 102 | "proto/crypto/keyspb/keyspb.proto", |
| 103 | "proto/trillian.proto", |
Jan Monsch | 0ec6b9a | 2020-01-29 14:38:46 +0100 | [diff] [blame] | 104 | ], |
Jan Monsch | fd21e7b | 2020-04-18 01:33:33 +0200 | [diff] [blame^] | 105 | proto: { |
| 106 | include_dirs: [ |
| 107 | "external/protobuf/src", |
| 108 | ], |
| 109 | local_include_dirs: [ |
| 110 | "proto", |
| 111 | ], |
| 112 | canonical_path_from_root: false, |
| 113 | }, |
Jan Monsch | 0ec6b9a | 2020-01-29 14:38:46 +0100 | [diff] [blame] | 114 | version: { |
| 115 | py2: { |
Jan Monsch | 7ec4182 | 2020-04-15 01:16:44 +0200 | [diff] [blame] | 116 | enabled: false, |
Jan Monsch | 0ec6b9a | 2020-01-29 14:38:46 +0100 | [diff] [blame] | 117 | }, |
| 118 | py3: { |
Jan Monsch | 7ec4182 | 2020-04-15 01:16:44 +0200 | [diff] [blame] | 119 | enabled: true, |
Jan Monsch | 0ec6b9a | 2020-01-29 14:38:46 +0100 | [diff] [blame] | 120 | }, |
| 121 | }, |
| 122 | } |
| 123 | |
Dan Austin | 715f503 | 2020-01-08 10:18:05 -0800 | [diff] [blame] | 124 | python_binary_host { |
| 125 | name: "aftltool", |
Jan Monsch | 5ac429e | 2019-12-11 19:04:26 +0100 | [diff] [blame] | 126 | srcs: [ |
Jan Monsch | fd21e7b | 2020-04-18 01:33:33 +0200 | [diff] [blame^] | 127 | "aftltool.py", |
Jan Monsch | 5ac429e | 2019-12-11 19:04:26 +0100 | [diff] [blame] | 128 | ":avbtool_py", |
Dan Austin | 715f503 | 2020-01-08 10:18:05 -0800 | [diff] [blame] | 129 | ], |
Jan Monsch | 0ec6b9a | 2020-01-29 14:38:46 +0100 | [diff] [blame] | 130 | libs: [ |
| 131 | "aftl_proto", |
| 132 | ], |
Dan Austin | 715f503 | 2020-01-08 10:18:05 -0800 | [diff] [blame] | 133 | main: "aftltool.py", |
Dan Austin | 715f503 | 2020-01-08 10:18:05 -0800 | [diff] [blame] | 134 | version: { |
| 135 | py2: { |
Jan Monsch | 7ec4182 | 2020-04-15 01:16:44 +0200 | [diff] [blame] | 136 | enabled: false, |
Dan Austin | 715f503 | 2020-01-08 10:18:05 -0800 | [diff] [blame] | 137 | }, |
| 138 | py3: { |
Jan Monsch | 7ec4182 | 2020-04-15 01:16:44 +0200 | [diff] [blame] | 139 | enabled: true, |
Dan Austin | 715f503 | 2020-01-08 10:18:05 -0800 | [diff] [blame] | 140 | }, |
| 141 | }, |
| 142 | } |
| 143 | |
| 144 | python_test_host { |
| 145 | name: "aftltool_test", |
| 146 | main: "aftltool_test.py", |
| 147 | srcs: [ |
Jan Monsch | fd21e7b | 2020-04-18 01:33:33 +0200 | [diff] [blame^] | 148 | "aftltool.py", |
Dan Austin | 715f503 | 2020-01-08 10:18:05 -0800 | [diff] [blame] | 149 | "aftltool_test.py", |
Jan Monsch | fd21e7b | 2020-04-18 01:33:33 +0200 | [diff] [blame^] | 150 | ":avbtool_py", |
Jan Monsch | 5ac429e | 2019-12-11 19:04:26 +0100 | [diff] [blame] | 151 | ], |
Jan Monsch | 0ec6b9a | 2020-01-29 14:38:46 +0100 | [diff] [blame] | 152 | libs: [ |
| 153 | "aftl_proto", |
| 154 | ], |
| 155 | data: [ |
Jan Monsch | 443bf32 | 2020-02-19 14:56:44 +0100 | [diff] [blame] | 156 | "test/data/**/*.*", |
Jan Monsch | 0ec6b9a | 2020-01-29 14:38:46 +0100 | [diff] [blame] | 157 | ], |
Jan Monsch | 5ac429e | 2019-12-11 19:04:26 +0100 | [diff] [blame] | 158 | test_suites: ["general-tests"], |
| 159 | version: { |
| 160 | py2: { |
Jan Monsch | 7ec4182 | 2020-04-15 01:16:44 +0200 | [diff] [blame] | 161 | enabled: false, |
Jan Monsch | 5ac429e | 2019-12-11 19:04:26 +0100 | [diff] [blame] | 162 | }, |
| 163 | py3: { |
Jan Monsch | 7ec4182 | 2020-04-15 01:16:44 +0200 | [diff] [blame] | 164 | enabled: true, |
Jan Monsch | 5ac429e | 2019-12-11 19:04:26 +0100 | [diff] [blame] | 165 | }, |
| 166 | }, |
| 167 | } |
| 168 | |
Alex Light | 027718c | 2019-03-07 16:44:46 -0800 | [diff] [blame] | 169 | genrule { |
| 170 | name: "avbtool_py", |
| 171 | srcs: ["avbtool",], |
| 172 | out: ["avbtool.py"], |
| 173 | cmd: "cp $(in) $(out)", |
Tom Cherry | 8d225d8 | 2017-05-12 17:00:31 -0700 | [diff] [blame] | 174 | } |
| 175 | |
| 176 | // Build libavb - this is a static library that depends |
| 177 | // on only libc and doesn't drag in any other dependencies. |
| 178 | cc_library_static { |
| 179 | name: "libavb", |
| 180 | defaults: [ |
| 181 | "avb_defaults", |
| 182 | "avb_sources", |
| 183 | ], |
| 184 | host_supported: true, |
Jiyong Park | 44e0712 | 2018-05-24 14:07:34 +0900 | [diff] [blame] | 185 | recovery_available: true, |
Chin-Ting Kuo | 3cf5c72 | 2019-09-16 11:38:01 +0800 | [diff] [blame] | 186 | header_libs: [ |
| 187 | "avb_headers", |
| 188 | ], |
| 189 | export_header_lib_headers: ["avb_headers"], |
Tom Cherry | 8d225d8 | 2017-05-12 17:00:31 -0700 | [diff] [blame] | 190 | target: { |
Andreas Gampe | 364a342 | 2018-12-26 11:12:11 -0800 | [diff] [blame] | 191 | linux: { |
Tom Cherry | 8d225d8 | 2017-05-12 17:00:31 -0700 | [diff] [blame] | 192 | srcs: ["libavb/avb_sysdeps_posix.c"], |
| 193 | }, |
Dan Willemsen | 34ec123 | 2017-10-02 10:41:07 -0700 | [diff] [blame] | 194 | linux_glibc: { |
Tom Cherry | 8d225d8 | 2017-05-12 17:00:31 -0700 | [diff] [blame] | 195 | cflags: ["-fno-stack-protector"], |
| 196 | }, |
| 197 | }, |
| 198 | } |
| 199 | |
| 200 | // Build libavb_user for the target - in addition to libavb, it |
| 201 | // includes libavb_ab, libavb_user and also depends on libbase and |
| 202 | // libfs_mgr. |
| 203 | cc_library_static { |
| 204 | name: "libavb_user", |
| 205 | defaults: [ |
| 206 | "avb_defaults", |
| 207 | "avb_sources", |
| 208 | ], |
Jiyong Park | 44e0712 | 2018-05-24 14:07:34 +0900 | [diff] [blame] | 209 | recovery_available: true, |
Chin-Ting Kuo | 3cf5c72 | 2019-09-16 11:38:01 +0800 | [diff] [blame] | 210 | header_libs: [ |
| 211 | "avb_headers", |
| 212 | ], |
| 213 | export_header_lib_headers: ["avb_headers"], |
Tom Cherry | 8d225d8 | 2017-05-12 17:00:31 -0700 | [diff] [blame] | 214 | shared_libs: ["libbase"], |
| 215 | static_libs: ["libfs_mgr"], |
David Zeuthen | 37f5946 | 2017-09-20 15:02:32 -0400 | [diff] [blame] | 216 | cflags: [ |
| 217 | "-DAVB_AB_I_UNDERSTAND_LIBAVB_AB_IS_DEPRECATED", |
| 218 | ], |
Tom Cherry | 8d225d8 | 2017-05-12 17:00:31 -0700 | [diff] [blame] | 219 | srcs: [ |
| 220 | "libavb/avb_sysdeps_posix.c", |
| 221 | "libavb_ab/avb_ab_flow.c", |
Bowgo Tsai | 84c610e | 2017-09-28 15:13:05 +0800 | [diff] [blame] | 222 | "libavb_user/avb_ops_user.cpp", |
Tom Cherry | 8d225d8 | 2017-05-12 17:00:31 -0700 | [diff] [blame] | 223 | "libavb_user/avb_user_verity.c", |
David Zeuthen | 0922bf8 | 2017-06-19 17:50:38 -0400 | [diff] [blame] | 224 | "libavb_user/avb_user_verification.c", |
Tom Cherry | 8d225d8 | 2017-05-12 17:00:31 -0700 | [diff] [blame] | 225 | ], |
| 226 | } |
| 227 | |
| 228 | cc_binary { |
| 229 | name: "avbctl", |
| 230 | defaults: ["avb_defaults"], |
| 231 | static_libs: [ |
| 232 | "libavb_user", |
| 233 | "libfs_mgr", |
| 234 | ], |
| 235 | shared_libs: ["libbase"], |
| 236 | srcs: ["tools/avbctl/avbctl.cc"], |
| 237 | } |
| 238 | |
| 239 | cc_library_host_static { |
| 240 | name: "libavb_ab_host", |
| 241 | defaults: ["avb_defaults"], |
Chin-Ting Kuo | 3cf5c72 | 2019-09-16 11:38:01 +0800 | [diff] [blame] | 242 | header_libs: [ |
| 243 | "avb_headers", |
| 244 | ], |
| 245 | export_header_lib_headers: ["avb_headers"], |
Tom Cherry | 8d225d8 | 2017-05-12 17:00:31 -0700 | [diff] [blame] | 246 | cflags: [ |
| 247 | "-fno-stack-protector", |
David Zeuthen | 37f5946 | 2017-09-20 15:02:32 -0400 | [diff] [blame] | 248 | "-DAVB_AB_I_UNDERSTAND_LIBAVB_AB_IS_DEPRECATED", |
Tom Cherry | 8d225d8 | 2017-05-12 17:00:31 -0700 | [diff] [blame] | 249 | ], |
| 250 | srcs: ["libavb_ab/avb_ab_flow.c"], |
| 251 | } |
| 252 | |
Tianjie | 7f4e000 | 2020-04-12 21:45:09 -0700 | [diff] [blame] | 253 | cc_library_static { |
| 254 | name: "libavb_aftl", |
Dan Austin | 6bda987 | 2020-01-22 19:14:15 -0800 | [diff] [blame] | 255 | defaults: [ |
| 256 | "avb_defaults", |
| 257 | "avb_sources"], |
Tianjie | 7f4e000 | 2020-04-12 21:45:09 -0700 | [diff] [blame] | 258 | host_supported: true, |
| 259 | recovery_available: true, |
Dan Austin | 6bda987 | 2020-01-22 19:14:15 -0800 | [diff] [blame] | 260 | header_libs: ["avb_headers"], |
| 261 | export_header_lib_headers: ["avb_headers"], |
| 262 | cflags: [ |
| 263 | "-fno-stack-protector", |
| 264 | ], |
| 265 | srcs: [ |
Jan Monsch | a86b614 | 2020-02-17 12:44:41 +0100 | [diff] [blame] | 266 | "libavb_aftl/avb_aftl_util.c", |
Dan Austin | 6bda987 | 2020-01-22 19:14:15 -0800 | [diff] [blame] | 267 | "libavb_aftl/avb_aftl_validate.c", |
Dan Austin | a4fc595 | 2020-02-14 11:32:17 -0800 | [diff] [blame] | 268 | "libavb_aftl/avb_aftl_verify.c", |
Dan Austin | 6bda987 | 2020-01-22 19:14:15 -0800 | [diff] [blame] | 269 | ], |
| 270 | } |
| 271 | |
| 272 | cc_library_host_static { |
Tom Cherry | 8d225d8 | 2017-05-12 17:00:31 -0700 | [diff] [blame] | 273 | name: "libavb_atx_host", |
| 274 | defaults: ["avb_defaults"], |
Chin-Ting Kuo | 3cf5c72 | 2019-09-16 11:38:01 +0800 | [diff] [blame] | 275 | header_libs: [ |
| 276 | "avb_headers", |
| 277 | ], |
| 278 | export_header_lib_headers: ["avb_headers"], |
Tom Cherry | 8d225d8 | 2017-05-12 17:00:31 -0700 | [diff] [blame] | 279 | cflags: [ |
| 280 | "-fno-stack-protector", |
| 281 | ], |
| 282 | srcs: ["libavb_atx/avb_atx_validate.c"], |
| 283 | } |
| 284 | |
| 285 | cc_library_host_static { |
| 286 | name: "libavb_host_sysdeps", |
| 287 | defaults: ["avb_defaults"], |
Chin-Ting Kuo | 3cf5c72 | 2019-09-16 11:38:01 +0800 | [diff] [blame] | 288 | header_libs: [ |
| 289 | "avb_headers", |
| 290 | ], |
| 291 | export_header_lib_headers: ["avb_headers"], |
Tom Cherry | 8d225d8 | 2017-05-12 17:00:31 -0700 | [diff] [blame] | 292 | srcs: ["libavb/avb_sysdeps_posix.c"], |
| 293 | } |
| 294 | |
Darren Krahn | 8160f36 | 2017-10-05 22:11:02 -0700 | [diff] [blame] | 295 | cc_library_host_static { |
| 296 | name: "libavb_things_example", |
| 297 | defaults: ["avb_defaults"], |
Chin-Ting Kuo | 3cf5c72 | 2019-09-16 11:38:01 +0800 | [diff] [blame] | 298 | header_libs: [ |
| 299 | "avb_headers", |
| 300 | ], |
| 301 | export_header_lib_headers: ["avb_headers"], |
Darren Krahn | 8160f36 | 2017-10-05 22:11:02 -0700 | [diff] [blame] | 302 | srcs: ["examples/things/avb_atx_slot_verify.c"], |
| 303 | } |
| 304 | |
Tom Cherry | 8d225d8 | 2017-05-12 17:00:31 -0700 | [diff] [blame] | 305 | cc_test_host { |
| 306 | name: "libavb_host_unittest", |
| 307 | defaults: ["avb_defaults"], |
| 308 | required: [ |
| 309 | "simg2img", |
| 310 | "img2simg", |
| 311 | "avbtool", |
| 312 | ], |
Bryan Henry | b24af10 | 2018-10-25 18:20:23 -0700 | [diff] [blame] | 313 | data: [ |
| 314 | "avbtool", |
Bryan Henry | 38f0c8b | 2018-11-28 19:14:57 -0800 | [diff] [blame] | 315 | "test/avbtool_signing_helper_*.py", |
Bryan Henry | b24af10 | 2018-10-25 18:20:23 -0700 | [diff] [blame] | 316 | "test/data/*", |
| 317 | ], |
| 318 | test_config: "test/libavb_host_unittest.xml", |
Bryan Henry | d7156cd | 2019-01-24 16:32:52 -0800 | [diff] [blame] | 319 | test_suites: ["general-tests"], |
Tom Cherry | 8d225d8 | 2017-05-12 17:00:31 -0700 | [diff] [blame] | 320 | static_libs: [ |
| 321 | "libavb", |
| 322 | "libavb_ab_host", |
Tianjie | 7f4e000 | 2020-04-12 21:45:09 -0700 | [diff] [blame] | 323 | "libavb_aftl", |
Tom Cherry | 8d225d8 | 2017-05-12 17:00:31 -0700 | [diff] [blame] | 324 | "libavb_atx_host", |
Darren Krahn | 8160f36 | 2017-10-05 22:11:02 -0700 | [diff] [blame] | 325 | "libavb_things_example", |
Tom Cherry | 8d225d8 | 2017-05-12 17:00:31 -0700 | [diff] [blame] | 326 | "libgmock_host", |
| 327 | "libgtest_host", |
| 328 | ], |
| 329 | shared_libs: [ |
Bryan Henry | 573bb4c | 2018-12-01 11:42:18 -0800 | [diff] [blame] | 330 | "libbase", |
Tom Cherry | 8d225d8 | 2017-05-12 17:00:31 -0700 | [diff] [blame] | 331 | "libchrome", |
| 332 | "libcrypto", |
| 333 | ], |
David Zeuthen | 047ecf7 | 2017-06-28 14:10:55 -0400 | [diff] [blame] | 334 | cflags: [ |
| 335 | "-Wno-missing-prototypes", |
David Zeuthen | 37f5946 | 2017-09-20 15:02:32 -0400 | [diff] [blame] | 336 | "-DAVB_AB_I_UNDERSTAND_LIBAVB_AB_IS_DEPRECATED", |
David Zeuthen | 047ecf7 | 2017-06-28 14:10:55 -0400 | [diff] [blame] | 337 | ], |
Tom Cherry | 8d225d8 | 2017-05-12 17:00:31 -0700 | [diff] [blame] | 338 | srcs: [ |
| 339 | "test/avb_ab_flow_unittest.cc", |
Jan Monsch | a86b614 | 2020-02-17 12:44:41 +0100 | [diff] [blame] | 340 | "test/avb_aftl_util_unittest.cc", |
Dan Austin | 6bda987 | 2020-01-22 19:14:15 -0800 | [diff] [blame] | 341 | "test/avb_aftl_validate_unittest.cc", |
Dan Austin | a4fc595 | 2020-02-14 11:32:17 -0800 | [diff] [blame] | 342 | "test/avb_aftl_verify_unittest.cc", |
Tom Cherry | 8d225d8 | 2017-05-12 17:00:31 -0700 | [diff] [blame] | 343 | "test/avb_atx_validate_unittest.cc", |
Darren Krahn | 8160f36 | 2017-10-05 22:11:02 -0700 | [diff] [blame] | 344 | "test/avb_atx_slot_verify_unittest.cc", |
Tom Cherry | 8d225d8 | 2017-05-12 17:00:31 -0700 | [diff] [blame] | 345 | "test/avb_slot_verify_unittest.cc", |
| 346 | "test/avb_unittest_util.cc", |
| 347 | "test/avb_util_unittest.cc", |
| 348 | "test/avb_vbmeta_image_unittest.cc", |
| 349 | "test/avbtool_unittest.cc", |
| 350 | "test/fake_avb_ops.cc", |
| 351 | "test/avb_sysdeps_posix_testing.cc", |
| 352 | ], |
Tom Cherry | 8d225d8 | 2017-05-12 17:00:31 -0700 | [diff] [blame] | 353 | } |
| 354 | |
| 355 | cc_library_host_static { |
| 356 | name: "libavb_host_user_code_test", |
| 357 | defaults: ["avb_defaults"], |
David Zeuthen | 37f5946 | 2017-09-20 15:02:32 -0400 | [diff] [blame] | 358 | cflags: [ |
| 359 | "-DAVB_AB_I_UNDERSTAND_LIBAVB_AB_IS_DEPRECATED", |
| 360 | ], |
Tom Cherry | 8d225d8 | 2017-05-12 17:00:31 -0700 | [diff] [blame] | 361 | srcs: ["test/user_code_test.cc"], |
| 362 | } |
| 363 | |
| 364 | cc_library { |
| 365 | name: "bootctrl.avb", |
| 366 | defaults: ["avb_defaults"], |
| 367 | relative_install_path: "hw", |
| 368 | static_libs: [ |
| 369 | "libavb_user", |
| 370 | "libfs_mgr", |
| 371 | ], |
| 372 | shared_libs: [ |
| 373 | "libbase", |
| 374 | "libcutils", |
| 375 | ], |
David Zeuthen | 37f5946 | 2017-09-20 15:02:32 -0400 | [diff] [blame] | 376 | cflags: [ |
| 377 | "-DAVB_AB_I_UNDERSTAND_LIBAVB_AB_IS_DEPRECATED", |
| 378 | ], |
Tom Cherry | 8d225d8 | 2017-05-12 17:00:31 -0700 | [diff] [blame] | 379 | srcs: ["boot_control/boot_control_avb.c"], |
| 380 | } |
Chin-Ting Kuo | 3cf5c72 | 2019-09-16 11:38:01 +0800 | [diff] [blame] | 381 | |
| 382 | cc_library_headers { |
| 383 | name: "avb_headers", |
| 384 | host_supported: true, |
| 385 | recovery_available: true, |
| 386 | export_include_dirs: ["."], |
| 387 | target: { |
| 388 | windows: { |
| 389 | enabled: true, |
| 390 | }, |
| 391 | }, |
| 392 | } |