All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-security][PATCH] meta-security: Add recipe for libhoth
@ 2022-07-21 22:38 jebr
  2022-07-21 22:45 ` [yocto] " Khem Raj
  0 siblings, 1 reply; 4+ messages in thread
From: jebr @ 2022-07-21 22:38 UTC (permalink / raw)
  To: yocto; +Cc: John Edward Broadbent

From: John Edward Broadbent <jebr@google.com>

Libhoth is usb protocol implementation which is required for hoth class
devices

Signed-off-by: John Edward Broadbent <jebr@google.com>
---
 meta-tpm/recipes-tpm/hoth/libhoth_git.bb | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 meta-tpm/recipes-tpm/hoth/libhoth_git.bb

diff --git a/meta-tpm/recipes-tpm/hoth/libhoth_git.bb b/meta-tpm/recipes-tpm/hoth/libhoth_git.bb
new file mode 100644
index 0000000..59f52ad
--- /dev/null
+++ b/meta-tpm/recipes-tpm/hoth/libhoth_git.bb
@@ -0,0 +1,17 @@
+SUMMARY = "Google Hoth USB library"
+DESCRIPTION = "Libraries and example programs for interacting with a \
+               hoth-class root of trust."
+HOME_PAGE = https://github.com/google/libhoth
+
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
+
+SRC_URI = "git://github.com/google/libhoth;protocol=https;branch=main"
+SRCREV = "b31307b7bf525efda0164e461fb1e0a5c302d306"
+
+DEPENDS += "libusb1"
+
+S = "${WORKDIR}/git"
+
+inherit pkgconfig meson
+
-- 
2.37.1.359.gd136c6c3e2-goog



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

* Re: [yocto] [meta-security][PATCH] meta-security: Add recipe for libhoth
  2022-07-21 22:38 [meta-security][PATCH] meta-security: Add recipe for libhoth jebr
@ 2022-07-21 22:45 ` Khem Raj
  2022-07-21 23:11   ` John Broadbent
  0 siblings, 1 reply; 4+ messages in thread
From: Khem Raj @ 2022-07-21 22:45 UTC (permalink / raw)
  To: jebr; +Cc: Yocto-mailing-list

On Thu, Jul 21, 2022 at 6:39 PM jebr via lists.yoctoproject.org
<jebr=google.com@lists.yoctoproject.org> wrote:
>
> From: John Edward Broadbent <jebr@google.com>
>
> Libhoth is usb protocol implementation which is required for hoth class
> devices
>
> Signed-off-by: John Edward Broadbent <jebr@google.com>
> ---
>  meta-tpm/recipes-tpm/hoth/libhoth_git.bb | 17 +++++++++++++++++
>  1 file changed, 17 insertions(+)
>  create mode 100644 meta-tpm/recipes-tpm/hoth/libhoth_git.bb
>
> diff --git a/meta-tpm/recipes-tpm/hoth/libhoth_git.bb b/meta-tpm/recipes-tpm/hoth/libhoth_git.bb
> new file mode 100644
> index 0000000..59f52ad
> --- /dev/null
> +++ b/meta-tpm/recipes-tpm/hoth/libhoth_git.bb
> @@ -0,0 +1,17 @@
> +SUMMARY = "Google Hoth USB library"
> +DESCRIPTION = "Libraries and example programs for interacting with a \
> +               hoth-class root of trust."
> +HOME_PAGE = https://github.com/google/libhoth
> +
> +LICENSE = "Apache-2.0"
> +LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
> +
> +SRC_URI = "git://github.com/google/libhoth;protocol=https;branch=main"
> +SRCREV = "b31307b7bf525efda0164e461fb1e0a5c302d306"
> +
> +DEPENDS += "libusb1"
> +
> +S = "${WORKDIR}/git"
> +
> +inherit pkgconfig meson

Dont we want to package the examples too ? perhaps in a ${PN}-examples
or something ?

> +
> --
> 2.37.1.359.gd136c6c3e2-goog
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> You automatically follow any topics you start or reply to.
> View/Reply Online (#57610): https://lists.yoctoproject.org/g/yocto/message/57610
> Mute This Topic: https://lists.yoctoproject.org/mt/92537492/1997914
> Group Owner: yocto+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>


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

* Re: [yocto] [meta-security][PATCH] meta-security: Add recipe for libhoth
  2022-07-21 22:45 ` [yocto] " Khem Raj
