android_device_qcom_common/sepolicy/SEPolicy.mk

32 lines
1.1 KiB
Makefile
Raw Normal View History

COMMON_SEPOLICY_PATH := device/qcom/common/sepolicy
ifeq ($(TARGET_SEPOLICY_DIR),)
TARGET_SEPOLICY_DIR := $(TARGET_BOARD_PLATFORM)
endif
ifeq (,$(filter sdm845 sdm710, $(TARGET_BOARD_PLATFORM)))
BOARD_VENDOR_SEPOLICY_DIRS += \
$(COMMON_SEPOLICY_PATH)/generic/vendor/common \
$(COMMON_SEPOLICY_PATH)/qva/vendor/common \
$(COMMON_SEPOLICY_PATH)/generic/vendor/$(TARGET_SEPOLICY_DIR) \
$(COMMON_SEPOLICY_PATH)/qva/vendor/$(TARGET_SEPOLICY_DIR)
else # 845 and 710
BOARD_VENDOR_SEPOLICY_DIRS += \
$(COMMON_SEPOLICY_PATH)/legacy/vendor/ssg \
$(COMMON_SEPOLICY_PATH)/legacy/vendor/common \
$(COMMON_SEPOLICY_PATH)/legacy/vendor/$(TARGET_SEPOLICY_DIR)
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
BOARD_VENDOR_SEPOLICY_DIRS += \
$(COMMON_SEPOLICY_PATH)/legacy/vendor/test \
$(COMMON_SEPOLICY_PATH)/legacy/vendor/test/sysmonapp
endif
endif # 845 and 710
# Common system policies
SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS += \
$(COMMON_SEPOLICY_PATH)/common/private
SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS += \
$(COMMON_SEPOLICY_PATH)/common/public