support extra args

Signed-off-by: steven_q <qichanggui@huawei.com>
Change-Id: Ibd71edf7128ecf6f5bffcdd688aa634adf67845f
This commit is contained in:
steven_q 2023-06-01 14:57:42 +00:00
parent ba6f6962d4
commit 81fd7ad2be
2 changed files with 15 additions and 0 deletions

View File

@ -368,6 +368,13 @@ action("build_policy") {
"--components",
components,
]
if (extra_args != "default") {
foreach(arg, string_split(extra_args, " ")) {
args += [ arg ]
}
}
deps = [
"$THIRD_PARTY_DIR/selinux:checkpolicy($host_toolchain)",
"$THIRD_PARTY_DIR/selinux:secilc($host_toolchain)",
@ -426,6 +433,13 @@ action("build_update_policy") {
"--components",
components,
]
if (extra_args != "default") {
foreach(arg, string_split(extra_args, " ")) {
args += [ arg ]
}
}
deps = [
"$THIRD_PARTY_DIR/selinux:checkpolicy($host_toolchain)",
"$THIRD_PARTY_DIR/selinux:secilc($host_toolchain)",

View File

@ -18,6 +18,7 @@ declare_args() {
selinux_build_path = "default"
components = "default"
special_build_policy_script = "default"
extra_args = "default"
}
declare_args() {