Yocto sdk for ARM and docker client to cross compile into container images
497
Image to cross compile code for ARM using the yocto sdk. Includes docker so that container images can be created from build result.
Includes a cross compile compatible version of ldd from
https://gist.github.com/jerome-pouiller/c403786c1394f53f44a3b61214489e6f to figure out what libraries
should be in an image. This version is at /bin/xldd and should be executed with the sysroot as an
argument, i.e. xldd --root /opt/poky/2.4.2/sysroots/cortexa8hf-neon-poky-linux-gnueabi.
Also useful (but not included) is the extractDynamicLibs.sh script which can pull out those libraries into a single directory for addition to the docker image.
Currently provides the toolchain for Yocto 2.5 for the following architectures:
The Dockerfile for each of these is in the relevant directory, the tag on docker hub matches the name.
Start a container and you will have a shell. Before doing anything else you will need to source the environment script:
source /opt/poky/2.5/environment-setup-<arch>-poky-linux-gnueabi
You should then have CMake available, and the correct compiler commands stored in the $CC and $CXX variables. When using CMake, it automatically uses the compiler referenced in those variables.
Content type
Image
Digest
Size
775.3 MB
Last updated
over 8 years ago
docker pull markgrimes/yocto-sdk