44 lines
1.5 KiB
Makefile
44 lines
1.5 KiB
Makefile
COMMON_SEPOLICY_PATH := device/qcom/common/sepolicy
|
|
|
|
ifeq ($(TARGET_SEPOLICY_DIR),)
|
|
TARGET_SEPOLICY_DIR := $(TARGET_BOARD_PLATFORM)
|
|
endif
|
|
|
|
ifeq (,$(filter sdm845 sdm710 sdm660 msm8937 msm8953 msm8998, $(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)
|
|
|
|
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
|
|
SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS += \
|
|
$(COMMON_SEPOLICY_PATH)/qva/vendor/test
|
|
endif
|
|
else # Legacy
|
|
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
|
|
|
|
# Common system policies
|
|
SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS += \
|
|
$(COMMON_SEPOLICY_PATH)/common/private
|
|
SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS += \
|
|
$(COMMON_SEPOLICY_PATH)/common/public
|
|
|
|
# AOSPA-QCOM Specific Required SEPolicy
|
|
ifneq ($(AOSPA_BUILD),)
|
|
BOARD_VENDOR_SEPOLICY_DIRS += \
|
|
$(COMMON_SEPOLICY_PATH)/pixel/vendor
|
|
SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS += \
|
|
$(COMMON_SEPOLICY_PATH)/aospa/private
|
|
endif
|