edison-fw / meta-intel-edison

Here is the meta-intel-edison that builds, tries to stay up to date. Master is based on Yocto Poky Gatesgarth LTS 5.10.yy vanilla kernels. It builds a 32bit kernel (Gatesgarth branch 64bit) with ACPI enabled and corresponding rootfs. Telegram group: https://t.me/IntelEdison Web-site:
https://edison-fw.github.io/meta-intel-edison/
MIT License
60 stars 37 forks source link

[Kirkstone] missing elfutils-native while building linux-yocto #159

Closed htot closed 5 months ago

htot commented 6 months ago

Léo Sartre sartre.leo@gmail.com reports:

I had to add: DEPENDS += "elfutils-native" on meta-intel-edison-bsp/recipes-kernel/linux/linux-yocto_6.1.y.bb to fix a missing #include out/linux64/build/tmp/work-shared/edison/kernel-source/tools/objtool/include/objtool/elf.h:10:10: fatal error: gelf.h: No such file or directory

I only needed elfutils-native dependency to fix the build issue. I've checked the git history and it seems that the kirkstone branch miss this patch that is merged on master: https://git.yoctoproject.org/poky/commit/?id=7aad4c963c05a2ea987fdccf4e82e47a39226db8

With 4e21acf19740d4604cf67d8d0e70188744a65dfc we had started dropping this, apparently too soon.

Instead of fixing all the kernel recipes it seems best to put a Kirstone only patch for meta/recipes-kernel/linux/linux-yocto.inc in setup.sh with

+DEPENDS += '${@bb.utils.contains_any("ARCH", [ "x86", "arm64" ], "elfutils-native", "", d)}'
+DEPENDS += "openssl-native util-linux-native"
+DEPENDS += "gmp-native libmpc-native"
htot commented 5 months ago

Pushed e7ab581eb20b3bbb15d4459be5c3609fe9dd3296 to kirkstone.