diff options
| -rw-r--r-- | meta-oe/recipes-support/pkcs11-provider/pkcs11-provider/0001-meson-add-option-to-allow-override-default-default_p.patch | 53 | ||||
| -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 @@ | |||
| 1 | From 5031b867f5406f14b23ed01f4d68bc9acb073491 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Ayoub Zaki <ayoub.zaki@embetrix.com> | ||
| 3 | Date: Wed, 22 Jan 2025 13:36:36 +0100 | ||
| 4 | Subject: [PATCH] meson: add option to allow override default | ||
| 5 | default_pkcs11_module | ||
| 6 | |||
| 7 | Upstream-Status: Submitted [https://github.com/latchset/pkcs11-provider/pull/511] | ||
| 8 | Signed-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 | |||
| 14 | diff --git a/meson.build b/meson.build | ||
| 15 | index 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', | ||
| 37 | diff --git a/meson_options.txt b/meson_options.txt | ||
| 38 | index 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 | -- | ||
| 52 | 2.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 | ||
| 18 | SRCREV = "93bd41c505cf54dc1ecef6c963df347b9f4abf6d" | 18 | SRCREV = "8f6b94409d4872265076df310492da1e5f6abdf7" |
| 19 | 19 | ||
| 20 | SRC_URI = "git://github.com/latchset/${BPN}.git;branch=main;protocol=https \ | 20 | SRC_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 | ||
| 24 | S = "${WORKDIR}/git" | 22 | S = "${WORKDIR}/git" |
| 25 | 23 | ||
