openct: merge do_install and do_install_append
PATCH 1/6 openct: merge do_install and do_install_append
There is no reason why both should be used in the same recipe. Merge them.
--- meta-oe/recipes-support/openct/openct_0.6.20.bb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
meta-oe/recipes-support/openct/openct_0.6.20.bb +2 -4
@@ -56,10 +56,6 @@ FILES_${PN}-dbg += " \ INSANE_SKIP_${PN} += "dev-deps" -do_install_append() { - rm -r ${D}/${localstatedir}/run -} - do_install () { rm -rf ${D} install -d ${D}/etc
@@ -87,4 +83,6 @@ do_install () { install -dm 755 ${D}${localstatedir}/run/openct touch ${D}${localstatedir}/run/openct/status chmod 644 ${D}${localstatedir}/run/openct/status + + rm -r ${D}/${localstatedir}/run }
Signature · 1 line
2.24.0
PATCH 2/6 pcsc-lite: add support for native builds
This is needed as a dependency when using SoftHSM from the PKCS#11 OpenSSL engine for code singing.
Add a udev PACKAGECONFIG, as this is only useful on the target. Also don't RRECOMMEND ccid for the native variant.
--- meta-oe/recipes-support/pcsc-lite/pcsc-lite_1.8.25.bb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)
meta-oe/recipes-support/pcsc-lite/pcsc-lite_1.8.25.bb +6 -3
@@ -9,7 +9,6 @@ LICENSE_${PN}-dbg = "BSD & GPLv3+" LICENSE_${PN}-spy = "GPLv3+" LICENSE_${PN}-spy-dev = "GPLv3+" LIC_FILES_CHKSUM = "file://COPYING;md5=628c01ba985ecfa21677f5ee2d5202f6" -DEPENDS = "udev" SRC_URI = "https://pcsclite.apdu.fr/files/${BP}.tar.bz2" SRC_URI[md5sum] = "c20650a36062ab1689f37f3302c988f2"
@@ -19,19 +18,21 @@ inherit autotools systemd pkgconfig EXTRA_OECONF = " \ --disable-libusb \ - --enable-libudev \ --enable-usbdropdir=${libdir}/pcsc/drivers \ " S = "${WORKDIR}/pcsc-lite-${PV}" -PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" +PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} udev" +PACKAGECONFIG_class-native ??= "" PACKAGECONFIG[systemd] = ",--disable-libsystemd,systemd," +PACKAGECONFIG[udev] = "--enable-libudev,--disable-libudev,udev" PACKAGES = "${PN} ${PN}-dbg ${PN}-dev ${PN}-lib ${PN}-doc ${PN}-spy ${PN}-spy-dev" RRECOMMENDS_${PN} = "ccid" +RRECOMMENDS_${PN}_class-native = "" FILES_${PN} = "${sbindir}/pcscd" FILES_${PN}-lib = "${libdir}/libpcsclite*${SOLIBS}"
@@ -50,3 +51,5 @@ RREPLACES_${PN} += "${PN}-systemd" RCONFLICTS_${PN} += "${PN}-systemd" SYSTEMD_SERVICE_${PN} = "pcscd.socket" RDEPENDS_${PN}-spy +="python" + +BBCLASSEXTEND="native"
Signature · 1 line
2.24.0
PATCH 3/6 opensc: use pcsc-lite instead of openct by default
In reply to Jan LuebbeOpenCT upstream maintenance seems to have stopped and OpenSC upstream uses pcsc-lite by default in their configure script. Add PACKAGECONFIGs for each and select pcsc by default.
As the openct package depends on pcsc-lite by itself, this avoids an unnecessary package in the default case.
--- meta-oe/recipes-support/opensc/opensc_0.19.0.bb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)
meta-oe/recipes-support/opensc/opensc_0.19.0.bb +6 -3
@@ -16,20 +16,23 @@ SRCREV = "f1691fc91fc113191c3a8aaf5facd6983334ec47" SRC_URI = "git://github.com/OpenSC/OpenSC \ file://0001-Remove-redundant-logging.patch \ " -DEPENDS = "openct pcsc-lite virtual/libiconv openssl" +DEPENDS = "virtual/libiconv openssl" S = "${WORKDIR}/git" inherit autotools pkgconfig bash-completion EXTRA_OECONF = " \ --disable-static \ - --enable-openct \ - --disable-pcsc \ --disable-ctapi \ --disable-doc \ " EXTRA_OEMAKE = "DESTDIR=${D}" +PACKAGECONFIG ??= "pcsc" + +PACKAGECONFIG[openct] = "--enable-openct,--disable-openct,openct" +PACKAGECONFIG[pcsc] = "--enable-pcsc,--disable-pcsc,pcsc-lite" + RDEPENDS_${PN} = "readline" FILES_${PN} += "\
Signature · 1 line
2.24.0
PATCH 4/6 opensc: add support for native builds
In reply to Jan LuebbeThis is needed as a dependency when using SoftHSM from the PKCS#11 OpenSSL engine for code singing.
--- meta-oe/recipes-support/opensc/opensc_0.19.0.bb | 2 ++ 1 file changed, 2 insertions(+)
meta-oe/recipes-support/opensc/opensc_0.19.0.bb +2 -0
@@ -45,3 +45,5 @@ FILES_${PN}-dev += "\ ${libdir}/pkcs11/onepin-opensc-pkcs11.so \ ${libdir}/pkcs11/pkcs11-spy.so \ " + +BBCLASSEXTEND="native"
Signature · 1 line
2.24.0
PATCH 5/6 libp11: add support for native builds
In reply to Jan LuebbeThis is needed as a dependency when using SoftHSM from the PKCS#11 OpenSSL engine for code singing.
--- meta-oe/recipes-support/libp11/libp11_0.4.10.bb | 2 ++ 1 file changed, 2 insertions(+)
meta-oe/recipes-support/libp11/libp11_0.4.10.bb +2 -0
@@ -24,3 +24,5 @@ do_install_append () { FILES_${PN} += "${libdir}/engines*/pkcs11.so" FILES_${PN}-dev += "${libdir}/engines*/libpkcs11${SOLIBSDEV}" + +BBCLASSEXTEND="native"
Signature · 1 line
2.24.0
Re: [meta-oe][PATCH 5/6] libp11: add support for native builds
Quoted 14 lines · Jan Luebbe
This is needed as a dependency when using SoftHSM from the PKCS#11 OpenSSL engine for code singing.
Signed-off-by Jan Luebbe <[email protected]>--- meta-oe/recipes-support/libp11/libp11_0.4.10.bb | 2 ++ 1 file changed, 2 insertions(+)meta-oe/recipes-support/libp11/libp11_0.4.10.bb +0
-0
meta-oe/recipes-support/libp11/libp11_0.4.10.bb do_install_append () { · line 28
Quoted 5 lines
meta-oe/recipes-support/libp11/libp11_0.4.10.bb +2
-0@@ -24,3 +24,5 @@ do_install_append () { FILES_${PN} += "${libdir}/engines*/pkcs11.so" FILES_${PN}-dev += "${libdir}/engines*/libpkcs11${SOLIBSDEV}" + +BBCLASSEXTEND="native"
nitpick but space around = is preferred in such assignments
Quoted 8 lines
--
2.24.0--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Re: [meta-oe][PATCH 5/6] libp11: add support for native builds
Quoted 4 lines · Khem Raj
meta-oe/recipes-support/libp11/libp11_0.4.10.bb do_install_append () { · line 28
Quoted 2 lines
meta-oe/recipes-support/libp11/libp11_0.4.10.bb +2
-0+ +BBCLASSEXTEND="native"nitpick but space around = is preferred in such assignments
Of course. If there are no further issues, do you want to fix-up that while applying or should I resend (this patch or the series)?
Regards,
Jan
Signature · 4 lines
Pengutronix e.K. | Dipl.-Inform. Jan Lübbe | Steuerwalder Str. 21 | https://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
PATCH 6/6 softhsm: add recipe
In reply to Jan LuebbeThis is useful for consolidation of code-signing interfaces when building an image with verified boot mechanisms or signed update artifacts. It can also be used on the target as a backend for software which uses the PKCS#11 API to access private key material.
--- .../recipes-security/softhsm/softhsm_git.bb | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 meta-oe/recipes-security/softhsm/softhsm_git.bb
meta-oe/recipes-security/softhsm/softhsm_git.bb new file +18 -0
@@ -0,0 +1,18 @@ +SUMMARY = "PKCS#11 HSM/Token Emulator" +HOMEPAGE = "https://www.opendnssec.org/softhsm/" +LICENSE = "BSD-2-Clause & ISC" +LIC_FILES_CHKSUM = "file://LICENSE;md5=ef3f77a3507c3d91e75b9f2bdaee4210" +DEPENDS = "openssl" +PV = "2.5.0" + +SRC_URI = "git://github.com/opendnssec/SoftHSMv2.git;branch=master" +SRCREV = "369df0383d101bc8952692c2a368ac8bc887d1b4" + +S = "${WORKDIR}/git" + +inherit autotools pkgconfig + +# EdDSA requires OpenSSL >= 1.1.1 +EXTRA_OECONF = "--enable-eddsa --disable-gost" + +BBCLASSEXTEND = "native"
Signature · 1 line
2.24.0