blob: 80ab36be67de4fd7ccfd80746b04e176f125dcb7 [file] [log] [blame]
Ray Essickc6512a42019-10-31 13:53:05 -07001# policies to allow processes inside minijail to dump code coverage information
2#
3
4LOCAL_PATH := $(call my-dir)
5
6
7include $(CLEAR_VARS)
8LOCAL_MODULE := code_coverage.policy
9LOCAL_MODULE_CLASS := ETC
10LOCAL_MULTILIB := both
11
12ifeq ($(TARGET_ARCH), $(filter $(TARGET_ARCH), arm arm64))
13LOCAL_MODULE_STEM_32 := code_coverage.arm.policy
14LOCAL_MODULE_STEM_64 := code_coverage.arm64.policy
15endif
16
17ifeq ($(TARGET_ARCH), $(filter $(TARGET_ARCH), x86 x86_64))
18LOCAL_MODULE_STEM_32 := code_coverage.x86.policy
19LOCAL_MODULE_STEM_64 := code_coverage.x86_64.policy
20endif
21
22# different files for different configurations
23ifeq ($(NATIVE_COVERAGE),true)
24LOCAL_SRC_FILES_arm := seccomp_policy/code_coverage.arm.policy
25LOCAL_SRC_FILES_arm64 := seccomp_policy/code_coverage.arm64.policy
26LOCAL_SRC_FILES_x86 := seccomp_policy/code_coverage.x86.policy
27LOCAL_SRC_FILES_x86_64 := seccomp_policy/code_coverage.x86_64.policy
28else
29LOCAL_SRC_FILES_arm := empty_policy/code_coverage.arm.policy
30LOCAL_SRC_FILES_arm64 := empty_policy/code_coverage.arm64.policy
31LOCAL_SRC_FILES_x86 := empty_policy/code_coverage.x86.policy
32LOCAL_SRC_FILES_x86_64 := empty_policy/code_coverage.x86_64.policy
33endif
34
35LOCAL_MODULE_TARGET_ARCH := arm arm64 x86 x86_64
36LOCAL_MODULE_PATH := $(TARGET_OUT)/etc/seccomp_policy
37include $(BUILD_PREBUILT)