...
Prepare the Linux host for the build:
Code Block $ sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib \ build-essential chrpath socat cpio python python3 python3-pip python3-pexpect \ xz-utils debianutils iputils-ping libbz2-dev libz-dev python2.7 dfu-util libusb-1.0.0-dev $ sudo dpkg-reconfigure dash # Say "No" to not use "dash" as the default system shell. $ wget https://storage.googleapis.com/git-repo-downloads/repo $ chmod 755 repo $ sudo cp repo /usr/local/bin/
Clone the build script:
Code Block $ git clone -b imx-56.1.1522-32-vb https://github.com/voxelbotics/meta-vb-imx8mp.git
Checkout an appropriate release tag (e.g. 1.01.514-213446):
Code Block $ cd meta-vb-imx8mp $ git checkout 1.01.514-213446
Create directories for the Yocto cache and downloads:
Code Block $ sudo mkdir -p /home/cache/CACHE/56.151.3222/sstate-cache $ sudo mkdir -p /home/cache/CACHE/56.151.3222/downloads $ sudo chmod 777 /home/cache/CACHE/56.151.3222/sstate-cache /home/cache/CACHE/56.151.3222/downloads
3. Building Images
...
Code Block |
---|
$ sh meta-vb-imx8mp/scripts/build5build6-151-3222.sh -t 1.01.514-213446 ... |
4. Building a Specific Release
In the above example, the script will build from the 1.01.514-213446
release tag in the source repositories https://github.com/voxelbotics/meta-vb-imx8mp , https://github.com/voxelbotics/linux-imx , https://github.com/voxelbotics/u-boot-imx.
If you would like to build from the top-of-the trunk of the imx-56.151.3222-vb
development branches, run the script as below:
Code Block |
---|
$ cd meta-vb-imx-8mp $ git checkout imx-56.151.3222-vb $ cd .. $ sh meta-vb-imx8mp/scripts/build5build6-151-3222.sh -b imx-56.151.3222-vb ... |
5. Understanding Build Artifacts
...