@@ -11,7 +11,7 @@
inherit kernel
require recipes-kernel/linux/linux-yocto.inc
# for ncurses tests
-inherit pkgconfig
+inherit pkgconfig openssl-native
# provide this .inc to set specific revisions
include recipes-kernel/linux/linux-yocto-dev-revisions.inc
@@ -37,7 +37,7 @@ PV = "${LINUX_VERSION}+git${SRCPV}"
LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
DEPENDS += "${@bb.utils.contains('ARCH', 'x86', 'elfutils-native', '', d)}"
-DEPENDS += "openssl-native util-linux-native"
+DEPENDS += "util-linux-native"
DEPENDS += "gmp-native libmpc-native"
# yaml and dtschema are required for 5.16+ device tree validation, libyaml is checked
@@ -22,7 +22,9 @@ LINUX_VERSION ?= "5.15.68"
LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
DEPENDS += "${@bb.utils.contains('ARCH', 'x86', 'elfutils-native', '', d)}"
-DEPENDS += "openssl-native util-linux-native"
+DEPENDS += "util-linux-native"
+
+inherit openssl-native
PV = "${LINUX_VERSION}+git${SRCPV}"
@@ -22,7 +22,9 @@ LINUX_VERSION ?= "5.19.9"
LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
DEPENDS += "${@bb.utils.contains('ARCH', 'x86', 'elfutils-native', '', d)}"
-DEPENDS += "openssl-native util-linux-native"
+DEPENDS += "util-linux-native"
+
+inherit openssl-native
PV = "${LINUX_VERSION}+git${SRCPV}"
@@ -9,7 +9,9 @@ LINUX_VERSION ?= "5.15.68"
LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
DEPENDS += "${@bb.utils.contains('ARCH', 'x86', 'elfutils-native', '', d)}"
-DEPENDS += "openssl-native util-linux-native"
+DEPENDS += "util-linux-native"
+
+inherit openssl-native
KMETA = "kernel-meta"
KCONF_BSP_AUDIT_LEVEL = "2"
@@ -9,7 +9,9 @@ LINUX_VERSION ?= "5.19.9"
LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
DEPENDS += "${@bb.utils.contains('ARCH', 'x86', 'elfutils-native', '', d)}"
-DEPENDS += "openssl-native util-linux-native"
+DEPENDS += "util-linux-native"
+
+inherit openssl-native
KMETA = "kernel-meta"
KCONF_BSP_AUDIT_LEVEL = "2"
@@ -41,9 +41,11 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
LINUX_VERSION ?= "5.15.68"
DEPENDS += "${@bb.utils.contains('ARCH', 'x86', 'elfutils-native', '', d)}"
-DEPENDS += "openssl-native util-linux-native"
+DEPENDS += "util-linux-native"
DEPENDS += "gmp-native libmpc-native"
+inherit openssl-native
+
PV = "${LINUX_VERSION}+git${SRCPV}"
KMETA = "kernel-meta"
@@ -41,9 +41,11 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
LINUX_VERSION ?= "5.19.9"
DEPENDS += "${@bb.utils.contains('ARCH', 'x86', 'elfutils-native', '', d)}"
-DEPENDS += "openssl-native util-linux-native"
+DEPENDS += "util-linux-native"
DEPENDS += "gmp-native libmpc-native"
+inherit openssl-native
+
PV = "${LINUX_VERSION}+git${SRCPV}"
KMETA = "kernel-meta"
It sets environment variables etc correctly for openssl-native use. For most kernel side use cases are covered by plain openssl native wrapper but some out of tree e.g. python scripts may be not. Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org> --- meta/recipes-kernel/linux/linux-yocto-dev.bb | 4 ++-- meta/recipes-kernel/linux/linux-yocto-rt_5.15.bb | 4 +++- meta/recipes-kernel/linux/linux-yocto-rt_5.19.bb | 4 +++- meta/recipes-kernel/linux/linux-yocto-tiny_5.15.bb | 4 +++- meta/recipes-kernel/linux/linux-yocto-tiny_5.19.bb | 4 +++- meta/recipes-kernel/linux/linux-yocto_5.15.bb | 4 +++- meta/recipes-kernel/linux/linux-yocto_5.19.bb | 4 +++- 7 files changed, 20 insertions(+), 8 deletions(-) v3: no changes v2: no changes v1: https://lists.openembedded.org/g/openembedded-core/message/171380?p=%2C%2C%2C20%2C0%2C0%2C0%3A%3Arecentpostdate%2Fsticky%2C%2Copenssl-native.bbclass%2C20%2C2%2C0%2C94110200