Ensure you have repo installed and included to PATH:
$ mkdir -p ~/bin
$ PATH="${HOME}/bin:${PATH}"
$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
$ chmod a+rx ~/bin/repo
Of course you can install it from your distro repositories instead of installing it from sources:
OpenSUSE
$ sudo zypper install -y repo
Ubuntu
$ sudo apt install repo -y
Now, you can start the environment:
mkdir dunfell && cd dunfell
$ repo init -u https://github.com/ronaldonunez/respberrypi-yocto-repo.git -b dunfell
$ repo sync
$ source sources/poky/oe-init-build-env rpi-build
$ bitbake-layers add-layer ../sources/meta-openembedded/meta-{oe,python,networking,multimedia} ../sources/meta-raspberrypi/
Change conf/local.conf variables as below:
MACHINE ??= "raspberrypi3-64" # Check options at meta-raspberrypi/conf/machines/
IMAGE_FSTYPES_append = " rpi-sdimg" # Build sdcard image
ENABLE_UART = "1" # Enable UART Console
Build an image and enjoy it:
$ bitbake core-image-minimal
Based on the work done at fsl-community-bsp-platform