summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2020-05-27 08:48:33 -0700
committerKhem Raj <raj.khem@gmail.com>2020-06-23 15:26:37 -0700
commit5e61ce4e2f78009accc5e329cf5264698b97e592 (patch)
tree744de7435937ea4cea4f98a2cc3dde3205ac223d
parentdd7c4c203032f3d8f18b3cb4f35927367967f6a8 (diff)
downloadopenembedded-core-contrib-5e61ce4e2f78009accc5e329cf5264698b97e592.tar.gz
linux-libc-headers: Check for asm/bpf_perf_event.h before multilibbing
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.khem@gmail.com>
-rw-r--r--meta/recipes-kernel/linux-libc-headers/linux-libc-headers.inc5
1 files changed, 4 insertions, 1 deletions
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 20139a8497..4b1da794e5 100644
--- a/meta/recipes-kernel/linux-libc-headers/linux-libc-headers.inc
+++ b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers.inc
@@ -83,8 +83,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
}
BBCLASSEXTEND = "nativesdk"