platform_system_core/code_coverage/Android.bp
Colin Cross 83fc3048d6 Disable code_coverage.other for riscv64
code_coverage.policy.other is supposed to install a policy for the
"other" architecture, e.g. arm for arm64.  riscv64 doesn't have an
"other" architecture, disable the module.

Test: builds
Change-Id: Ic42c706dd9c1efe4b0fe9fa7c9823a2a379ba56b
2022-10-13 13:49:10 -07:00

99 lines
2.8 KiB
Text

package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
prebuilt_etc {
name: "code_coverage.policy",
sub_dir: "seccomp_policy",
filename_from_src: true,
arch: {
arm: {
src: "empty_policy/code_coverage.arm.policy",
product_variables: {
native_coverage: {
src: "seccomp_policy/code_coverage.arm.policy",
},
},
},
arm64: {
src: "empty_policy/code_coverage.arm64.policy",
product_variables: {
native_coverage: {
src: "seccomp_policy/code_coverage.arm64.policy",
},
},
},
riscv64: {
src: "empty_policy/code_coverage.riscv64.policy",
product_variables: {
native_coverage: {
src: "seccomp_policy/code_coverage.riscv64.policy",
},
},
},
x86: {
src: "empty_policy/code_coverage.x86.policy",
product_variables: {
native_coverage: {
src: "seccomp_policy/code_coverage.x86.policy",
},
},
},
x86_64: {
src: "empty_policy/code_coverage.x86_64.policy",
product_variables: {
native_coverage: {
src: "seccomp_policy/code_coverage.x86_64.policy",
},
},
},
},
required: [
"code_coverage.policy.other",
],
}
prebuilt_etc {
name: "code_coverage.policy.other",
sub_dir: "seccomp_policy",
filename_from_src: true,
arch: {
arm: {
src: "empty_policy/code_coverage.arm64.policy",
product_variables: {
native_coverage: {
src: "seccomp_policy/code_coverage.arm64.policy",
},
},
},
arm64: {
src: "empty_policy/code_coverage.arm.policy",
product_variables: {
native_coverage: {
src: "seccomp_policy/code_coverage.arm.policy",
},
},
},
riscv64: {
// riscv64 doesn't have a secondary architecture.
enabled: false,
},
x86: {
src: "empty_policy/code_coverage.x86_64.policy",
product_variables: {
native_coverage: {
src: "seccomp_policy/code_coverage.x86_64.policy",
},
},
},
x86_64: {
src: "empty_policy/code_coverage.x86.policy",
product_variables: {
native_coverage: {
src: "seccomp_policy/code_coverage.x86.policy",
},
},
},
},
}