@ 2022-07-21 23:11   ` John Broadbent
  2022-07-21 23:27     ` Khem Raj
  0 siblings, 1 reply; 4+ messages in thread
From: John Broadbent @ 2022-07-21 23:11 UTC (permalink / raw)
  To: Khem Raj; +Cc: Yocto-mailing-list

The examples are not separately buildable, and not installed. So there
is currently no way to make a sperate ${PN}-examples.
We don't need the examples now, but we are interested to know what you think.

Thanks for the speedy review.
Joh Broadbent


On Thu, Jul 21, 2022 at 3:46 PM Khem Raj <raj.khem@gmail.com> wrote:
>
> On Thu, Jul 21, 2022 at 6:39 PM jebr via lists.yoctoproject.org
> <jebr=google.com@lists.yoctoproject.org> wrote:
> >
> > From: John Edward Broadbent <jebr@google.com>
> >
> > Libhoth is usb protocol implementation which is required for hoth class
> > devices
> >
> > Signed-off-by: John Edward Broadbent <jebr@google.com>
> > ---
> >  meta-tpm/recipes-tpm/hoth/libhoth_git.bb | 17 +++++++++++++++++
> >  1 file changed, 17 insertions(+)
> >  create mode 100644 meta-tpm/recipes-tpm/hoth/libhoth_git.bb
> >
> > diff --git a/meta-tpm/recipes-tpm/hoth/libhoth_git.bb b/meta-tpm/recipes-tpm/hoth/libhoth_git.bb
> > new file mode 100644
> > index 0000000..59f52ad
> > --- /dev/null
> > +++ b/meta-tpm/recipes-tpm/hoth/libhoth_git.bb
> > @@ -0,0 +1,17 @@
> > +SUMMARY = "Google Hoth USB library"
> > +DESCRIPTION = "Libraries and example programs for interacting with a \
> > +               hoth-class root of trust."
> > +HOME_PAGE = https://github.com/google/libhoth
> > +
> > +LICENSE = "Apache-2.0"
> > +LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
> > +
> > +SRC_URI = "git://github.com/google/libhoth;protocol=https;branch=main"
> > +SRCREV = "b31307b7bf525efda0164e461fb1e0a5c302d306"
> > +
> > +DEPENDS += "libusb1"
> > +
> > +S = "${WORKDIR}/git"
> > +
> > +inherit pkgconfig meson
>
> Dont we want to package the examples too ? perhaps in a ${PN}-examples
> or something ?
>
> > +
> > --
> > 2.37.1.359.gd136c6c3e2-goog
> >
> >
> > -=-=-=-=-=-=-=-=-=-=-=-
> > Links: You receive all messages sent to this group.
> > You automatically follow any topics you start or reply to.
> > View/Reply Online (#57610): https://lists.yoctoproject.org/g/yocto/message/57610
> > Mute This Topic: https://lists.yoctoproject.org/mt/92537492/1997914
> > Group Owner: yocto+owner@lists.yoctoproject.org
> > Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [raj.khem@gmail.com]
> > -=-=-=-=-=-=-=-=-=-=-=-
> >


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

* Re: [yocto] [meta-security][PATCH] meta-security: Add recipe for libhoth
  2022-07-21 23:11   ` John Broadbent
@ 2022-07-21 23:27     ` Khem Raj
  0 siblings, 0 replies; 4+ messages in thread
From: Khem Raj @ 2022-07-21 23:27 UTC (permalink / raw)
  To: John Broadbent; +Cc: Yocto-mailing-list

On Thu, Jul 21, 2022 at 7:11 PM John Broadbent <jebr@google.com> wrote:
>
> The examples are not separately buildable, and not installed. So there
> is currently no way to make a sperate ${PN}-examples.
> We don't need the examples now, but we are interested to know what you think.
>

I see, that should be ok. I do see a few issues with the patch see below.

> Thanks for the speedy review.
> Joh Broadbent
>
>
> On Thu, Jul 21, 2022 at 3:46 PM Khem Raj <raj.khem@gmail.com> wrote:
> >
> > On Thu, Jul 21, 2022 at 6:39 PM jebr via lists.yoctoproject.org
> > <jebr=google.com@lists.yoctoproject.org> wrote:
> > >
> > > From: John Edward Broadbent <jebr@google.com>
> > >
> > > Libhoth is usb protocol implementation which is required for hoth class
> > > devices
> > >
> > > Signed-off-by: John Edward Broadbent <jebr@google.com>
> > > ---
> > >  meta-tpm/recipes-tpm/hoth/libhoth_git.bb | 17 +++++++++++++++++
> > >  1 file changed, 17 insertions(+)
> > >  create mode 100644 meta-tpm/recipes-tpm/hoth/libhoth_git.bb
> > >
> > > diff --git a/meta-tpm/recipes-tpm/hoth/libhoth_git.bb b/meta-tpm/recipes-tpm/hoth/libhoth_git.bb
> > > new file mode 100644
> > > index 0000000..59f52ad
> > > --- /dev/null
> > > +++ b/meta-tpm/recipes-tpm/hoth/libhoth_git.bb
> > > @@ -0,0 +1,17 @@
> > > +SUMMARY = "Google Hoth USB library"
> > > +DESCRIPTION = "Libraries and example programs for interacting with a \
> > > +               hoth-class root of trust."
> > > +HOME_PAGE = https://github.com/google/libhoth

This should be

HOMEPAGE = "https://github.com/google/libhoth"

> > > +
> > > +LICENSE = "Apache-2.0"
> > > +LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
> > > +
> > > +SRC_URI = "git://github.com/google/libhoth;protocol=https;branch=main"
> > > +SRCREV = "b31307b7bf525efda0164e461fb1e0a5c302d306"

This revision does not build with musl/clang atleast since there is a
shadowing of a macro going on. You need to avoid that
I cooked a quick patch here

http://sprunge.us/LT8yuB

You might want to take a look.

> > > +
> > > +DEPENDS += "libusb1"
> > > +
> > > +S = "${WORKDIR}/git"
> > > +
> > > +inherit pkgconfig meson
> >
> > Dont we want to package the examples too ? perhaps in a ${PN}-examples
> > or something ?
> >
> > > +
> > > --
> > > 2.37.1.359.gd136c6c3e2-goog
> > >
> > >
> > > -=-=-=-=-=-=-=-=-=-=-=-
> > > Links: You receive all messages sent to this group.
> > > You automatically follow any topics you start or reply to.
> > > View/Reply Online (#57610): https://lists.yoctoproject.org/g/yocto/message/57610
> > > Mute This Topic: https://lists.yoctoproject.org/mt/92537492/1997914
> > > Group Owner: yocto+owner@lists.yoctoproject.org
> > > Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [raj.khem@gmail.com]
> > > -=-=-=-=-=-=-=-=-=-=-=-
> > >


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

end of thread, other threads:[~2022-07-21 23:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-21 22:38 [meta-security][PATCH] meta-security: Add recipe for libhoth jebr
2022-07-21 22:45 ` [yocto] " Khem Raj
2022-07-21 23:11   ` John Broadbent
2022-07-21 23:27     ` Khem Raj

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.