Skip to contentSkip to conversation

recipes-kernel/linux-libc-headers/linux-libc-headers.inc question

DISCUSSION Niko Mauno 2 participants 2 messages Sep 1, 2018 – Sep 4, 2018

lore
Share & tools
lore

Niko Mauno

author
#0 lore raw

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

#1 lore raw
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 get

ERROR: linux-libc-headers-4.14-r0 do_install: oe_multilib_header:
Unable to find header asm/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