Building Emcraft Yocto Toolchain and Software Packages Collection |
|
The Emcraft Yocto distribution is based on Yocto 1.8.1 (Fido) release. Refer to this page for the list of supported build hosts.
Perform the following procedure to build the Emcraft Yocto distribution:
- On the Linux development host, download and unpack to an arbitrary directory the yocto source tarball from the Software tab of the Emcraft site.
- From the yocto-1.8.1-emcraft directory, clone the OpenEmbedded layer, release Fido:
$ cd yocto-1.8.1-emcraft $ git clone -b fido git://git.openembedded.org/meta-openembedded $ ls -l total 72 drwxrwxr-x. 6 psl psl 4096 Dec 9 19:06 bitbake drwxrwxr-x. 13 psl psl 4096 Dec 9 19:06 documentation -rw-rw-r--. 1 psl psl 515 Dec 9 19:06 LICENSE drwxrwxr-x. 21 psl psl 4096 Dec 9 19:06 meta drwxrwxr-x. 13 psl psl 4096 Dec 9 19:06 meta-emcraft drwxrwxr-x. 19 psl psl 4096 Jan 16 2017 meta-openembedded drwxrwxr-x. 5 psl psl 4096 Dec 9 19:06 meta-selftest drwxrwxr-x. 7 psl psl 4096 Dec 9 19:06 meta-skeleton drwxrwxr-x. 5 psl psl 4096 Dec 9 19:06 meta-yocto drwxrwxr-x. 8 psl psl 4096 Dec 9 19:06 meta-yocto-bsp -rwxrwxr-x. 1 psl psl 2000 Dec 9 19:06 oe-init-build-env -rwxrwxr-x. 1 psl psl 2432 Dec 9 19:06 oe-init-build-env-memres -rw-rw-r--. 1 psl psl 2458 Dec 9 19:06 README -rw-rw-r--. 1 psl psl 19318 Dec 9 19:06 README.hardware drwxrwxr-x. 9 psl psl 4096 Dec 9 19:06 scripts $
- Prepare the build directory:
$ TEMPLATECONF=meta-emcraft/conf source oe-init-build-env build $
- Append the meta-openembedded/meta-oe directory to the BBLAYERS variable in conf/bblayers.conf in your build directory:
BBLAYERS ?= " \
/path/to/yocto/meta \
...
/path/to/yocto/meta-openembedded/meta-oe \
"
Adjust the build configuration to your build host in conf/local.conf (eg point DL_DIR to a directory where the packages sources will be downloaded by the build. This directory could be shared among the multiple build directories).
Build the Yocto toolchain and packages:
$ bitbake meta-toolchain-qte core-image-qte-sdk ...
After the build, the results will be located in tmp/deploy/sdk and tmp/deploy/ipk:
$ ls -l tmp/deploy/sdk
total 692052
...
-rwxr-xr-x. 1 psl psl 708623506 Dec 4 14:06 poky-glibc-i686-meta-toolchain-
qte-cortexa5hf-vfp-neon-toolchain-qte-1.8.1.sh
$ ls -l tmp/deploy/ipk
total 680
drwxr-xr-x. 2 psl psl 4096 Dec 4 16:11 all
drwxr-xr-x. 2 psl psl 524288 Dec 4 16:11 cortexa5hf-vfp-neon
drwxr-xr-x. 2 psl psl 155648 Dec 4 16:11 i686-nativesdk
-rw-r--r--. 1 psl psl 0 Dec 4 13:56 Packages
drwxr-xr-x. 2 psl psl 4096 Dec 4 16:11 vf6_som
|