3 Star 0 Fork 102

Temporary_use_for_openharmony/device_hisilicon_hardware

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
build.sh 1.03 KB
一键复制 编辑 原始数据 按行查看 历史
mamingshuai 提交于 2021-03-11 18:46 . update openharmony 1.0.1
#!/bin/bash
# Copyright 2020-2020, Huawei Technologies Co. Ltd.
#
# ALL RIGHTS RESERVED
#
# Compile mpp/sample project, this is the entrance script
# error out on errors
set -e
OUT_DIR="$1"
BOARD_NAME="$2"
HOS_KERNEL_TYPE="$3"
HOS_BUILD_COMPILER="$4"
STORAGE_TYPE="$5"
function main(){
CUR_DIR=$(cd $(dirname "$0");pwd)
COMPILER_TYPE=$HOS_BUILD_COMPILER
if [ "$HOS_BUILD_COMPILER" == "clang" ]; then
COMPILER_TYPE=llvm
fi
cd $CUR_DIR/media
if [ "$HOS_KERNEL_TYPE" == "liteos_a" ]; then
if [ "$COMPILER_TYPE" == "llvm" ]; then
./build.sh $OUT_DIR $BOARD_NAME $HOS_KERNEL_TYPE $COMPILER_TYPE
else
./build.sh $OUT_DIR $BOARD_NAME $HOS_KERNEL_TYPE $COMPILER_TYPE
fi
elif [ "$HOS_KERNEL_TYPE" == "linux" ]; then
if [ "$STORAGE_TYPE" == "emmc" ]; then
./build.sh $OUT_DIR $BOARD_NAME $HOS_KERNEL_TYPE $COMPILER_TYPE
else
./build.sh $OUT_DIR $BOARD_NAME $HOS_KERNEL_TYPE $COMPILER_TYPE
fi
fi
cd $CUR_DIR
}
main "$@"
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/temporary_use_for_openharmony/device_hisilicon_hardware.git
git@gitee.com:temporary_use_for_openharmony/device_hisilicon_hardware.git
temporary_use_for_openharmony
device_hisilicon_hardware
device_hisilicon_hardware
master

搜索帮助