blob: 561d3418fd7d47bb331394a132a6b6db6f123b8e [file] [log] [blame]
Luca Stefani09271392017-08-18 10:35:47 +02001#
2# This policy configuration will be used by all products that
3# inherit from Lineage
4#
5
dianlujitao370b40b2019-02-14 13:28:42 +08006ifeq ($(TARGET_COPY_OUT_VENDOR), vendor)
7ifeq ($(BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE),)
8TARGET_USES_PREBUILT_VENDOR_SEPOLICY ?= true
9endif
10endif
11
Aaron Kling490115c2022-05-14 20:26:08 +020012ifeq ($(TARGET_USES_PREBUILT_VENDOR_SEPOLICY), true)
13ifeq ($(TARGET_HAS_FUSEBLK_SEPOLICY_ON_VENDOR),true)
14BOARD_SEPOLICY_M4DEFS += board_excludes_fuseblk_sepolicy=true
15endif
16endif
17
Michael Bestas02128632021-10-07 22:04:41 +030018SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS += \
Ethan Chen5c98e902017-10-18 19:11:22 -070019 device/lineage/sepolicy/common/public
20
Michael Bestas02128632021-10-07 22:04:41 +030021SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS += \
Ethan Chen5c98e902017-10-18 19:11:22 -070022 device/lineage/sepolicy/common/private
Demon000ac09eee2017-12-23 15:07:01 +020023
dianlujitao370b40b2019-02-14 13:28:42 +080024ifeq ($(TARGET_USES_PREBUILT_VENDOR_SEPOLICY), true)
Michael Bestas02128632021-10-07 22:04:41 +030025SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS += \
theimpulsonccc533f2019-11-15 03:52:14 +000026 device/lineage/sepolicy/common/dynamic \
27 device/lineage/sepolicy/common/system
dianlujitao370b40b2019-02-14 13:28:42 +080028else
Aayush Guptafe0dad62020-10-22 13:02:38 +053029BOARD_VENDOR_SEPOLICY_DIRS += \
dianlujitao370b40b2019-02-14 13:28:42 +080030 device/lineage/sepolicy/common/dynamic \
LuK133720256ad2018-02-09 15:43:11 +010031 device/lineage/sepolicy/common/vendor
dianlujitao370b40b2019-02-14 13:28:42 +080032endif
Bruno Martinsb542aee2020-02-25 20:55:33 +000033
34# Selectively include legacy rules defined by the products
35-include device/lineage/sepolicy/legacy-common/sepolicy.mk
Aaron Kling1f0b0992021-08-10 11:11:16 -050036
37# Include atv rules on atv product
38ifeq ($(PRODUCT_IS_ATV), true)
39include device/lineage/sepolicy/atv/sepolicy.mk
40endif