Add new goal for compat file generator
To generate compat files, we need the following files. - base_plat_sepolicy: to get all types - base_plat_pub_policy.cil: to get public types - {ver}_plat_sepolicy: to get old types This creates a new dist goal, base-sepolicy-files-for-mapping, to conveniently generate and gather desired files under out/dist. Bug: 214336258 Test: build/soong/soong_ui.bash --make-mode dist \ base-sepolicy-files-for-mapping \ TARGET_PRODUCT=aosp_arm64 TARGET_BUILD_VARIANT=userdebug Change-Id: I2f210ab47be777cd91346d635f75064845821144
This commit is contained in:
parent
2413e27cc6
commit
eec3919969
2 changed files with 12 additions and 0 deletions
|
@ -865,6 +865,9 @@ precompiled_se_policy_binary {
|
|||
"sepolicy_neverallows",
|
||||
"sepolicy_neverallows_vendor",
|
||||
],
|
||||
dist: {
|
||||
targets: ["base-sepolicy-files-for-mapping"],
|
||||
},
|
||||
}
|
||||
|
||||
// policy for recovery
|
||||
|
@ -933,6 +936,9 @@ se_policy_binary {
|
|||
name: "base_plat_sepolicy",
|
||||
srcs: [":base_plat_sepolicy.cil"],
|
||||
installable: false,
|
||||
dist: {
|
||||
targets: ["base-sepolicy-files-for-mapping"],
|
||||
},
|
||||
}
|
||||
|
||||
se_policy_conf {
|
||||
|
@ -1003,6 +1009,9 @@ se_policy_cil {
|
|||
filter_out: [":reqd_policy_mask.cil"],
|
||||
secilc_check: false,
|
||||
installable: false,
|
||||
dist: {
|
||||
targets: ["base-sepolicy-files-for-mapping"],
|
||||
},
|
||||
}
|
||||
|
||||
se_policy_conf {
|
||||
|
|
|
@ -85,6 +85,9 @@ $(built_$(version)_plat_sepolicy): $($(version)_plat_policy.conf) $(HOST_OUT_EXE
|
|||
$(hide) cat $(PRIVATE_ADDITIONAL_CIL_FILES) >> $@
|
||||
$(hide) $(HOST_OUT_EXECUTABLES)/secilc -m -M true -G -c $(POLICYVERS) $(PRIVATE_NEVERALLOW_ARG) $@ -o $@ -f /dev/null
|
||||
|
||||
# TODO(b/214336258): move to Soong
|
||||
$(call dist-for-goals,base-sepolicy-files-for-mapping,$(built_$(version)_plat_sepolicy):$(version)_plat_sepolicy)
|
||||
|
||||
$(version)_plat_policy.conf :=
|
||||
|
||||
# $(version)_compat - the current plat_sepolicy.cil built with the compatibility file
|
||||
|
|
Loading…
Reference in a new issue