torizon / meta-toradex-torizon

Torizon OS OpenEmbedded Distro Layer
MIT License
6 stars 14 forks source link

kernel-devsrc.bbappend: support arm64 kernel 5.19+ on Kirkstone #6

Closed lucas-akira closed 8 months ago

lucas-akira commented 8 months ago

Adapted backport from Langdale. Add tool files in the kernel sources needed to build kernel 5.19+ on arm64. This should solve the issue where TorizonCore Builder isn't able to build kernel modules on current Verdin AM62 releases of Torizon OS, which have kernel 6.1.

Related-to: TCB-426

jsrc27 commented 8 months ago

On the original commit, I see they also added this for arm

cp -a --parents arch/arm/tools/gen-sysreg.awk $kerneldir/build/ 2>/dev/null || :

I guess we do not need this? I ask since our arm32 modules should also be on a kernel greater than 5.19.

lucas-akira commented 8 months ago

Good point, I ended up ignoring that because I thought it referred to powerpc on a quick glance.

I couldn't find gen-sysreg.awk in arch/arm/tools/ in upstream stable 6.1.y used in our current arm32 SoMs, but I think we should follow the original commit and put the copy command for arm as well, just to be sure.

If the file isn't present the copy command is ignored anyway, so that line shouldn't cause problems.