- Open linux env
To start with I am using Multipass.
https://docs.yoctoproject.org/brief-yoctoprojectqs/index.html#build-host-packages
$> sudo apt install gawk wget git diffstat unzip texinfo gcc build-essential chrpath socat cpio python3 python3-pip python3-pexpect xz-utils debianutils iputils-ping python3-git python3-jinja2 python3-sphinx libegl1-mesa libsdl1.2-dev python3-subunit mesa-common-dev zstd liblz4-tool file locales libacl1
$> sudo locale-gen en_US.UTF-8
$> git clone git://git.yoctoproject.org/poky
$> cd poky
$> git checkout -t origin/nanbield -b my-nanbield
$> source oe-init-build-env
Add bitbake to your path
For instance, I have the following lines in my .zshrc
export POKY_HOME=~/src/git.yoctoproject.org/poky
export PATH=$PATH:$POKY_HOME/bitbake/bin
$> cd build
$> bitbake core-image-full-cmdline
This comes from Setting up the Extensible SDK environment directly in a Yocto build
$> bitbake meta-ide-support
$> bitbake -c populate_sysroot gtk+3
$> cd [source]
$> source oe-init-build-env build
$> runqemu qemux86-64