1、编译前准备
1.1、安装git客户端和git-lfs并配置用户信息。
git config --global user.name "用户名"
git config --global user.email "邮箱名"
git config --global credential.helper store
1.2、执行如下命令安装码云repo工具。
下述命令中的安装路径以"~/bin"为例,请用户自行创建所需目录。
mkdir ~/bin
curl https://gitee.com/oschina/repo/raw/fork_flow/repo-py3 -o ~/bin/repo
chmod a+x ~/bin/repo
pip3 install -i Simple Index requests
1.3、将repo添加到环境变量。
vim ~/.bashrc # 编辑环境变量
export PATH=~/bin:$PATH # 在环境变量的最后添加一行repo路径信息
source ~/.bashrc # 应用环境变量
2、编译RK3568
2.1 初始化manifest
repo init -u OpenHarmony/manifest -b master --no-repo-verify
2.2更新文件
repo sync -c -j32
2.3更新lfs 文件
repo forall -c 'git-lfs pull'
2.4预编译
build/prebuilts_download.sh
2.5全量编译rk3568
./build.sh --product-name rk3568 --ccache
2.6模块编译(graphic_2d 模块名)
./build.sh --product-name rk3568 --build-target graphic_2d --fast-rebuild
2.7编译TDD
./build.sh --product-name rk3568 --ccache --build-target foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest:unittest
2.8编译sdk
./build.sh --product-name ohos-sdk --gn-args full_mini_debug=false



2506

被折叠的 条评论
为什么被折叠?



