1# Command to turn collection of policy files into a policy.conf file to be 2# processed by checkpolicy 3define transform-policy-to-conf 4@mkdir -p $(dir $@) 5$(hide) $(M4) --fatal-warnings $(PRIVATE_ADDITIONAL_M4DEFS) \ 6 -D mls_num_sens=$(PRIVATE_MLS_SENS) -D mls_num_cats=$(PRIVATE_MLS_CATS) \ 7 -D target_build_variant=$(PRIVATE_TARGET_BUILD_VARIANT) \ 8 -D target_with_dexpreopt=$(WITH_DEXPREOPT) \ 9 -D target_arch=$(PRIVATE_TGT_ARCH) \ 10 -D target_with_asan=$(PRIVATE_TGT_WITH_ASAN) \ 11 -D target_with_native_coverage=$(PRIVATE_TGT_WITH_NATIVE_COVERAGE) \ 12 -D target_full_treble=$(PRIVATE_SEPOLICY_SPLIT) \ 13 -D target_compatible_property=$(PRIVATE_COMPATIBLE_PROPERTY) \ 14 -D target_treble_sysprop_neverallow=$(PRIVATE_TREBLE_SYSPROP_NEVERALLOW) \ 15 -D target_exclude_build_test=$(PRIVATE_EXCLUDE_BUILD_TEST) \ 16 -D target_requires_insecure_execmem_for_swiftshader=$(PRODUCT_REQUIRES_INSECURE_EXECMEM_FOR_SWIFTSHADER) \ 17 $(PRIVATE_TGT_RECOVERY) \ 18 -s $(PRIVATE_POLICY_FILES) > $@ 19endef 20.KATI_READONLY := transform-policy-to-conf 21