1version := $(version_under_treble_tests) 2 3include $(CLEAR_VARS) 4################################# 5# build this target to ensure the compat permissions files all build against the current policy 6# 7LOCAL_MODULE := $(version)_compat_test 8LOCAL_REQUIRED_MODULES := $(version).compat.cil 9LOCAL_MODULE_CLASS := FAKE 10LOCAL_MODULE_TAGS := optional 11 12include $(BUILD_SYSTEM)/base_rules.mk 13 14all_cil_files := \ 15 $(built_plat_cil) \ 16 $(built_plat_mapping_cil) \ 17 $(built_pub_vers_cil) \ 18 $(built_vendor_cil) \ 19 $(ALL_MODULES.$(version).compat.cil.BUILT) \ 20 21ifdef HAS_SYSTEM_EXT_SEPOLICY 22all_cil_files += $(built_system_ext_cil) 23endif 24 25ifdef HAS_SYSTEM_EXT_PUBLIC_SEPOLICY 26all_cil_files += $(built_system_ext_mapping_cil) 27endif 28 29ifdef HAS_PRODUCT_SEPOLICY 30all_cil_files += $(built_product_cil) 31endif 32 33ifdef HAS_PRODUCT_PUBLIC_SEPOLICY 34all_cil_files += $(built_product_mapping_cil) 35endif 36 37ifdef BOARD_ODM_SEPOLICY_DIRS 38all_cil_files += $(built_odm_cil) 39endif 40 41$(LOCAL_BUILT_MODULE): PRIVATE_CIL_FILES := $(all_cil_files) 42$(LOCAL_BUILT_MODULE): $(HOST_OUT_EXECUTABLES)/secilc $(HOST_OUT_EXECUTABLES)/sepolicy-analyze $(all_cil_files) 43 @mkdir -p $(dir $@) 44 $(hide) $< -m -N -M true -G -c $(POLICYVERS) $(PRIVATE_CIL_FILES) -o $@ -f /dev/null 45 46all_cil_files := 47version := 48version_under_treble_tests := 49