mirror of
https://gitee.com/openharmony/device_hisilicon_modules
synced 2024-11-23 13:09:55 +00:00
21 lines
744 B
Plaintext
Executable File
21 lines
744 B
Plaintext
Executable File
# Copyright (c) Huawei Technologies Co., Ltd. 2020. All rights reserved.
|
|
|
|
import("//build/lite/config/component/lite_component.gni")
|
|
|
|
if (board_name == "hi3516dv300" || board_name == "hispark_taurus" ||
|
|
board_name == "aegis_hi3516dv300") {
|
|
board = "hi3516dv300"
|
|
} else if (board_name == "hi3518ev300" || board_name == "hispark_aries") {
|
|
board = "hi3518ev300"
|
|
}
|
|
|
|
build_ext_component("middleware_source_sdk") {
|
|
exec_path = rebase_path(".", root_build_dir)
|
|
outdir = rebase_path("$root_out_dir")
|
|
clang_dir = ""
|
|
if (ohos_build_compiler_dir != "") {
|
|
clang_dir = rebase_path("${ohos_build_compiler_dir}/bin")
|
|
}
|
|
command = "./build.sh ${outdir} ${board} ${ohos_kernel_type} ${ohos_build_compiler} ${storage_type} ${clang_dir}"
|
|
}
|