On Wed, 2020-05-27 at 08:50 -0700, Khem Raj wrote: > asm/bpf_perf_event.h does not exist in older kernels e.g. ( 4.1 ) > this helps in using common header across multiple versions of kernel > going back > > Signed-off-by: Khem Raj <raj.k...@gmail.com> > --- > .../recipes-kernel/linux-libc-headers/linux-libc-headers.inc | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/meta/recipes-kernel/linux-libc-headers/linux-libc-headers.inc > b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers.inc > index 4481aa430c..933a01ba81 100644 > --- a/meta/recipes-kernel/linux-libc-headers/linux-libc-headers.inc > +++ b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers.inc > @@ -81,8 +81,11 @@ do_install_append_armeb () { > } > > do_install_armmultilib () { > - oe_multilib_header asm/auxvec.h asm/bitsperlong.h asm/byteorder.h > asm/fcntl.h asm/hwcap.h asm/ioctls.h asm/kvm.h asm/kvm_para.h asm/mman.h > asm/param.h asm/perf_regs.h asm/bpf_perf_event.h > + oe_multilib_header asm/auxvec.h asm/bitsperlong.h asm/byteorder.h > asm/fcntl.h asm/hwcap.h asm/ioctls.h asm/kvm.h asm/kvm_para.h asm/mman.h > asm/param.h asm/perf_regs.h > oe_multilib_header asm/posix_types.h asm/ptrace.h asm/setup.h > asm/sigcontext.h asm/siginfo.h asm/signal.h asm/stat.h asm/statfs.h > asm/swab.h asm/types.h asm/unistd.h > + if [ -f "${D}/${includedir}/asm/bpf_perf_event.h" ]; then > + oe_multilib_header asm/bpf_perf_event.h > + fi > }
Why are people using old linux-libc-headers? This is for the toolchain so it doesn't need to have anything to do with the target kernel. I've always assumed that people should be able to use the latest version here and should not need to customise this. The headers should be backwards compatible. What am I missing? Cheers, Richard
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#138819): https://lists.openembedded.org/g/openembedded-core/message/138819 Mute This Topic: https://lists.openembedded.org/mt/74502640/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-