-
Notifications
You must be signed in to change notification settings - Fork 0
/
sepolicy.mk
53 lines (44 loc) · 1.98 KB
/
sepolicy.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Board specific SELinux policy variable definitions
BOARD_PLAT_PUBLIC_SEPOLICY_DIR += \
device/qcom/sepolicy/generic/public
BOARD_PLAT_PRIVATE_SEPOLICY_DIR += \
device/qcom/sepolicy/generic/private
BOARD_PLAT_PUBLIC_SEPOLICY_DIR += \
device/qcom/sepolicy/qva/public
BOARD_PLAT_PRIVATE_SEPOLICY_DIR += \
device/qcom/sepolicy/qva/private
ifeq (,$(filter sdm845 sdm710, $(TARGET_BOARD_PLATFORM)))
BOARD_SEPOLICY_DIRS += \
device/qcom/sepolicy/generic/vendor/common \
device/qcom/sepolicy/qva/vendor/common/sysmonapp \
device/qcom/sepolicy/qva/vendor/ssg \
device/qcom/sepolicy/timeservice \
device/qcom/sepolicy/qva/vendor/common
ifeq ($(TARGET_SEPOLICY_DIR),)
BOARD_SEPOLICY_DIRS += device/qcom/sepolicy/generic/vendor/$(TARGET_BOARD_PLATFORM)
BOARD_SEPOLICY_DIRS += device/qcom/sepolicy/qva/vendor/$(TARGET_BOARD_PLATFORM)
else
BOARD_SEPOLICY_DIRS += device/qcom/sepolicy/generic/vendor/$(TARGET_SEPOLICY_DIR)
BOARD_SEPOLICY_DIRS += device/qcom/sepolicy/qva/vendor/$(TARGET_SEPOLICY_DIR)
endif
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
BOARD_SEPOLICY_DIRS += device/qcom/sepolicy/generic/vendor/test
BOARD_SEPOLICY_DIRS += device/qcom/sepolicy/qva/vendor/test
endif
endif
ifneq (,$(filter sdm845 sdm710, $(TARGET_BOARD_PLATFORM)))
BOARD_SEPOLICY_DIRS += \
device/qcom/sepolicy/legacy/vendor/common/sysmonapp \
device/qcom/sepolicy/legacy/vendor/ssg \
device/qcom/sepolicy/timeservice \
device/qcom/sepolicy/legacy/vendor/common
ifeq ($(TARGET_SEPOLICY_DIR),)
BOARD_SEPOLICY_DIRS += device/qcom/sepolicy/legacy/vendor/$(TARGET_BOARD_PLATFORM)
else
BOARD_SEPOLICY_DIRS += device/qcom/sepolicy/legacy/vendor/$(TARGET_SEPOLICY_DIR)
endif
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
BOARD_SEPOLICY_DIRS += device/qcom/sepolicy/legacy/vendor/test
endif
endif
-include device/custom/sepolicy/qcom/sepolicy.mk