diff --git a/BUILD.gn b/BUILD.gn index 07e7fc3f9f510aa16019f5dff4fe5fc70eb9f36f..073d508eb80818156c9e8f3b8167a837bb4c1e1e 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -45,7 +45,11 @@ if (tee_enable) { tee = "_tee" } -liteos_config_file = "$product_path/kernel_configs/${ohos_build_type}${tee}.config" +declare_args() { + liteos_config_file = "${ohos_build_type}${tee}.config" +} + +liteos_config_file = rebase_path(liteos_config_file, "", "$product_path/kernel_configs") print("liteos_config_file:", liteos_config_file) exec_script("//build/lite/run_shell_cmd.py",