summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-support/pkcs11-provider/pkcs11-provider/0001-meson-add-option-to-allow-override-default-default_p.patch53
-rw-r--r--meta-oe/recipes-support/pkcs11-provider/pkcs11-provider_1.0.bb (renamed from meta-oe/recipes-support/pkcs11-provider/pkcs11-provider_0.6.bb)6
2 files changed, 2 insertions, 57 deletions
diff --git a/meta-oe/recipes-support/pkcs11-provider/pkcs11-provider/0001-meson-add-option-to-allow-override-default-default_p.patch b/meta-oe/recipes-support/pkcs11-provider/pkcs11-provider/0001-meson-add-option-to-allow-override-default-default_p.patch
deleted file mode 100644
index 5181862f0c..0000000000
--- a/meta-oe/recipes-support/pkcs11-provider/pkcs11-provider/0001-meson-add-option-to-allow-override-default-default_p.patch
+++ /dev/null
@@ -1,53 +0,0 @@
1From 5031b867f5406f14b23ed01f4d68bc9acb073491 Mon Sep 17 00:00:00 2001
2From: Ayoub Zaki <ayoub.zaki@embetrix.com>
3Date: Wed, 22 Jan 2025 13:36:36 +0100
4Subject: [PATCH] meson: add option to allow override default
5 default_pkcs11_module
6
7Upstream-Status: Submitted [https://github.com/latchset/pkcs11-provider/pull/511]
8Signed-off-by: Ayoub Zaki <ayoub.zaki@embetrix.com>
9---
10 meson.build | 11 ++++++++---
11 meson_options.txt | 6 ++++++
12 2 files changed, 14 insertions(+), 3 deletions(-)
13
14diff --git a/meson.build b/meson.build
15index b3912cb..e7cf2d3 100644
16--- a/meson.build
17+++ b/meson.build
18@@ -67,10 +67,15 @@ if host_machine.endian() == 'big'
19 endif
20
21 p11_kit = dependency('p11-kit-1', required: false)
22-if p11_kit.found()
23- default_pkcs11_module = p11_kit.get_variable(pkgconfig: 'proxy_module')
24- conf.set_quoted('DEFAULT_PKCS11_MODULE', default_pkcs11_module)
25+default_pkcs11_module = get_option('default_pkcs11_module')
26+if default_pkcs11_module == 'no'
27+ if p11_kit.found()
28+ default_pkcs11_module = p11_kit.get_variable(pkgconfig: 'proxy_module')
29+ else
30+ error('default_pkcs11_module is empty')
31+ endif
32 endif
33+conf.set_quoted('DEFAULT_PKCS11_MODULE', default_pkcs11_module)
34
35 headers = [
36 'dlfcn.h',
37diff --git a/meson_options.txt b/meson_options.txt
38index 7e7b9be..1306639 100644
39--- a/meson_options.txt
40+++ b/meson_options.txt
41@@ -2,3 +2,9 @@ option('preload_libasan',
42 type: 'string',
43 value: 'no',
44 description: 'Path to libasan.so to preload')
45+
46+
47+option('default_pkcs11_module',
48+ type : 'string',
49+ value : 'no',
50+ description : 'Path to the default PKCS11 module')
51--
522.43.0
53
diff --git a/meta-oe/recipes-support/pkcs11-provider/pkcs11-provider_0.6.bb b/meta-oe/recipes-support/pkcs11-provider/pkcs11-provider_1.0.bb
index 1644335415..18a156286d 100644
--- a/meta-oe/recipes-support/pkcs11-provider/pkcs11-provider_0.6.bb
+++ b/meta-oe/recipes-support/pkcs11-provider/pkcs11-provider_1.0.bb
@@ -15,11 +15,9 @@ DEPENDS = "\
15 p11-kit \ 15 p11-kit \
16" 16"
17 17
18SRCREV = "93bd41c505cf54dc1ecef6c963df347b9f4abf6d" 18SRCREV = "8f6b94409d4872265076df310492da1e5f6abdf7"
19 19
20SRC_URI = "git://github.com/latchset/${BPN}.git;branch=main;protocol=https \ 20SRC_URI = "git://github.com/latchset/${BPN}.git;branch=main;protocol=https"
21 file://0001-meson-add-option-to-allow-override-default-default_p.patch \
22"
23 21
24S = "${WORKDIR}/git" 22S = "${WORKDIR}/git"
25 23