https://gitee.com/openharmony-dg/device_board_qualcomm/blob/OpenHarmony-5.0-Release/oneplus_fajita/README_zh.md
repo init -u https://gitee.com/openharmony/manifest.git -b OpenHarmony-5.0.0-Release --no-repo-verify
repo sync -c
repo forall -c 'git lfs pull'
git clone https://gitee.com/openharmony-dg/device_board_qualcomm device/board/qualcomm -b OpenHarmony-5.0-Release
git clone https://gitee.com/openharmony-dg/vendor_qualcomm vendor/qualcomm -b OpenHarmony-5.0-Release
git clone https://gitee.com/openharmony-dg/device_soc_qualcomm device/soc/qualcomm -b OpenHarmony-5.0-Release
git clone https://gitee.com/openharmony-dg/kernel_linux_6.3 kernel/linux/linux-6.3 -b OpenHarmony-5.0-Release
cd device/board/qualcomm/oneplus_fajita/resource/patch/
git apply ability_runtime.patch
git apply appspawn.patch
git apply graphic_2d.patch
curl -o build/compile_standard_whitelist.json https://gitee.com/openharmony-dg/build/raw/OpenHarmony-5.0-Release/compile_standard_whitelist.json
执行 prebuilts
在源码根目录下执行脚本,安装编译器及二进制工具:
bash build/prebuilts_download.sh
下载的 prebuilts
二进制默认存放在与 OpenHarmony 同目录下的 OpenHarmony_2.0_canary_prebuilts 下。
编译与调试
1、编译
在Linux环境进行如下操作:
1) 进入源码根目录,执行如下命令进行版本编译:
./build.sh --product-name oneplus_fajita –ccache --gn-args is_use_check_deps=false --disable-package-image --gn-args --enable_notice_collection=false
2) 检查编译结果。编译完成后,log中显示如下:
[OHOS INFO] oneplus_fajita build success
[OHOS INFO] cost time: 0:20:30
=====build successful=====
2024-11-15 18:30:25
编译所生成的文件都归档在out/oneplus_fajita/目录下,结果镜像输出在
out/oneplus_fajita/packages/phone/images/ 目录下。
Docker
docker run -it -v $(pwd):/home/openharmony swr.cn-south-1.myhuaweicloud.com/openharmony-docker/docker_oh_standard:3.2