hiebpf仅root编译

Signed-off-by: ganchuantao <ganchuantao1@huawei.com>
Change-Id: Ic4b4b0ff6498a025deed0a5b1d66a71763075e1b
This commit is contained in:
ganchuantao 2024-09-02 20:33:57 +08:00
parent 1c4d5625dd
commit 2fee4f55a2
2 changed files with 9 additions and 5 deletions

View File

@ -147,10 +147,12 @@ ohos_executable("hiebpf") {
group("hiebpf_tool") {
if (current_toolchain == "//build/toolchain/ohos:ohos_clang_arm64") {
if (!is_asan && !is_tsan && use_musl) {
deps = [
":hiebpf",
":hiebpf.bpf",
]
if (build_variant == "root") {
deps = [
":hiebpf",
":hiebpf.bpf",
]
}
}
}
}

View File

@ -64,7 +64,9 @@ ohos_unittest("hiebpf_ut") {
group("unittest") {
testonly = true
if (target_cpu == "arm64" && !is_asan && use_musl) {
deps = [ ":hiebpf_ut" ]
if (build_variant == "root") {
deps = [ ":hiebpf_ut" ]
}
}
}