blob: 4b9e0989b8a69db791387d3346586626309f59c9 [file] [log] [blame]
Dan Cashman36ee91d2017-07-07 14:59:51 -07001# 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) \
Joel Galenson053cb342018-03-07 15:36:29 -08007 -D target_build_variant=$(PRIVATE_TARGET_BUILD_VARIANT) \
Dan Cashman36ee91d2017-07-07 14:59:51 -07008 -D target_with_dexpreopt=$(WITH_DEXPREOPT) \
9 -D target_arch=$(PRIVATE_TGT_ARCH) \
10 -D target_with_asan=$(PRIVATE_TGT_WITH_ASAN) \
Steven Moreland763697d2017-11-09 11:24:56 -080011 -D target_full_treble=$(PRIVATE_SEPOLICY_SPLIT) \
Jaekyun Seoke4971452017-10-19 16:54:49 +090012 -D target_compatible_property=$(PRIVATE_COMPATIBLE_PROPERTY) \
Dan Cashman36ee91d2017-07-07 14:59:51 -070013 $(PRIVATE_TGT_RECOVERY) \
14 -s $^ > $@
15endef
16.KATI_READONLY := transform-policy-to-conf