recipes-kernel/linux-libc-headers/linux-libc-headers.inc question
https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=eb24d4aeacaad9d41ddcbefd8d2ac96e95548183
apparently is needed for 4.15, but it breaks with 4.14 as we get
ERROR: linux-libc-headers-4.14-r0 do_install: oe_multilib_header:
Unable to find header asm/bpf_perf_event.h.
I used following to work this around in our own linux-libc-headers_4.14.bb:
do_install_armmultilib_prepend() {
touch ${D}${includedir}/asm/bpf_perf_event.h
}but curious if somebody could suggest a better mitigation
-Niko
Quoted 7 lines · Niko Mauno
https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=eb24d4aeac
aad9d41ddcbefd8d2ac96e95548183
apparently is needed for 4.15, but it breaks with 4.14 as we getERROR: linux-libc-headers-4.14-r0
do_install:oe_multilib_header:
Unable to find headerasm/bpf_perf_event.h.
Quoted 8 lines
I used following to work this around in our own linux-libc- headers_4.14.bb:
do_install_armmultilib_prepend() { touch ${D}${includedir}/asm/bpf_perf_event.h }but curious if somebody could suggest a better mitigation
The options are really what you've done, copy the .inc and edit or use the never libc-headers. It doesn't need to match your kernel version and newer libc-headers should be very backwards compatible.
Cheers,
Richard