代码拉取完成,页面将自动刷新
备忘录
sudo apt-get install genext2fs
sudo apt-get install liblz4-tool
sudo apt-get install libtinfo5
repo init -u git@gitee.com:openharmony/manifest.git -b master --no-repo-verify
repo sync -c
repo forall -c 'git lfs pull'
./build.sh --product-name Hi3516DV300
./build.sh --product-name rk3568
format gn
~/code/openhm/dev_master/prebuilts/build-tools/linux-x86/bin/gn format BUILD.gn
修改 Hosts 解决 Github 访问
生成compile_commands.json用于clangd解析
ninja -C out/hi3516dv300/ -t compdb cxx cc > out/hi3516dv300/compile_commands.json
ln -s out/hi3516dv300/compile_commands.json compile_commands.json
ninja -C out/rk3568/ -t compdb cxx cc > out/rk3568/compile_commands.json
ln -s out/rk3568/compile_commands.json compile_commands.json
git 同步 upstream 操作
git remote add upstream https://gitee.com/openharmony/third_party_egl.git
git remote set-url --push upstream no_push
git fetch upstream
git checkout master
git rebase upstream/master
git push https://gitee.com/码云账号/仓名 分支名:refs/heads/远程分支名
git push https://gitee.com/stonesxd/graphic_standard feature_1:refs/heads/feature_0105
git push -f https://gitee.com/stonesxd/graphic_standard feature_1:refs/heads/feature_0105
重置oh编译环境
安装依赖包: unix_time=`date '+%s'`;for one_tools in `curl -s -k https://gitee.com/landwind/openharmony_oneclick_env_init/raw/master/apt_install.list`;do echo "apt-get install -y ${one_tools}">>/tmp/openharmony_deps_${unix_time}.sh; done;sudo apt-get update;sudo bash -x /tmp/openharmony_deps_${unix_time}.sh
删除out: rm -rf out
重置工作区,删除所有修改(记得备份你改的代码): repo forall -c "pwd;git reset --hard; git clean -fd"
更新最新代码: repo sync -c -j8; repo forall -c "pwd;git lfs install;git lfs pull"
执行prebuilts下载脚本: bash build/prebuilts_download.sh
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。