fix: add macro to control the build of sysroot

close #I53VW6

Signed-off-by: Haryslee <lihao189@huawei.com>
Change-Id: I45d625e74e7d7d70f3ceaf1ca12eae5fe75b5f35
This commit is contained in:
Haryslee
2022-04-21 19:16:02 +08:00
parent a20b9df227
commit 7cf21be11c
+4 -1
View File
@@ -30,7 +30,10 @@
group("sysroot") {
print("ohos_build_compiler:", ohos_build_compiler)
print("ohos_kernel_type:", ohos_kernel_type)
if (ohos_kernel_type != "liteos_m") {
# Mini system of liteos_a needs not prepare for build, so set "kernel_is_prebuilt is true" in
# config.json to avoid it.
if (ohos_kernel_type != "liteos_m" && !ohos_kernel_is_prebuilt) {
deps = [ "build" ]
} else if (!ohos_kernel_is_prebuilt) {
all_dependent_configs = [