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 $(PRIVATE_ADDITIONAL_M4DEFS) \ 6 -D mls_num_sens=$(PRIVATE_MLS_SENS) -D mls_num_cats=$(PRIVATE_MLS_CATS) \ 7 -D target_build_variant=$(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_full_treble=$(PRIVATE_FULL_TREBLE) \ 12 $(PRIVATE_TGT_RECOVERY) \ 13 -s $^ > $@ 14endef 15.KATI_READONLY := transform-policy-to-conf 16