Looked at the skyhead Yocto repo for IMX and found that this issue is not fixed in there. Since I am just starting off with Yocto perhaps my interpretation is wrong. So as I estimate, with the NXP skyhead Yocto repo the build will fail on onnxruntime as well.
NXP uses own onnxruntime repo which version is directly linked to the Yotco image version:
NXP IMX scarthgap 6.6.36.2.1.0 Yocto
meta-imx/meta-imx-ml/recipes-libraries/onnxruntime/onnxruntime_1.17.1.bb
ONNXRUNTIME_SRC ?= "gitsm://github.com/nxp-imx/onnxruntime-imx.git;protocol=https"
SRCBRANCH = "lf-6.6.36_2.1.0"
SRCREV = "813b93f64103847a21227725cb5ab04b6ca5b5ed"
The onnx repo points to the specific onnx repo which has the faulty cmake depts.txt with eigen
onnxruntime-imx/cmake/deps.txt
eigen;https://gitlab.com/libeigen/eigen/-/archive/e7248b26a1ed53fa030c5c459f7ea095dfd276ac/eigen-e7248b26a...
NXP IMX skyhead 6.12.3.1.0 Yocto
meta-imx/meta-imx-ml/recipes-libraries/onnxruntime/onnxruntime_1.17.1.bb
ONNXRUNTIME_SRC ?= "gitsm://github.com/nxp-imx/onnxruntime-imx.git;protocol=https"
SRCBRANCH = "lf-6.12.3_1.0.0"
SRCREV = "3616ba2f9cd2b7b882252a95e171f0c0c0f1826f"
In imx skyhead Yocto repo the onnxruntime is still the faulty one as well
eigen;https://gitlab.com/libeigen/eigen/-/archive/e7248b26a1ed53fa030c5c459f7ea095dfd276ac/eigen-e7248b26a...
There is a newer NXP imx onnxruntime branch lf.6.12.20-2.00 that has the correct eigen checksum for cmake devs.txt
but this has not been included in NXP's the latest Yocto skyhead repo
eigen;https://gitlab.com/libeigen/eigen/-/archive/1d8b82b0740839c0de7f1242a3585e3390ff5f33/eigen-1d8b82b07...