Re: TSS aligned with TPM2 engine

Fredrik Ternerot

On Sat, Dec 22, 2018 at 7:21 PM James Bottomley
<James.Bottomley@...> wrote:

On Fri, 2018-12-21 at 15:22 +0000, Doug Fraser wrote:
On to openssl-tpm2-engine:

I had to make one small change to openssl-tpm2-engine before running
bootstrap/configure prior to the build.
Right after pulling the git tree, at the top of the tree I do:

#$ sed -i 's/ create_tpm2_key.1//'

This removes a documentation dependency on help2man.
This is required because I am cross-compiling, and I cannot execute
`create_tpm2_key --help` on the build host to extract the document.

It would be helpful if there were a configure option to block
documentation generation completely.
Well, as I said, I've never actually done a cross compile. However,
leafing through the somewhat confusing automake documentation on cross
compiles, I think this is the fix.
I can confirm that this solves the problem with help2man for me.

The changes in are present in the latest commit (b43aa97
Version: 2.1.1). Would you mind to add the changes in as




diff --git a/ b/
index 8c24dbe..7d3b645 100644
--- a/
+++ b/
@@ -1,8 +1,11 @@
-EXTRA_DIST = README openssl.cnf.sample create_tpm2_key.1
+EXTRA_DIST = README openssl.cnf.sample

+EXTRA_DIST += create_tpm2_key.1
man1_MANS = create_tpm2_key.1

diff --git a/ b/
index ea544ea..a96206c 100644
--- a/
+++ b/
@@ -4,6 +4,8 @@

AC_INIT(openssl-tpm2-engine, 2.1.0, <James.Bottomley@...>)
+AM_CONDITIONAL(NATIVE_BUILD, test "x$cross_compiling" = "xno")


Join to automatically receive all group messages.