summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/linux-libc-headers/linux-libc-headers.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-kernel/linux-libc-headers/linux-libc-headers.inc')
-rw-r--r--meta/recipes-kernel/linux-libc-headers/linux-libc-headers.inc16
1 files changed, 14 insertions, 2 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..b1cb553c75 100644
--- a/meta/recipes-kernel/linux-libc-headers/linux-libc-headers.inc
+++ b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers.inc
@@ -30,7 +30,7 @@ LICENSE = "GPLv2"
30# 30#
31# -- RP 31# -- RP
32 32
33LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814" 33LIC_FILES_CHKSUM ?= "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814"
34 34
35RECIPE_NO_UPDATE_REASON = "Recipe is updated through a separate process" 35RECIPE_NO_UPDATE_REASON = "Recipe is updated through a separate process"
36 36
@@ -46,6 +46,9 @@ python __anonymous () {
46 d.setVar("HEADER_FETCH_VER", "2.6") 46 d.setVar("HEADER_FETCH_VER", "2.6")
47} 47}
48 48
49MAJ_VER = "${@oe.utils.trim_version("${PV}", 2).split('.')[0]}"
50MIN_VER = "${@oe.utils.trim_version("${PV}", 2).split('.')[1]}"
51
49inherit kernel-arch pkgconfig multilib_header 52inherit kernel-arch pkgconfig multilib_header
50 53
51KORG_ARCHIVE_COMPRESSION ?= "xz" 54KORG_ARCHIVE_COMPRESSION ?= "xz"
@@ -83,7 +86,16 @@ do_install_append_armeb () {
83} 86}
84 87
85do_install_armmultilib () { 88do_install_armmultilib () {
86 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 89 if [ ${MAJ_VER} -gt 5 ]; then
90 ARM_KVM_HEADER=""
91 else
92 if [ ${MAJ_VER} -eq 5 ] && [ ${MIN_VER} -ge 8 ]; then
93 ARM_KVM_HEADER=""
94 else
95 ARM_KVM_HEADER="asm/kvm.h"
96 fi
97 fi
98 oe_multilib_header asm/auxvec.h asm/bitsperlong.h asm/byteorder.h asm/fcntl.h asm/hwcap.h asm/ioctls.h $ARM_KVM_HEADER asm/kvm_para.h asm/mman.h asm/param.h asm/perf_regs.h asm/bpf_perf_event.h
87 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 99 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
88} 100}
89 101