2017-07-07 23:59:51 +02:00
|
|
|
# Command to turn collection of policy files into a policy.conf file to be
|
|
|
|
# processed by checkpolicy
|
|
|
|
define transform-policy-to-conf
|
|
|
|
@mkdir -p $(dir $@)
|
2018-08-15 18:55:27 +02:00
|
|
|
$(hide) m4 --fatal-warnings $(PRIVATE_ADDITIONAL_M4DEFS) \
|
2017-07-07 23:59:51 +02:00
|
|
|
-D mls_num_sens=$(PRIVATE_MLS_SENS) -D mls_num_cats=$(PRIVATE_MLS_CATS) \
|
2018-03-08 00:36:29 +01:00
|
|
|
-D target_build_variant=$(PRIVATE_TARGET_BUILD_VARIANT) \
|
2017-07-07 23:59:51 +02:00
|
|
|
-D target_with_dexpreopt=$(WITH_DEXPREOPT) \
|
|
|
|
-D target_arch=$(PRIVATE_TGT_ARCH) \
|
|
|
|
-D target_with_asan=$(PRIVATE_TGT_WITH_ASAN) \
|
2017-11-09 20:24:56 +01:00
|
|
|
-D target_full_treble=$(PRIVATE_SEPOLICY_SPLIT) \
|
2017-10-19 09:54:49 +02:00
|
|
|
-D target_compatible_property=$(PRIVATE_COMPATIBLE_PROPERTY) \
|
2018-06-05 23:11:08 +02:00
|
|
|
-D target_exclude_build_test=$(PRIVATE_EXCLUDE_BUILD_TEST) \
|
2017-07-07 23:59:51 +02:00
|
|
|
$(PRIVATE_TGT_RECOVERY) \
|
|
|
|
-s $^ > $@
|
|
|
|
endef
|
|
|
|
.KATI_READONLY := transform-policy-to-conf
|