BBLAYERS ?= " \
${HOME}/yocto/poky/meta \
${HOME}/yocto/poky/meta-poky \
${HOME}/yocto/poky/meta-openembedded/meta-webserver \
${HOME}/yocto/poky/meta-openembedded/meta-gnome \
${HOME}/yocto/poky/meta-openembedded/meta-xfce \
${HOME}/yocto/poky/meta-openembedded/meta-initramfs \
${HOME}/yocto/poky/meta-openembedded/meta-multimedia \
${HOME}/yocto/poky/meta-openembedded/meta-filesystems \
${HOME}/yocto/poky/meta-openembedded/meta-perl \
${HOME}/yocto/poky/meta-openembedded/meta-oe \
${HOME}/yocto/poky/meta-openembedded/meta-networking \
${HOME}/yocto/poky/meta-openembedded/meta-python \
${HOME}/yocto/poky/meta-qt5 \
${HOME}/yocto/poky/meta-stm32mp1 \
Note: Please adapt PATH of conf/bblayers.conf if necessary.
5. Modify or align following elements in local.conf(located in ~/yocto/build/stm32mp157a-visionsom/conf) file
MACHINE ??= "stm32mp157c-visionsom"
DL_DIR = "${HOME}/yocto/downloads"
SSTATE_DIR = "${HOME}/yocto/sstate-cache"
TMPDIR = "${HOME}/yocto/tmp"
RM_OLD_IMAGE = "1"
INHERIT += "rm_work"
Note: Please adapt rest of conf/local.conf parameters if necessary.
6. Build objects
Issue from console one of the following option
qt5 image
bitbake qt5-image
qt5 toolchain sdk
bitbake meta-toolchain-qt5
7. After a couple of hours, 😉 the image should be ready
8. Create image for SD-Card using a dedicated script. So type
gunzip -c ~/yocto/tmp/deploy/images/stm32mp157c-visionsom/qt5-image-stm32mp157c-visionsom-xxx.rootfs.wic.gz | sudo dd of=/dev/mmcblk0 bs=1M iflag=fullblock oflag=direct conv=fsync
NOTE: Only thing to do is replace if necessary of=/dev/mmcblk0 to of=/dev/sdx for instance. Be aware wrong specification of “of=/dev/..” can damage Your local system, check twice !. To check where the SD-Card is connected “df -h” command can be useful
9. Next, compile QT5 toolchain in Yocto.
bitbake meta-toolchain-qt5
NOTE: During compilation some WARNINGS can appears
10. Next step is to install SDK into the system. Go to directory
cd tmp/deploy/sdk/
11. The Last thing to do is create Kit for STM32 into the QTCreator application. Please refer to the following article and apply accordingly