Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save beriberikix/4b7f4b7b0e4137266ac546c6a140a0ea to your computer and use it in GitHub Desktop.
Save beriberikix/4b7f4b7b0e4137266ac546c6a140a0ea to your computer and use it in GitHub Desktop.
Fastest way to try out Yocto
## Useful links
# https://docs.yoctoproject.org/brief-yoctoprojectqs/index.html
# https://github.com/crops/poky-container
# https://ubs_csse.gitlab.io/secu_os/tutorials/crops_yocto.html
Install Docker and QEMU on the host
mkdir -p /home/jberi/yocto
docker run --rm -it -v /home/jberi/yocto:/workdir crops/poky --workdir=/workdir
git clone git://git.yoctoproject.org/poky
cd poky
git checkout -t origin/scarthgap -b my-scarthgap
git pull
source oe-init-build-env
# add to `/build/conf/local.conf`
BB_NUMBER_THREADS = "8"
PARALLEL_MAKE = "-j 8"
bitbake core-image-minimal
# On the host
cd /home/jberi/yocto/poky
source oe-init-build-env
runqemu qemux86-64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment