Re: [meta-security][PATCH] meta-security: Add recipe for libhoth

Khem Raj

On Thu, Jul 21, 2022 at 7:11 PM John Broadbent <jebr@...> 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@...> wrote:

On Thu, Jul 21, 2022 at 6:39 PM jebr via
<> wrote:

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

Libhoth is usb protocol implementation which is required for hoth class

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

diff --git a/meta-tpm/recipes-tpm/hoth/ b/meta-tpm/recipes-tpm/hoth/
new file mode 100644
index 0000000..59f52ad
--- /dev/null
+++ b/meta-tpm/recipes-tpm/hoth/
@@ -0,0 +1,17 @@
+SUMMARY = "Google Hoth USB library"
+DESCRIPTION = "Libraries and example programs for interacting with a \
+ hoth-class root of trust."
This should be


+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
+SRC_URI = "git://;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

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 ?


Join to automatically receive all group messages.