From 82d1c88717bddfa640d12e97208a6c60ef22779d Mon Sep 17 00:00:00 2001 From: Tri Vo Date: Sun, 25 Mar 2018 19:58:03 -0700 Subject: [PATCH] Expose selinux variables to Soong. Bug: 33691272 Test: manual Change-Id: I734b96be16279716208bbc0afb78b8f4555deffb --- core/soong_config.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/soong_config.mk b/core/soong_config.mk index 4d502ec52..f539bc1e0 100644 --- a/core/soong_config.mk +++ b/core/soong_config.mk @@ -140,6 +140,11 @@ $(call add_json_list, NamespacesToExport, $(PRODUCT_SOONG_NAMESPA $(call add_json_list, PgoAdditionalProfileDirs, $(PGO_ADDITIONAL_PROFILE_DIRS)) +$(call add_json_list, BoardVendorSepolicyDirs, $(BOARD_SEPOLICY_DIRS)) +$(call add_json_list, BoardOdmSepolicyDirs, $(BOARD_ODM_SEPOLICY_DIRS)) +$(call add_json_str, BoardPlatPublicSepolicyDir, $(BOARD_PLAT_PUBLIC_SEPOLICY_DIR)) +$(call add_json_str, BoardPlatPrivateSepolicyDir, $(BOARD_PLAT_PRIVATE_SEPOLICY_DIR)) + _contents := $(_contents) "VendorVars": {$(newline) $(foreach namespace,$(SOONG_CONFIG_NAMESPACES),\ $(eval _contents := $$(_contents) "$(namespace)": {$$(newline)) \