1.5 KiB
wolfTPM Examples
Several wolfTPM example applications are included in this layer, these include:
- attestation
- endorsement
- keygen
- pcr
- seal
- bench
- firmware
- management
- pkcs7
- timestamp
- boot
- gpio
- native
- tls
- wrap
- csr
- nvram
The recipe for these applications is located at:
meta-wolfssl/recipes-examples/wolftpm/wolftpm-examples.bb
You'll need to compile wolTPM and the examples directory. This can be done with these commands in the build directory:
$ bitbake wolftpm
$ bitbake wolftpm-examples
To install these applications into your image, you will
need to edit your "build/conf/local.conf" file and add
wolftpm
and wolftpm-examples
to your "IMAGE_INSTALL"
variable like so:
- For Dunfell and newer versions of Yocto
IMAGE_INSTALL:append = " wolftpm wolftpm-examples"
- For versions of Yocto older than Dunfell
IMAGE_INSTALL_append = " wolftpm wolftpm-examples"
When your image builds, these will be installed to the
/usr/bin/examples
system directory. When inside your
executing image, you can run them from the terminal.
For example, we can run the benchmark from the examples directory like so:
$ cd bench
$ ./bench
Refer to the wolfTPM Examples README for more information on the examples directory.
Refer to the meta-wolfssl README for more information on setting up your layer.