Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

tpm2-tss fails in warrior #135

Open
emilm opened this issue Dec 4, 2019 · 4 comments
Open

tpm2-tss fails in warrior #135

emilm opened this issue Dec 4, 2019 · 4 comments

Comments

@emilm
Copy link

emilm commented Dec 4, 2019

automake: error: cannot open < aminclude_static.am: No such file or directory

I am using warrior branch in yocto, and master branch in meta-secure-core.

warrior uses autoconf-archive 2018.03.13. (https://git.yoctoproject.org/cgit.cgi/poky/tree/meta/recipes-devtools/autoconf-archive?h=warrior)

This is fixed in tpm2-tss tpm2-software/tpm2-tss#1256
Issue: tpm2-software/tpm2-tools#1291

patch: https://github.com/tpm2-software/tpm2-tss/pull/1256/files/4403f3bb15bd233d5d52a8e09ada71716c9a0465

So all you need to do is to add "AX_ADD_AM_MACRO_STATIC([])" to https://github.com/jiazhang0/meta-secure-core/blob/master/meta-tpm2/recipes-tpm/tpm2-tss/tpm2-tss/0001-build-update-for-ax_code_coverage.m4-version-2019.01.patch#L47

Or am I way off here?

@lumag

@ksaye
Copy link

ksaye commented Jan 5, 2020

@emilm, were you able to get this to work? I am struggling with the same error on warrior.

@emilm
Copy link
Author

emilm commented Jan 5, 2020

@ksaye Yes, sorta, I moved on to meta-security instead, which works with TPM2, even the virtual TPM2 device ! https://git.yoctoproject.org/cgit/cgit.cgi/meta-security - and applied libtpm_0.7.0.bb in my own layer.

@2pack94
Copy link

2pack94 commented Jan 23, 2020

@ksaye if you still want to build it, I hacked the file "0001-build-update-for-ax_code_coverage.m4-version-2019.01.patch" to include the change that emilm proposed. This fixed the error for me. See the new file here:
fixed_patch.txt

@ckrzen
Copy link

ckrzen commented Feb 6, 2020

Fixed, for me, while configuring tpm2-tss-2.3.2 by installing autoconf-archive from here: http://gnu.mirrors.pair.com/autoconf-archive/?C=M;O=D

SOURCE: openbmc/sdbusplus#29

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants