mediatek: Add a README and makefiles required for inclusion

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
Aayush Gupta 2020-09-09 11:47:36 +00:00
parent 4769fb0d97
commit 4bbc8ad3be
3 changed files with 38 additions and 0 deletions

10
Android.mk Normal file
View File

@ -0,0 +1,10 @@
# Don't recurse into the platform makefiles. We don't care about them, and
# we don't want to force a reset of BOARD_SEPOLICY_DIRS
#
# If you want to use these policies, add a
#
# include device/mediatek/sepolicy/sepolicy.mk
#
# to your device's BoardConfig. It is highly recommended that in case
# you have your own BOARD_SEPOLICY_DIRS declaration,
# the inclusion happens _before_ those lines

19
README.md Normal file
View File

@ -0,0 +1,19 @@
# SELinux policy for MediaTek devices
Don't recurse into the platform makefiles. We don't care about them, and we
don't want to force a reset of `BOARD_SEPOLICY_DIRS`.
If you want to use these policies, add a
include device/mediatek/sepolicy/sepolicy.mk
to your device's BoardConfig. It is highly recommended that in case you have
your own `BOARD_SEPOLICY_DIRS` declaration, the inclusion happens _before_
those lines
## Repository Details
This repository uses [device/mediatek/wembley-sepolicy](https://android.googlesource.com/device/mediatek/wembley-sepolicy/) as base till `4769fb0d973bf079934054c6c5423ca06d67010a`.
After that Google's device-specific changes starts.
Till `4769fb0d973bf079934054c6c5423ca06d67010a`, this repository is similar to
the **basic** sepolicy repository provided by MediaTek to the OEMs.

9
sepolicy.mk Normal file
View File

@ -0,0 +1,9 @@
# Board specific SELinux policy variable definitions
BOARD_SEPOLICY_DIRS := \
device/mediatek/sepolicy/non_plat
BOARD_PLAT_PUBLIC_SEPOLICY_DIR := \
device/mediatek/sepolicy/plat_public
BOARD_PLAT_PRIVATE_SEPOLICY_DIR := \
device/mediatek/sepolicy/plat_private