代码拉取完成,页面将自动刷新
mkdir -p ~/OpenHarmony/master
cd ~/OpenHarmony/master
repo init -u https://gitee.com/openharmony/manifest.git -b master --no-repo-verify
repo sync -c
repo forall -c 'git lfs pull'
repo start master --all
bash ./build/prebuilts_download.sh
rm ../OpenHarmony_canary_prebuilts -rf
mkdir -p ~/OpenHarmony/OpenHarmony-v3.0-LTS
cd ~/OpenHarmony/OpenHarmony-v3.0-LTS
repo init -u https://gitee.com/openharmony/manifest.git -b refs/tags/OpenHarmony-v3.0-LTS --no-repo-verify
repo sync -c
repo forall -c 'git lfs pull'
bash ./build/prebuilts_download.sh
rm ../OpenHarmony_canary_prebuilts -rf
mkdir -p ~/OpenHarmony/OpenHarmony-3.2-Beta2
cd ~/OpenHarmony/OpenHarmony-3.2-Beta2
repo init -u https://gitee.com/openharmony/manifest -b OpenHarmony-3.2-Beta2 --no-repo-verify
repo sync -c
repo forall -c 'git lfs pull'
repo start OpenHarmony-3.2-Beta2 --all
bash ./build/prebuilts_download.sh
rm ../OpenHarmony_canary_prebuilts -rf
mkdir -p ~/OpenHarmony/OpenHarmony-3.2-Beta3
cd ~/OpenHarmony/OpenHarmony-3.2-Beta3
repo init -u https://gitee.com/openharmony/manifest -b OpenHarmony-3.2-Beta3 --no-repo-verify
repo sync -c
repo forall -c 'git lfs pull'
repo start OpenHarmony-3.2-Beta3 --all
bash ./build/prebuilts_download.sh
rm ../OpenHarmony_canary_prebuilts -rf
# 拉取代码
repo init -u https://10.20.14.6/gitlab.com/ohos_thead/manifest.git -b OpenHarmony-3.2-Beta2 -m thead_develop.xml --no-repo-verify
repo sync -c
repo forall -c 'git lfs pull'
repo start OpenHarmony-3.2-Beta2 --all
bash ./build/prebuilts_download.sh
rm ../OpenHarmony_2.0_canary_prebuilts -rf
开发过程中建议单模块编译
# 全量代码编译
./build.sh --product-name c9xx --ccache
# 单模块编译
# module_name举例:"kernel:kernel",表示编译kernel目录下的kernel模块,所有后面的kernel是module_name
./build.sh --product-name c9xx --ccache --build-target module
# 内核模块编译
# 方法一:单模块编译
./build.sh --product-name c9xx --ccache --build-target kernel
# 方法二:手动编译
cd device/thead/c9xx/kernel
./build_kernel_single.sh
# unittest测试用例编译
clear; bear ./build.sh --product-name c9xx --gn-args full_mini_debug=false --build-target test_convertxml_unittest --ccache
待补充
OpenHarmony for riscv交叉编译工具链实现
repo init -u https://gitee.com/iscas-taiyang/manifest.git -m OH-3.0-riscv64.xml --no-repo-verify
repo sync -c
repo forall -c 'git lfs pull'
bash ./build/prebuilts_download.sh
rm ../OpenHarmony_canary_prebuilts -rf
# ohos-riscv64框架代码编译不带内核
./build.sh --product-name ohos-riscv64 --ccache
# 哪吒D1构建
./build.sh --product-name sunxi_d1 --ccache
repo init -u https://gitee.com/iscas-taiyang/manifest.git -b OpenHarmony-3.2-Beta2 -m ohos-rv64.xml --no-repo-verify
repo sync -c
repo forall -c 'git lfs pull'
bash ./build/prebuilts_download.sh
rm ../OpenHarmony_canary_prebuilts -rf
Note: docker安装方法
# 获取镜像
docker pull swr.cn-south-1.myhuaweicloud.com/openharmony-docker/openharmony-docker-standard:0.0.4
# 进入docker构建环境方法
docker run -it -v $(pwd):/home/openharmony swr.cn-south-1.myhuaweicloud.com/openharmony-docker/openharmony-docker-standard:0.0.4
strings /lib/x86_64-linux-gnu/libm.so.6 | grep GLIBC_
sudo apt-get install linuxbrew-wrapper
brew install genometools
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。