交叉编译tpm-tool

Cross compiling tpm-toool

我正在尝试为 powerpc 交叉编译 tpm-tools。该命令 我用来配置的是:

./configure --target=powerpc-linux --enable-debug
--enable-cross-compile --enable-static --disable-shared
--host=powerpc-linux

我已将 CC 变量设置到合适的位置,但仍然出现错误:

checking for Tspi_Context_Create in -ltspi... no

configure: error: tss lib not found: libtspi.so

我不明白为什么 tpm-tools 在我搜索共享库时 将其配置为使用静态的。 任何帮助将不胜感激。

我找到了解决方法,可以使用 https://github.com/flihp/meta-measured/tree/master/recipes-tpm/tpm-tools 配方文件轻松完成交叉编译。