From 88fe4eb3e1eafa6d1e32c7b96579a07f5a8c6e35 Mon Sep 17 00:00:00 2001 From: yuanbo Date: Tue, 22 Jun 2021 15:18:35 +0800 Subject: [PATCH] fix: add product_path parameter for driver build Driver use product_path in hb env as hcs config root path by default. If it's not exit, try to use device config path. close: #I3PQ10 Signed-off-by: yuanbo --- BUILD.gn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BUILD.gn b/BUILD.gn index 5ef86eac..31799019 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -79,5 +79,5 @@ build_ext_component("make") { } prebuilts = "sh build.sh ${board_name} ${ohos_build_compiler} ${root_build_dir} ${ohos_build_type} ${tee_enable} \"${device_company}\" \"${product_path}\"" outdir = rebase_path(get_path_info(".", "out_dir")) - command = "make clean OUTDIR=$outdir && make rootfs VERSION=\"${ohos_version}\" -j 16 OUTDIR=$outdir" + command = "make clean OUTDIR=$outdir PRODUCT_PATH=\"${product_path}\" && make rootfs VERSION=\"${ohos_version}\" PRODUCT_PATH=\"${product_path}\" -j 16 OUTDIR=$outdir" }