definitions.mk 814 B

123456789101112131415161718
  1. # Command to turn collection of policy files into a policy.conf file to be
  2. # processed by checkpolicy
  3. define 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_exclude_build_test=$(PRIVATE_EXCLUDE_BUILD_TEST) \
  15. $(PRIVATE_TGT_RECOVERY) \
  16. -s $^ > $@
  17. endef
  18. .KATI_READONLY := transform-policy-to-conf