I am evaluating whether it’s worth upgrading our application from BSP5 6o BSP6. Following
Build a Reference Image with Yocto Project/OpenEmbedded | Toradex Developer Center, only changed conf/local.conf for imx6ull-colibri.
All the steps
repo init -u git://git.toradex.com/toradex-manifest.git -b kirkstone-6.x.y -m tdxref/default.xml
repo sync
. export
bitbake tdx-reference-minimal-image
complete with just two warning: One that meta-tmp layer is included but not enabled, another that Debian-12 has not been validated (although Yocto page lists it). The generated image boots on the evaluation board without issues, with Kernel 6.1.142.
The issue comes when I tried to rebuild the kernel to include some needed features and DTS changes. After
bitbake virtual/kernel -c devshell
make mrproper
make menuconfig
make fails early in the process with
In file included from~/oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.142+gitAUTOINC+7e69c33e48-r0/recipe-sysroot-native/usr/lib/arm-tdx-linux-gnueabi/gcc/arm-tdx-linux-gnueabi/11.5.0/plugin/include/gcc-plugin.h:28,
from ~/oe-core/build/tmp/work-shared/colibri-imx6ull/kernel-source/scripts/gcc-plugins/gcc-common.h:7,
from ~/oe-core/build/tmp/work-shared/colibri-imx6ull/kernel-source/scripts/gcc-plugins/arm_ssp_per_task_plugin.c:3:
oe-core/build/tmp/work/colibri_imx6ull-tdx-linux-gnueabi/linux-toradex-mainline/6.1.142+gitAUTOINC+7e69c33e48-r0/recipe-sysroot-native/usr/lib/arm-tdx-linux-gnueabi/gcc/arm-tdx-linux-gnueabi/11.5.0/plugin/include/system.h:695:10: fatal error: gmp.h: No such file or directory
695 | #include <gmp.h>
| ^~~~~~~
“make menuconfig” was executed just once, without any changes.
Out of curiosity, I regenerated the setup with only change being selection of verdin-imx8mp module which I have available. bitbake completed, but selected kernel 5.15.183, where kernel recompile goes without issues.
So, my question is: What I need to change in order for BSP 6, Kernel 6.x.y to be buildable?