Merge "Include correct type of SELinux policy" am: 0ab93fdf3a
am: 18a826024b
Change-Id: I1f6da6ef96992bd46dde751da92a4e4063616758
This commit is contained in:
commit
b049bdc72a
1 changed files with 18 additions and 0 deletions
|
@ -107,6 +107,24 @@ LOCAL_STATIC_LIBRARIES := \
|
|||
libnl \
|
||||
libavb
|
||||
|
||||
# Include SELinux policy. We do this here because different modules
|
||||
# need to be included based on the value of PRODUCT_FULL_TREBLE. This
|
||||
# type of conditional inclusion cannot be done in top-level files such
|
||||
# as build/target/product/embedded.mk.
|
||||
# This conditional inclusion closely mimics the conditional logic
|
||||
# inside init/init.cpp for loading SELinux policy from files.
|
||||
ifeq ($(PRODUCT_FULL_TREBLE),true)
|
||||
# Use split SELinux policy
|
||||
LOCAL_REQUIRED_MODULES += \
|
||||
mapping_sepolicy.cil \
|
||||
nonplat_sepolicy.cil \
|
||||
plat_sepolicy.cil \
|
||||
secilc
|
||||
else
|
||||
# Use monolithic SELinux policy
|
||||
LOCAL_REQUIRED_MODULES += sepolicy
|
||||
endif
|
||||
|
||||
# Create symlinks.
|
||||
LOCAL_POST_INSTALL_CMD := $(hide) mkdir -p $(TARGET_ROOT_OUT)/sbin; \
|
||||
ln -sf ../init $(TARGET_ROOT_OUT)/sbin/ueventd; \
|
||||
|
|
Loading…
Reference in a new issue