Build a Harp image
Here are four steps to build a Harp image for ARTiGO-950.
Step 1. Download the source code.
$ mkdir ~/workdir
$ cd ~/workdir
$ git config --global user.email "YourName@via.com.tw"
$ git config --global user.name "Your Name"
$ git config --global credential.helper 'cache --timeout 86400'
$ repo init \
-u http://mce-tfs03:8080/tfs/DefaultCollection/Yocto/_git/platform_manifest.git \
-b harp-21.10 -m harp-21.10.xml
$ repo sync
Step 2. Download the docker image.
$ sudo usermod -aG docker $USER
$ printf '{\n "insecure-registries" : ["10.5.63.151:5000"]\n}\n' \
| sudo tee -a /etc/docker/daemon.json
$ docker pull 10.5.63.151:5000/experimental/harp-builder
Step 3. Enter the docker container.
$ docker run -it --rm -v ~/workdir:/workdir \
--add-host='mce-tfs03:10.5.254.99' \
10.5.63.151:5000/experimental/harp-builder \
--workdir=/workdir
Step 4. Compile the source code.
$ cd /workdir
$ export TEMPLATECONF=${PWD}/meta/meta-harp/conf/base/aiv8385-linux.aiot-emmc_k414
$ source meta/poky/oe-init-build-env
$ bitbake mtk-image-openmm-aiv
$ ls -l tmp/deploy/images/aiv8385-linux.aiot-emmc_k414/
$ (cd tmp/deploy/images/aiv8385-linux.aiot-emmc_k414/ && \
zip -r ../../../../harp-21.10-images~$(date +%Y%m%d-%H%M).zip .)
Congrats! You have built a Harp image successfully!