-
Notifications
You must be signed in to change notification settings - Fork 7
/
sepolicy_14.mk
28 lines (26 loc) · 1.57 KB
/
sepolicy_14.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
# SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS
BORT_SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS := $(BORT_PATH)/sepolicy/private
ifeq (,$(findstring $(BORT_SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS),$(SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS)))
SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS += $(BORT_SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS)
endif
BORT_BOARD_PLAT_PRIVATE_VERSION_SEPOLICY_DIR := $(BORT_PATH)/sepolicy/private-$(PLATFORM_SDK_VERSION)
ifneq (,$(wildcard $(BORT_BOARD_PLAT_PRIVATE_VERSION_SEPOLICY_DIR)))
ifeq (,$(findstring $(BORT_BOARD_PLAT_PRIVATE_VERSION_SEPOLICY_DIR),$(SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS)))
SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS += $(BORT_BOARD_PLAT_PRIVATE_VERSION_SEPOLICY_DIR)
endif
endif
# SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS
BORT_SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS := $(BORT_PATH)/sepolicy/public
ifeq (,$(findstring $(BORT_SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS),$(SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS)))
SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS += $(BORT_SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS)
endif
BORT_BOARD_PLAT_PUBLIC_VERSION_SEPOLICY_DIR := $(BORT_PATH)/sepolicy/public-$(PLATFORM_SDK_VERSION)
ifneq (,$(wildcard $(BORT_BOARD_PLAT_PUBLIC_VERSION_SEPOLICY_DIR)))
ifeq (,$(findstring $(BORT_BOARD_PLAT_PUBLIC_VERSION_SEPOLICY_DIR),$(SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS)))
SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS += $(BORT_BOARD_PLAT_PUBLIC_VERSION_SEPOLICY_DIR)
endif
endif
$(warning BOARD_SEPOLICY_DIRS - $(BOARD_SEPOLICY_DIRS))
$(warning BOARD_SEPOLICY_M4DEFS - $(BORT_BOARD_SEPOLICY_M4DEF))
$(warning SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS - $(SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS))
$(warning SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS - $(SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS))