All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-oe][PATCH 1/6] openct: merge do_install and do_install_append
@ 2019-11-21 12:09 Jan Luebbe
  2019-11-21 12:09 ` [meta-oe][PATCH 2/6] pcsc-lite: add support for native builds Jan Luebbe
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Jan Luebbe @ 2019-11-21 12:09 UTC (permalink / raw)
  To: openembedded-devel

There is no reason why both should be used in the same recipe. Merge
them.

Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
---
 meta-oe/recipes-support/openct/openct_0.6.20.bb | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/meta-oe/recipes-support/openct/openct_0.6.20.bb b/meta-oe/recipes-support/openct/openct_0.6.20.bb
index 67b7c2975302..08b2e3c23236 100644
--- a/meta-oe/recipes-support/openct/openct_0.6.20.bb
+++ b/meta-oe/recipes-support/openct/openct_0.6.20.bb
@@ -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
 }
-- 
2.24.0



^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [meta-oe][PATCH 2/6] pcsc-lite: add support for native builds
  2019-11-21 12:09 [meta-oe][PATCH 1/6] openct: merge do_install and do_install_append Jan Luebbe
@ 2019-11-21 12:09 ` Jan Luebbe
  2019-11-21 12:09 ` [meta-oe][PATCH 3/6] opensc: use pcsc-lite instead of openct by default Jan Luebbe
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 9+ messages in thread
From: Jan Luebbe @ 2019-11-21 12:09 UTC (permalink / raw)
  To: openembedded-devel

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.

Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
---
 meta-oe/recipes-support/pcsc-lite/pcsc-lite_1.8.25.bb | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/meta-oe/recipes-support/pcsc-lite/pcsc-lite_1.8.25.bb b/meta-oe/recipes-support/pcsc-lite/pcsc-lite_1.8.25.bb
index a87c228a8374..33f7f839cb1b 100644
--- a/meta-oe/recipes-support/pcsc-lite/pcsc-lite_1.8.25.bb
+++ b/meta-oe/recipes-support/pcsc-lite/pcsc-lite_1.8.25.bb
@@ -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"
-- 
2.24.0



^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [meta-oe][PATCH 3/6] opensc: use pcsc-lite instead of openct by default
  2019-11-21 12:09 [meta-oe][PATCH 1/6] openct: merge do_install and do_install_append Jan Luebbe
  2019-11-21 12:09 ` [meta-oe][PATCH 2/6] pcsc-lite: add support for native builds Jan Luebbe
@ 2019-11-21 12:09 ` Jan Luebbe
  2019-11-21 12:09 ` [meta-oe][PATCH 4/6] opensc: add support for native builds Jan Luebbe
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 9+ messages in thread
From: Jan Luebbe @ 2019-11-21 12:09 UTC (permalink / raw)
  To: openembedded-devel

OpenCT 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.

Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
---
 meta-oe/recipes-support/opensc/opensc_0.19.0.bb | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/meta-oe/recipes-support/opensc/opensc_0.19.0.bb b/meta-oe/recipes-support/opensc/opensc_0.19.0.bb
index bc1722e394f6..440859a37a93 100644
--- a/meta-oe/recipes-support/opensc/opensc_0.19.0.bb
+++ b/meta-oe/recipes-support/opensc/opensc_0.19.0.bb
@@ -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} += "\
-- 
2.24.0



^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [meta-oe][PATCH 4/6] opensc: add support for native builds
  2019-11-21 12:09 [meta-oe][PATCH 1/6] openct: merge do_install and do_install_append Jan Luebbe
  2019-11-21 12:09 ` [meta-oe][PATCH 2/6] pcsc-lite: add support for native builds Jan Luebbe
  2019-11-21 12:09 ` [meta-oe][PATCH 3/6] opensc: use pcsc-lite instead of openct by default Jan Luebbe
@ 2019-11-21 12:09 ` Jan Luebbe
  2019-11-21 12:09 ` [meta-oe][PATCH 5/6] libp11: " Jan Luebbe
  2019-11-21 12:09 ` [meta-oe][PATCH 6/6] softhsm: add recipe Jan Luebbe
  4 siblings, 0 replies; 9+ messages in thread
From: Jan Luebbe @ 2019-11-21 12:09 UTC (permalink / raw)
  To: openembedded-devel

This is needed as a dependency when using SoftHSM from the PKCS#11
OpenSSL engine for code singing.

Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
---
 meta-oe/recipes-support/opensc/opensc_0.19.0.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta-oe/recipes-support/opensc/opensc_0.19.0.bb b/meta-oe/recipes-support/opensc/opensc_0.19.0.bb
index 440859a37a93..6354ca3f48ff 100644
--- a/meta-oe/recipes-support/opensc/opensc_0.19.0.bb
+++ b/meta-oe/recipes-support/opensc/opensc_0.19.0.bb
@@ -45,3 +45,5 @@ FILES_${PN}-dev += "\
     ${libdir}/pkcs11/onepin-opensc-pkcs11.so \
     ${libdir}/pkcs11/pkcs11-spy.so \
 "
+
+BBCLASSEXTEND="native"
-- 
2.24.0



^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [meta-oe][PATCH 5/6] libp11: add support for native builds
  2019-11-21 12:09 [meta-oe][PATCH 1/6] openct: merge do_install and do_install_append Jan Luebbe
                   ` (2 preceding siblings ...)
  2019-11-21 12:09 ` [meta-oe][PATCH 4/6] opensc: add support for native builds Jan Luebbe
@ 2019-11-21 12:09 ` Jan Luebbe
  2019-11-21 18:49   ` Khem Raj
  2019-11-21 12:09 ` [meta-oe][PATCH 6/6] softhsm: add recipe Jan Luebbe
  4 siblings, 1 reply; 9+ messages in thread
From: Jan Luebbe @ 2019-11-21 12:09 UTC (permalink / raw)
  To: openembedded-devel

This is needed as a dependency when using SoftHSM from the PKCS#11
OpenSSL engine for code singing.

Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
---
 meta-oe/recipes-support/libp11/libp11_0.4.10.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta-oe/recipes-support/libp11/libp11_0.4.10.bb b/meta-oe/recipes-support/libp11/libp11_0.4.10.bb
