Skip to contentSkip to conversation

opensc: add PACKAGECONFIG for ctapi

PATCH Superseded Leon Anavi 1 participant 1 message Nov 4

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Leon Anavi

author
#0 lore raw

PATCH 1/1 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.

---
 meta-oe/recipes-support/opensc/opensc_0.27.1.bb | 1 +
 1 file changed, 1 insertion(+)
meta-oe/recipes-support/opensc/opensc_0.27.1.bb +1 -0
index 70406513ad..1613dc3da6 100644
@@ -39,6 +39,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 \
Signature · 1 line
2.47.3