From 6cc1876191e89b2d88f8213098574a5b70f06e38 Mon Sep 17 00:00:00 2001 From: Huang Xin Date: Sat, 14 May 2022 20:09:43 -0700 Subject: [PATCH] add opensc support --- .../recipes-support/opensc/opensc_0.22.0.bb | 44 +++++++++++++++++++ .../images/mtk-image-aud-8516.bb | 1 + 2 files changed, 45 insertions(+) create mode 100644 meta/meta-mediatek-aud/recipes-support/opensc/opensc_0.22.0.bb diff --git a/meta/meta-mediatek-aud/recipes-support/opensc/opensc_0.22.0.bb b/meta/meta-mediatek-aud/recipes-support/opensc/opensc_0.22.0.bb new file mode 100644 index 000000000..602a4e1ad --- /dev/null +++ b/meta/meta-mediatek-aud/recipes-support/opensc/opensc_0.22.0.bb @@ -0,0 +1,44 @@ +SUMMARY = "Smart card library and applications" +DESCRIPTION = "OpenSC is a tool for accessing smart card devices. Basic\ +functionality (e.g. SELECT FILE, READ BINARY) should work on any ISO\ +7816-4 compatible smart card. Encryption and decryption using private\ +keys on the smart card is possible with PKCS\ +such as the FINEID (Finnish Electronic IDentity) card. Swedish Posten\ +eID cards have also been confirmed to work." + +HOMEPAGE = "http://www.opensc-project.org/opensc/" +SECTION = "System Environment/Libraries" + +SRC_URI = "https://github.com/OpenSC/OpenSC/releases/download/0.22.0/opensc-${PV}.tar.gz" + + +SRC_URI[md5sum] = "4f547367252ce41be2fb736aca465baa" +SRC_URI[sha256sum] = "8d4e5347195ebea332be585df61dcc470331c26969e4b0447c851fb0844c7186" + +DEPENDS = "openct pcsc-lite virtual/libiconv openssl" + +LICENSE = "LGPLv2+" +LIC_FILES_CHKSUM = "file://COPYING;md5=cb8aedd3bced19bd8026d96a8b6876d7" + +inherit autotools pkgconfig + +EXTRA_OECONF = " \ + --disable-static \ + --enable-openct \ + --disable-pcsc \ + --disable-ctapi \ + --disable-doc \ + --disable-strict \ +" +EXTRA_OEMAKE = "DESTDIR=${D}" + +RDEPENDS_${PN} = "readline" + +gr_${PN} += "\ + ${libdir}/* \ +" +FILES_${PN}-dev += "\ + ${libdir}/* \ +" + +INSANE_SKIP_${PN} += "installed-vs-shipped dev-deps" \ No newline at end of file diff --git a/meta/meta-mediatek-mt8516/recipes-audio/images/mtk-image-aud-8516.bb b/meta/meta-mediatek-mt8516/recipes-audio/images/mtk-image-aud-8516.bb index eea050af4..ed82a75ba 100755 --- a/meta/meta-mediatek-mt8516/recipes-audio/images/mtk-image-aud-8516.bb +++ b/meta/meta-mediatek-mt8516/recipes-audio/images/mtk-image-aud-8516.bb @@ -64,6 +64,7 @@ IMAGE_INSTALL_append = " \ nghttp2 \ jemalloc \ portaudio \ + opensc \ " install_proc() {