index b40223e8abcb..fc2ec9935f56 100644
--- a/meta-oe/recipes-support/libp11/libp11_0.4.10.bb
+++ b/meta-oe/recipes-support/libp11/libp11_0.4.10.bb
@@ -24,3 +24,5 @@ do_install_append () {
 
 FILES_${PN} += "${libdir}/engines*/pkcs11.so"
 FILES_${PN}-dev += "${libdir}/engines*/libpkcs11${SOLIBSDEV}"
+
+BBCLASSEXTEND="native"
-- 
2.24.0



^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [meta-oe][PATCH 6/6] softhsm: add recipe
  2019-11-21 12:09 [meta-oe][PATCH 1/6] openct: merge do_install and do_install_append Jan Luebbe
                   ` (3 preceding siblings ...)
  2019-11-21 12:09 ` [meta-oe][PATCH 5/6] libp11: " Jan Luebbe
@ 2019-11-21 12:09 ` Jan Luebbe
  4 siblings, 0 replies; 9+ messages in thread
From: Jan Luebbe @ 2019-11-21 12:09 UTC (permalink / raw)
  To: openembedded-devel

This 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.

Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
---
 .../recipes-security/softhsm/softhsm_git.bb    | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 meta-oe/recipes-security/softhsm/softhsm_git.bb

diff --git a/meta-oe/recipes-security/softhsm/softhsm_git.bb b/meta-oe/recipes-security/softhsm/softhsm_git.bb
new file mode 100644
index 000000000000..3236cb9a6097
--- /dev/null
+++ b/meta-oe/recipes-security/softhsm/softhsm_git.bb
@@ -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"
-- 
2.24.0



^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [meta-oe][PATCH 5/6] libp11: add support for native builds
  2019-11-21 12:09 ` [meta-oe][PATCH 5/6] libp11: " Jan Luebbe
@ 2019-11-21 18:49   ` Khem Raj
  2019-11-22 12:28     ` Jan Lübbe
  0 siblings, 1 reply; 9+ messages in thread
From: Khem Raj @ 2019-11-21 18:49 UTC (permalink / raw)
  To: Jan Luebbe; +Cc: openembeded-devel

On Thu, Nov 21, 2019 at 4:29 AM Jan Luebbe <jlu@pengutronix.de> wrote:
>
> This is needed as a dependency when using SoftHSM from the PKCS#11
> OpenSSL engine for code singing.
>
> Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
> ---
>  meta-oe/recipes-support/libp11/libp11_0.4.10.bb | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/meta-oe/recipes-support/libp11/libp11_0.4.10.bb b/meta-oe/recipes-support/libp11/libp11_0.4.10.bb
> index b40223e8abcb..fc2ec9935f56 100644
> --- a/meta-oe/recipes-support/libp11/libp11_0.4.10.bb
> +++ b/meta-oe/recipes-support/libp11/libp11_0.4.10.bb
> @@ -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

> --
> 2.24.0
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [meta-oe][PATCH 5/6] libp11: add support for native builds
  2019-11-21 18:49   ` Khem Raj
@ 2019-11-22 12:28     ` Jan Lübbe
  0 siblings, 0 replies; 9+ messages in thread
From: Jan Lübbe @ 2019-11-22 12:28 UTC (permalink / raw)
  To: Khem Raj; +Cc: openembeded-devel

On Thu, 2019-11-21 at 10:49 -0800, Khem Raj wrote:
> > +
> > +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
-- 
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 |


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [meta-oe][PATCH 2/6] pcsc-lite: add support for native builds
  2019-11-21 11:12 [meta-oe][PATCH 1/6] openct: merge do_install and do_install_append Jan Luebbe
@ 2019-11-21 11:12 ` Jan Luebbe
  0 siblings, 0 replies; 9+ messages in thread
From: Jan Luebbe @ 2019-11-21 11:12 UTC (permalink / raw)
  To: openembedded-core

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.

Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
---
 meta-oe/recipes-support/pcsc-lite/pcsc-lite_1.8.25.bb | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/meta-oe/recipes-support/pcsc-lite/pcsc-lite_1.8.25.bb b/meta-oe/recipes-support/pcsc-lite/pcsc-lite_1.8.25.bb
index a87c228a8374..33f7f839cb1b 100644
--- a/meta-oe/recipes-support/pcsc-lite/pcsc-lite_1.8.25.bb
+++ b/meta-oe/recipes-support/pcsc-lite/pcsc-lite_1.8.25.bb
@@ -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"
-- 
2.24.0



^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-11-22 12:28 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-21 12:09 [meta-oe][PATCH 1/6] openct: merge do_install and do_install_append Jan Luebbe
2019-11-21 12:09 ` [meta-oe][PATCH 2/6] pcsc-lite: add support for native builds Jan Luebbe
2019-11-21 12:09 ` [meta-oe][PATCH 3/6] opensc: use pcsc-lite instead of openct by default Jan Luebbe
2019-11-21 12:09 ` [meta-oe][PATCH 4/6] opensc: add support for native builds Jan Luebbe
2019-11-21 12:09 ` [meta-oe][PATCH 5/6] libp11: " Jan Luebbe
2019-11-21 18:49   ` Khem Raj
2019-11-22 12:28     ` Jan Lübbe
2019-11-21 12:09 ` [meta-oe][PATCH 6/6] softhsm: add recipe Jan Luebbe
  -- strict thread matches above, loose matches on Subject: below --
2019-11-21 11:12 [meta-oe][PATCH 1/6] openct: merge do_install and do_install_append Jan Luebbe
2019-11-21 11:12 ` [meta-oe][PATCH 2/6] pcsc-lite: add support for native builds Jan Luebbe

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.