blob: 5c7d84790c6b60868bcc877b9e9f2dc719a92f57 [file] [log] [blame]
Bob Badourd69ad692021-02-16 19:02:14 -08001package {
Elliott Hughes813fd6d2021-06-25 14:42:51 -07002 default_applicable_licenses: ["Android-Apache-2.0"],
Bob Badourd69ad692021-02-16 19:02:14 -08003}
4
Josh Gaocbe70cb2016-10-18 18:17:52 -07005cc_defaults {
6 name: "debuggerd_defaults",
7 cflags: [
8 "-Wall",
9 "-Wextra",
Josh Gaoc7fe0602017-03-13 14:13:29 -070010 "-Werror",
Kalesh Singha9ea7e52021-06-17 15:49:50 -040011 "-Wno-gcc-compat",
Josh Gao2b2ae0c2017-08-21 14:31:17 -070012 "-Wno-unused-argument",
13 "-Wno-unused-function",
Josh Gaocbe70cb2016-10-18 18:17:52 -070014 "-Wno-nullability-completeness",
15 "-Os",
Yabin Cuie90a9442021-08-11 13:21:11 -070016 "-fno-finite-loops",
Josh Gaocbe70cb2016-10-18 18:17:52 -070017 ],
18
19 local_include_dirs: ["include"],
20}
21
Narayan Kamatha73df602017-05-24 15:07:25 +010022cc_library_headers {
23 name: "libdebuggerd_common_headers",
Elliott Hughesdc699a22018-02-16 17:58:14 -080024 export_include_dirs: ["common/include"],
Jiyong Parka0e75042018-05-24 14:11:00 +090025 recovery_available: true,
Yifan Hong2ec92cf2020-10-27 16:25:45 -070026 vendor_ramdisk_available: true,
Shikha Panwar757f2992022-03-25 19:43:14 +000027 apex_available: [
28 "com.android.virt",
29 "//apex_available:platform",
30 ],
Narayan Kamatha73df602017-05-24 15:07:25 +010031}
32
Narayan Kamath2d377cd2017-05-10 10:58:59 +010033cc_library_shared {
Josh Gaoe1aa0ca2017-03-01 17:23:22 -080034 name: "libtombstoned_client",
35 defaults: ["debuggerd_defaults"],
36 srcs: [
Narayan Kamath2d377cd2017-05-10 10:58:59 +010037 "tombstoned/tombstoned_client.cpp",
38 "util.cpp",
39 ],
40
Narayan Kamatha73df602017-05-24 15:07:25 +010041 header_libs: ["libdebuggerd_common_headers"],
42
Narayan Kamath2d377cd2017-05-10 10:58:59 +010043 static_libs: [
Narayan Kamatha73df602017-05-24 15:07:25 +010044 "libasync_safe",
Narayan Kamath2d377cd2017-05-10 10:58:59 +010045 ],
46
47 shared_libs: [
Narayan Kamath2d377cd2017-05-10 10:58:59 +010048 "libbase",
Narayan Kamatha73df602017-05-24 15:07:25 +010049 "libcutils",
Narayan Kamath2d377cd2017-05-10 10:58:59 +010050 ],
Shikha Panwar757f2992022-03-25 19:43:14 +000051 apex_available: [
52 "com.android.virt",
53 "//apex_available:platform",
54 ],
Narayan Kamath2d377cd2017-05-10 10:58:59 +010055
Narayan Kamatha73df602017-05-24 15:07:25 +010056 export_header_lib_headers: ["libdebuggerd_common_headers"],
Elliott Hughesdc699a22018-02-16 17:58:14 -080057 export_include_dirs: ["tombstoned/include"],
Narayan Kamath2d377cd2017-05-10 10:58:59 +010058}
59
Josh Gao9da1f512018-08-06 15:38:29 -070060// Utility library to talk to tombstoned and get an output fd.
Narayan Kamath2d377cd2017-05-10 10:58:59 +010061cc_library_static {
62 name: "libtombstoned_client_static",
63 defaults: ["debuggerd_defaults"],
Jiyong Park011ee122018-05-29 16:41:30 +090064 recovery_available: true,
Yifan Hong2ec92cf2020-10-27 16:25:45 -070065 vendor_ramdisk_available: true,
Narayan Kamath2d377cd2017-05-10 10:58:59 +010066 srcs: [
67 "tombstoned/tombstoned_client.cpp",
Josh Gaoe1aa0ca2017-03-01 17:23:22 -080068 "util.cpp",
69 ],
70
Narayan Kamatha73df602017-05-24 15:07:25 +010071 header_libs: ["libdebuggerd_common_headers"],
72
Josh Gaoe1aa0ca2017-03-01 17:23:22 -080073 whole_static_libs: [
Christopher Ferrisac225782017-04-25 11:23:10 -070074 "libasync_safe",
Josh Gaoe1aa0ca2017-03-01 17:23:22 -080075 "libcutils",
76 "libbase",
77 ],
Narayan Kamath2d377cd2017-05-10 10:58:59 +010078
Narayan Kamatha73df602017-05-24 15:07:25 +010079 export_header_lib_headers: ["libdebuggerd_common_headers"],
Elliott Hughesdc699a22018-02-16 17:58:14 -080080 export_include_dirs: ["tombstoned/include"],
Josh Gaoe1aa0ca2017-03-01 17:23:22 -080081}
82
83// Core implementation, linked into libdebuggerd_handler and the dynamic linker.
Josh Gao9c02dc52016-06-15 17:29:00 -070084cc_library_static {
Josh Gaoe73c9322017-02-08 16:06:26 -080085 name: "libdebuggerd_handler_core",
Josh Gaocbe70cb2016-10-18 18:17:52 -070086 defaults: ["debuggerd_defaults"],
Jiyong Parka0e75042018-05-24 14:11:00 +090087 recovery_available: true,
Yifan Hong2ec92cf2020-10-27 16:25:45 -070088 vendor_ramdisk_available: true,
Josh Gaocbe70cb2016-10-18 18:17:52 -070089 srcs: ["handler/debuggerd_handler.cpp"],
Josh Gao9c02dc52016-06-15 17:29:00 -070090
Josh Gaofdf832d2017-08-25 18:00:18 -070091 header_libs: [
92 "libbase_headers",
93 "libdebuggerd_common_headers",
Josh Gaoa48b41b2019-12-13 14:11:04 -080094 "bionic_libc_platform_headers",
Josh Gaofdf832d2017-08-25 18:00:18 -070095 ],
Narayan Kamatha73df602017-05-24 15:07:25 +010096
Josh Gaoe73c9322017-02-08 16:06:26 -080097 whole_static_libs: [
Christopher Ferrisac225782017-04-25 11:23:10 -070098 "libasync_safe",
Josh Gao2b2ae0c2017-08-21 14:31:17 -070099 "libcutils",
Josh Gaoe73c9322017-02-08 16:06:26 -0800100 "libdebuggerd",
101 ],
102
Narayan Kamatha73df602017-05-24 15:07:25 +0100103 export_header_lib_headers: ["libdebuggerd_common_headers"],
Josh Gaoe73c9322017-02-08 16:06:26 -0800104 export_include_dirs: ["include"],
105}
106
Josh Gaoe1aa0ca2017-03-01 17:23:22 -0800107// Implementation with a no-op fallback.
Josh Gaoe73c9322017-02-08 16:06:26 -0800108cc_library_static {
109 name: "libdebuggerd_handler",
110 defaults: ["debuggerd_defaults"],
111 srcs: ["handler/debuggerd_fallback_nop.cpp"],
112
Josh Gaoa48b41b2019-12-13 14:11:04 -0800113 header_libs: ["bionic_libc_platform_headers"],
114 export_header_lib_headers: ["bionic_libc_platform_headers"],
115
Josh Gaoe73c9322017-02-08 16:06:26 -0800116 whole_static_libs: [
117 "libdebuggerd_handler_core",
118 ],
119
120 export_include_dirs: ["include"],
121}
122
Martin Stjernholma2cc8932019-10-23 21:32:43 +0100123// Fallback implementation, for use in the Bionic linker only.
Josh Gaoe73c9322017-02-08 16:06:26 -0800124cc_library_static {
125 name: "libdebuggerd_handler_fallback",
Martin Stjernholma2cc8932019-10-23 21:32:43 +0100126 visibility: ["//bionic/linker"],
127 apex_available: [
128 "com.android.runtime",
129 "//apex_available:platform",
130 ],
Josh Gaoe73c9322017-02-08 16:06:26 -0800131 defaults: ["debuggerd_defaults"],
Jiyong Park011ee122018-05-29 16:41:30 +0900132 recovery_available: true,
Yifan Hong2ec92cf2020-10-27 16:25:45 -0700133 vendor_ramdisk_available: true,
Josh Gaoe1aa0ca2017-03-01 17:23:22 -0800134 srcs: [
135 "handler/debuggerd_fallback.cpp",
136 ],
Josh Gaoe73c9322017-02-08 16:06:26 -0800137
Josh Gaoe1aa0ca2017-03-01 17:23:22 -0800138 whole_static_libs: [
139 "libdebuggerd_handler_core",
Narayan Kamath2d377cd2017-05-10 10:58:59 +0100140 "libtombstoned_client_static",
Christopher Ferrisac225782017-04-25 11:23:10 -0700141 "libasync_safe",
Josh Gaoe1aa0ca2017-03-01 17:23:22 -0800142 "libbase",
Josh Gaoe73c9322017-02-08 16:06:26 -0800143 "libdebuggerd",
Martin Stjernholma2cc8932019-10-23 21:32:43 +0100144 "libunwindstack_no_dex",
Josh Gaoe73c9322017-02-08 16:06:26 -0800145 "liblzma",
146 "libcutils",
147 ],
Josh Gaoa48b41b2019-12-13 14:11:04 -0800148
149 header_libs: ["bionic_libc_platform_headers"],
150 export_header_lib_headers: ["bionic_libc_platform_headers"],
151
Josh Gaocbe70cb2016-10-18 18:17:52 -0700152 export_include_dirs: ["include"],
153}
154
155cc_library {
156 name: "libdebuggerd_client",
157 defaults: ["debuggerd_defaults"],
158 srcs: [
159 "client/debuggerd_client.cpp",
160 "util.cpp",
161 ],
162
163 shared_libs: [
164 "libbase",
165 "libcutils",
Josh Gao4175cee2019-01-04 13:57:09 -0800166 "libprocinfo",
Josh Gaocbe70cb2016-10-18 18:17:52 -0700167 ],
Josh Gaoe1aa0ca2017-03-01 17:23:22 -0800168
Josh Gaoa48b41b2019-12-13 14:11:04 -0800169 header_libs: [
170 "libdebuggerd_common_headers",
171 "bionic_libc_platform_headers",
172 ],
173 export_header_lib_headers: [
174 "libdebuggerd_common_headers",
175 "bionic_libc_platform_headers",
176 ],
177
Josh Gaocbe70cb2016-10-18 18:17:52 -0700178 export_include_dirs: ["include"],
179}
180
Josh Gaoe73c9322017-02-08 16:06:26 -0800181cc_library_static {
Josh Gaocbe70cb2016-10-18 18:17:52 -0700182 name: "libdebuggerd",
183 defaults: ["debuggerd_defaults"],
Jiyong Parka0e75042018-05-24 14:11:00 +0900184 recovery_available: true,
Yifan Hong2ec92cf2020-10-27 16:25:45 -0700185 vendor_ramdisk_available: true,
Josh Gaocbe70cb2016-10-18 18:17:52 -0700186
187 srcs: [
188 "libdebuggerd/backtrace.cpp",
Mitch Phillipse0b4bb12020-02-14 14:54:31 -0800189 "libdebuggerd/gwp_asan.cpp",
Josh Gaocbe70cb2016-10-18 18:17:52 -0700190 "libdebuggerd/open_files_list.cpp",
191 "libdebuggerd/tombstone.cpp",
Josh Gao76e1e302021-01-26 15:53:11 -0800192 "libdebuggerd/tombstone_proto.cpp",
193 "libdebuggerd/tombstone_proto_to_text.cpp",
Josh Gaocbe70cb2016-10-18 18:17:52 -0700194 "libdebuggerd/utility.cpp",
195 ],
196
Josh Gaocbe70cb2016-10-18 18:17:52 -0700197 local_include_dirs: ["libdebuggerd/include"],
198 export_include_dirs: ["libdebuggerd/include"],
Josh Gao9c02dc52016-06-15 17:29:00 -0700199
Peter Collingbournef8622522020-04-07 14:07:32 -0700200 include_dirs: [
201 // Needed for private/bionic_fdsan.h
202 "bionic/libc",
Peter Collingbournef8622522020-04-07 14:07:32 -0700203 ],
Mitch Phillipse0b4bb12020-02-14 14:54:31 -0800204 header_libs: [
205 "bionic_libc_platform_headers",
206 "gwp_asan_headers",
207 ],
Josh Gaoce841d92018-08-06 18:26:42 -0700208
Josh Gaoe73c9322017-02-08 16:06:26 -0800209 static_libs: [
Martin Stjernholma2cc8932019-10-23 21:32:43 +0100210 "libdexfile_support", // libunwindstack dependency
Christopher Ferris9a8c8552017-08-11 15:29:19 -0700211 "libunwindstack",
Josh Gaoe73c9322017-02-08 16:06:26 -0800212 "liblzma",
Josh Gaocbe70cb2016-10-18 18:17:52 -0700213 "libbase",
214 "libcutils",
215 "liblog",
216 ],
Martin Stjernholm3784b9d2021-08-26 21:18:43 +0100217 runtime_libs: [
218 "libdexfile", // libdexfile_support dependency
219 ],
Josh Gaoa48b41b2019-12-13 14:11:04 -0800220
Peter Collingbournef8622522020-04-07 14:07:32 -0700221 whole_static_libs: [
Josh Gao618cea32021-01-26 17:45:43 -0800222 "libasync_safe",
Peter Collingbournef8622522020-04-07 14:07:32 -0700223 "gwp_asan_crash_handler",
Josh Gao76e1e302021-01-26 15:53:11 -0800224 "libtombstone_proto",
Josh Gaodbb83de2021-03-01 23:13:13 -0800225 "libprocinfo",
Josh Gao76e1e302021-01-26 15:53:11 -0800226 "libprotobuf-cpp-lite",
Peter Collingbournef8622522020-04-07 14:07:32 -0700227 ],
Mitch Phillipse0b4bb12020-02-14 14:54:31 -0800228
Martin Stjernholmbb4f2b42018-12-19 14:28:33 +0000229 target: {
230 recovery: {
231 exclude_static_libs: [
Martin Stjernholma2cc8932019-10-23 21:32:43 +0100232 "libdexfile_support",
Martin Stjernholmbb4f2b42018-12-19 14:28:33 +0000233 ],
Martin Stjernholm3784b9d2021-08-26 21:18:43 +0100234 exclude_runtime_libs: [
235 "libdexfile",
236 ],
Martin Stjernholmbb4f2b42018-12-19 14:28:33 +0000237 },
Yifan Hong2ec92cf2020-10-27 16:25:45 -0700238 vendor_ramdisk: {
239 exclude_static_libs: [
240 "libdexfile_support",
241 ],
Martin Stjernholm3784b9d2021-08-26 21:18:43 +0100242 exclude_runtime_libs: [
243 "libdexfile",
244 ],
Yifan Hong2ec92cf2020-10-27 16:25:45 -0700245 },
Martin Stjernholmbb4f2b42018-12-19 14:28:33 +0000246 },
Christopher Ferris4ae266c2019-04-03 09:27:12 -0700247
248 product_variables: {
249 debuggable: {
250 cflags: ["-DROOT_POSSIBLE"],
251 },
Christopher Ferris7aad2562021-09-24 00:06:38 -0700252
253 malloc_not_svelte: {
254 cflags: ["-DUSE_SCUDO"],
255 whole_static_libs: ["libscudo"],
256 srcs: ["libdebuggerd/scudo.cpp"],
257 header_libs: ["scudo_headers"],
258 },
Christopher Ferris4ae266c2019-04-03 09:27:12 -0700259 },
Josh Gaocbe70cb2016-10-18 18:17:52 -0700260}
261
Josh Gao76e1e302021-01-26 15:53:11 -0800262cc_binary {
263 name: "pbtombstone",
264 defaults: ["debuggerd_defaults"],
265 srcs: ["pbtombstone.cpp"],
266 static_libs: [
267 "libbase",
268 "libdebuggerd",
269 "liblog",
270 "libprotobuf-cpp-lite",
271 "libtombstone_proto",
272 "libunwindstack",
273 ],
274}
275
Christopher Ferrisfe751c52021-04-16 09:40:40 -0700276cc_test_library {
277 name: "libcrash_test",
278 defaults: ["debuggerd_defaults"],
279 srcs: ["crash_test.cpp"],
280}
281
Josh Gaocbe70cb2016-10-18 18:17:52 -0700282cc_test {
283 name: "debuggerd_test",
284 defaults: ["debuggerd_defaults"],
Josh Gao6cad1392019-08-27 16:02:38 -0700285 require_root: true,
Josh Gaocbe70cb2016-10-18 18:17:52 -0700286
287 cflags: ["-Wno-missing-field-initializers"],
288 srcs: [
289 "libdebuggerd/test/dump_memory_test.cpp",
290 "libdebuggerd/test/elf_fake.cpp",
291 "libdebuggerd/test/log_fake.cpp",
292 "libdebuggerd/test/open_files_list_test.cpp",
Peter Collingbourne47d784e2021-11-05 18:40:52 -0700293 "libdebuggerd/test/utility_test.cpp",
Josh Gaocbe70cb2016-10-18 18:17:52 -0700294 ],
295
liyong381b89c2022-05-24 16:37:10 +0800296 product_variables: {
297 malloc_not_svelte: {
298 srcs: ["libdebuggerd/test/scudo_test.cpp"],
299 header_libs: ["scudo_headers"],
300 },
301 },
302
Josh Gaocbe70cb2016-10-18 18:17:52 -0700303 target: {
304 android: {
305 srcs: [
Josh Gaoae9d7672017-03-24 16:26:03 -0700306 "client/debuggerd_client_test.cpp",
Josh Gaocbe70cb2016-10-18 18:17:52 -0700307 "debuggerd_test.cpp",
Josh Gaocbe70cb2016-10-18 18:17:52 -0700308 ],
Elliott Hughesdc699a22018-02-16 17:58:14 -0800309 static_libs: [
310 "libasync_safe",
311 "libtombstoned_client_static",
312 ],
Josh Gaocbe70cb2016-10-18 18:17:52 -0700313 },
314 },
315
316 shared_libs: [
Josh Gaocbe70cb2016-10-18 18:17:52 -0700317 "libbase",
318 "libcutils",
Josh Gaoae9d7672017-03-24 16:26:03 -0700319 "libdebuggerd_client",
Narayan Kamatha73df602017-05-24 15:07:25 +0100320 "liblog",
Elliott Hughesdc699a22018-02-16 17:58:14 -0800321 "libnativehelper",
Martin Stjernholm852b64e2019-02-20 17:01:24 +0000322 "libunwindstack",
Josh Gaocbe70cb2016-10-18 18:17:52 -0700323 ],
324
325 static_libs: [
Josh Gao352a8452017-03-30 16:46:21 -0700326 "libdebuggerd",
Mitch Phillipse0b4bb12020-02-14 14:54:31 -0800327 "libgmock",
Peter Collingbourned00a5772020-07-20 23:11:16 -0700328 "libminijail",
Josh Gaocbe70cb2016-10-18 18:17:52 -0700329 ],
330
Josh Gaoa48b41b2019-12-13 14:11:04 -0800331 header_libs: [
332 "bionic_libc_platform_headers",
Mitch Phillipse0b4bb12020-02-14 14:54:31 -0800333 "gwp_asan_headers",
Josh Gaoa48b41b2019-12-13 14:11:04 -0800334 ],
335
Josh Gaocbe70cb2016-10-18 18:17:52 -0700336 local_include_dirs: [
337 "libdebuggerd",
338 ],
339
340 compile_multilib: "both",
341 multilib: {
342 lib32: {
343 stem: "debuggerd_test32",
344 },
345 lib64: {
346 stem: "debuggerd_test64",
347 },
348 },
Elliott Hughes40fdf3f2018-04-27 16:12:06 -0700349
Christopher Ferrisfe751c52021-04-16 09:40:40 -0700350 data: [
351 ":libcrash_test",
352 ],
353
Elliott Hughes40fdf3f2018-04-27 16:12:06 -0700354 test_suites: ["device-tests"],
Josh Gaocbe70cb2016-10-18 18:17:52 -0700355}
356
Josh Gaoa42314e2017-12-19 15:08:19 -0800357cc_benchmark {
358 name: "debuggerd_benchmark",
359 defaults: ["debuggerd_defaults"],
360 srcs: ["debuggerd_benchmark.cpp"],
361 shared_libs: [
362 "libbase",
363 "libdebuggerd_client",
364 ],
365}
366
Josh Gaocbe70cb2016-10-18 18:17:52 -0700367cc_binary {
368 name: "crash_dump",
369 srcs: [
370 "crash_dump.cpp",
371 "util.cpp",
372 ],
373 defaults: ["debuggerd_defaults"],
374
375 compile_multilib: "both",
376 multilib: {
377 lib32: {
378 suffix: "32",
379 },
380 lib64: {
381 suffix: "64",
382 },
383 },
384
Josh Gaoa48b41b2019-12-13 14:11:04 -0800385 header_libs: [
386 "bionic_libc_platform_headers",
387 ],
388
Josh Gaoe73c9322017-02-08 16:06:26 -0800389 static_libs: [
Narayan Kamath2d377cd2017-05-10 10:58:59 +0100390 "libtombstoned_client_static",
Josh Gaoe73c9322017-02-08 16:06:26 -0800391 "libdebuggerd",
392 "libcutils",
Josh Gao76e1e302021-01-26 15:53:11 -0800393
394 "libtombstone_proto",
395 "libprotobuf-cpp-lite",
Josh Gaoe73c9322017-02-08 16:06:26 -0800396 ],
397
Josh Gaocbe70cb2016-10-18 18:17:52 -0700398 shared_libs: [
Josh Gaocbe70cb2016-10-18 18:17:52 -0700399 "libbase",
Josh Gaocbe70cb2016-10-18 18:17:52 -0700400 "liblog",
401 "libprocinfo",
Josh Gao2b2ae0c2017-08-21 14:31:17 -0700402 "libunwindstack",
Josh Gaocbe70cb2016-10-18 18:17:52 -0700403 ],
Peter Collingbourneb72e7482020-03-16 18:14:13 -0700404
405 apex_available: [
406 "com.android.runtime",
407 ],
Peter Collingbournea2739da2022-02-02 17:00:42 -0800408
409 // Required for tests.
410 required: ["crash_dump.policy"],
Josh Gaocbe70cb2016-10-18 18:17:52 -0700411}
412
413cc_binary {
414 name: "debuggerd",
415 srcs: [
416 "debuggerd.cpp",
417 ],
418 defaults: ["debuggerd_defaults"],
419
420 shared_libs: [
421 "libbase",
422 "libdebuggerd_client",
423 "liblog",
Josh Gao0915f232017-06-27 14:08:05 -0700424 "libprocinfo",
Josh Gaocbe70cb2016-10-18 18:17:52 -0700425 ],
426
427 local_include_dirs: ["include"],
428}
429
430cc_binary {
431 name: "tombstoned",
432 srcs: [
433 "util.cpp",
434 "tombstoned/intercept_manager.cpp",
435 "tombstoned/tombstoned.cpp",
436 ],
437 defaults: ["debuggerd_defaults"],
438
Josh Gaoa48b41b2019-12-13 14:11:04 -0800439 header_libs: [
440 "bionic_libc_platform_headers",
441 "libdebuggerd_common_headers"
442 ],
Narayan Kamatha73df602017-05-24 15:07:25 +0100443
Josh Gaocbe70cb2016-10-18 18:17:52 -0700444 static_libs: [
445 "libbase",
446 "libcutils",
447 "libevent",
448 "liblog",
449 ],
450
Elliott Hughesdc699a22018-02-16 17:58:14 -0800451 init_rc: ["tombstoned/tombstoned.rc"],
Josh Gao9c02dc52016-06-15 17:29:00 -0700452}
Ray Essickbd3ba782020-01-21 15:21:08 -0800453
454prebuilt_etc {
455 name: "crash_dump.policy",
456 sub_dir: "seccomp_policy",
457 filename_from_src: true,
458 arch: {
459 arm: {
460 src: "seccomp_policy/crash_dump.arm.policy",
461 },
462 arm64: {
463 src: "seccomp_policy/crash_dump.arm64.policy",
464 },
465 x86: {
466 src: "seccomp_policy/crash_dump.x86.policy",
467 },
468 x86_64: {
469 src: "seccomp_policy/crash_dump.x86_64.policy",
470 },
471 },
472 required: [
473 "crash_dump.policy_other",
474 ],
475}
476
477
478// NB -- this installs "the other" architecture. (puts 32 bit config in on 64 bit device)
479// or at least that is the intention so that we get both of them populated
480prebuilt_etc {
481 name: "crash_dump.policy_other",
482 sub_dir: "seccomp_policy",
483 filename_from_src: true,
484 arch: {
485 arm: {
486 src: "seccomp_policy/crash_dump.arm64.policy",
487 },
488 arm64: {
489 src: "seccomp_policy/crash_dump.arm.policy",
490 },
491 x86: {
492 src: "seccomp_policy/crash_dump.x86_64.policy",
493 },
494 x86_64: {
495 src: "seccomp_policy/crash_dump.x86.policy",
496 },
497 },
498}