From 4edb9dd8265891027bf956c985165ee35450ba87 Mon Sep 17 00:00:00 2001 From: Leon Anavi Date: Thu, 5 Nov 2026 19:12:17 +0200 Subject: [PATCH] opensc: add PACKAGECONFIG for ctapi Add a PACKAGECONFIG option for OpenSC's CT-API reader driver so it can be enabled without modifying the recipe, e.g. from local.conf: PACKAGECONFIG:pn-opensc = "ctapi" Please note that OpenSC's configure allows only one reader driver: Only one of --enable-pcsc, --enable-cryptotokenkit, --enable-openct, --enable-ctapi can be specified! So to use it, ctapi should replace the default pcsc rather than being just added to it. Not enabled by default. Existing builds are unaffected. The patch also removes --disable-ctapi from EXTRA_OECONF. Signed-off-by: Leon Anavi Signed-off-by: Khem Raj --- meta-oe/recipes-support/opensc/opensc_0.27.1.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta-oe/recipes-support/opensc/opensc_0.27.1.bb b/meta-oe/recipes-support/opensc/opensc_0.27.1.bb index 70406513ad..fdcf003842 100644 --- a/meta-oe/recipes-support/opensc/opensc_0.27.1.bb +++ b/meta-oe/recipes-support/opensc/opensc_0.27.1.bb @@ -23,7 +23,6 @@ CVE_STATUS[CVE-2024-8443] = "fixed-version: this is fixed since 0.26.0" inherit autotools pkgconfig bash-completion EXTRA_OECONF = " \ - --disable-ctapi \ --disable-doc \ --disable-static \ --disable-strict \ @@ -39,6 +38,7 @@ PACKAGECONFIG[openct] = "--enable-openct,--disable-openct,openct" PACKAGECONFIG[pcsc] = "--enable-pcsc,--disable-pcsc,pcsc-lite,pcsc-lite pcsc-lite-lib" PACKAGECONFIG[readline] = "--enable-readline,--disable-readline,readline" PACKAGECONFIG[notify] = "--enable-notify,--disable-notify,glib-2.0" +PACKAGECONFIG[ctapi] = "--enable-ctapi,--disable-ctapi" FILES:${PN} += "\ ${libdir}/opensc-pkcs11.so \