You are not allowed to add pages
Direct Link
Direct Link
sudo apt-get update sudo apt-get install binutils git git-lfs gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z1-dev ccache libgl1-mesa-dev libxml2-utils xsltproc unzip m4 bc gnutls-bin python3.8 python3-pip ruby repo docker.io
mkdir openharmony cd openharmony wget https://gitlab.com/firefly-linux/openharmony/oh_sdk_preinit/-/raw/master/sdk_init.sh chmod a+x sdk_init.sh
cd openharmony # 查找支持的设备 ./sdk_init.sh -l # 选择指定开发板 ./sdk_init.sh -b <BOARD_NAME>
cd openharmony repo init --repo-url=https://gitlab.com/firefly-linux/git-repo -u https://gitee.com/openharmony/manifest.git -b refs/tags/$(cat .tag_release) --no-clone-bundle repo sync -c --no-tags repo forall -c 'git lfs pull'
cd openharmony ./sdk_init.sh -p
cd openharmony ./sdk_init.sh -p
sudo groupadd docker #添加用户组 sudo gpasswd -a ${USER} docker #将当前用户添加至用户组 newgrp docker #更新用户组
docker pull swr.cn-south-1.myhuaweicloud.com/openharmony-docker/openharmony-docker:1.0.0
cd openharmony docker run --name openharmony -itd -v $(pwd):/home/openharmony swr.cn-south-1.myhuaweicloud.com/openharmony-docker/openharmony-docker:1.0.0
docker start openharmony docker exec -it openharmony /bin/bash
进入docker进行编译
# 进入docker docker exec -it openharmony /bin/bash # 下载工具链(首次编译必须) bash build/prebuilts_download.sh # 编译 ./build.sh --product-name rk3568 --ccache
编译完成之后,镜像在 out/rk3568/packages/phone/images/