Luca Stefani | 0927139 | 2017-08-18 10:35:47 +0200 | [diff] [blame] | 1 | # |
| 2 | # This policy configuration will be used by all products that |
| 3 | # inherit from Lineage |
| 4 | # |
| 5 | |
dianlujitao | 370b40b | 2019-02-14 13:28:42 +0800 | [diff] [blame] | 6 | ifeq ($(TARGET_COPY_OUT_VENDOR), vendor) |
| 7 | ifeq ($(BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE),) |
| 8 | TARGET_USES_PREBUILT_VENDOR_SEPOLICY ?= true |
| 9 | endif |
| 10 | endif |
| 11 | |
Michael Bestas | 0212863 | 2021-10-07 22:04:41 +0300 | [diff] [blame] | 12 | SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS += \ |
Ethan Chen | 5c98e90 | 2017-10-18 19:11:22 -0700 | [diff] [blame] | 13 | device/lineage/sepolicy/common/public |
| 14 | |
Michael Bestas | 0212863 | 2021-10-07 22:04:41 +0300 | [diff] [blame] | 15 | SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS += \ |
Ethan Chen | 5c98e90 | 2017-10-18 19:11:22 -0700 | [diff] [blame] | 16 | device/lineage/sepolicy/common/private |
Demon000 | ac09eee | 2017-12-23 15:07:01 +0200 | [diff] [blame] | 17 | |
dianlujitao | 370b40b | 2019-02-14 13:28:42 +0800 | [diff] [blame] | 18 | ifeq ($(TARGET_USES_PREBUILT_VENDOR_SEPOLICY), true) |
Michael Bestas | 0212863 | 2021-10-07 22:04:41 +0300 | [diff] [blame] | 19 | SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS += \ |
theimpulson | ccc533f | 2019-11-15 03:52:14 +0000 | [diff] [blame] | 20 | device/lineage/sepolicy/common/dynamic \ |
| 21 | device/lineage/sepolicy/common/system |
dianlujitao | 370b40b | 2019-02-14 13:28:42 +0800 | [diff] [blame] | 22 | else |
Aayush Gupta | fe0dad6 | 2020-10-22 13:02:38 +0530 | [diff] [blame] | 23 | BOARD_VENDOR_SEPOLICY_DIRS += \ |
dianlujitao | 370b40b | 2019-02-14 13:28:42 +0800 | [diff] [blame] | 24 | device/lineage/sepolicy/common/dynamic \ |
LuK1337 | 20256ad | 2018-02-09 15:43:11 +0100 | [diff] [blame] | 25 | device/lineage/sepolicy/common/vendor |
dianlujitao | 370b40b | 2019-02-14 13:28:42 +0800 | [diff] [blame] | 26 | endif |
Bruno Martins | b542aee | 2020-02-25 20:55:33 +0000 | [diff] [blame] | 27 | |
| 28 | # Selectively include legacy rules defined by the products |
| 29 | -include device/lineage/sepolicy/legacy-common/sepolicy.mk |
Aaron Kling | 1f0b099 | 2021-08-10 11:11:16 -0500 | [diff] [blame] | 30 | |
| 31 | # Include atv rules on atv product |
| 32 | ifeq ($(PRODUCT_IS_ATV), true) |
| 33 | include device/lineage/sepolicy/atv/sepolicy.mk |
| 34 | endif |