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 $@)
|
|
|
|
$(hide) m4 $(PRIVATE_ADDITIONAL_M4DEFS) \
|
|
|
|
-D mls_num_sens=$(PRIVATE_MLS_SENS) -D mls_num_cats=$(PRIVATE_MLS_CATS) \
|
|
|
|
-D target_build_variant=$(TARGET_BUILD_VARIANT) \
|
|
|
|
-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) \
|
2017-07-07 23:59:51 +02:00
|
|
|
$(PRIVATE_TGT_RECOVERY) \
|
|
|
|
-s $^ > $@
|
|
|
|
endef
|
|
|
|
.KATI_READONLY := transform-policy-to-conf
|