Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yocto Linux meta recipe for wolfTPM examples #92

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

aidangarske
Copy link

@aidangarske aidangarske commented Oct 24, 2024

Description

Added recipes-examples/wolftpm/wolftpm-examples.bb and recipes-examples/wolftpm/wolftpm_%.bbappend to add support for wolfTPM examples directory.
IMAGE_INSTALL argument for wolftpm examples -> wolftpm-examples
Works on Scarthgap tested - core-image-minimal and core-image-full-cmdline
I also added a README in this directory with relevant info.
Runs in runqemu qemux86-64 in usr/bin/examples examples can be ran like this:

$ cd examples/wrap
$ ./wrap_test

Copy link
Contributor

@night1rider night1rider left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Few things that need to happen before we can merge this.

conf/layer.conf Outdated Show resolved Hide resolved
recipes-examples/wolftpm/README.md Outdated Show resolved Hide resolved
recipes-examples/wolftpm/README.md Outdated Show resolved Hide resolved
Copy link
Contributor

@night1rider night1rider left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to be a path issue, it is use the original host system's path and not the target systems.


```
$ cd bench
$ ./bench
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This step produces this:

Poky (Yocto Project Reference Distro) 4.0.19 qemux86-64 /dev/ttyS0

qemux86-64 login: root
root@qemux86-64:~# cd /usr/bin/  
Display all 100 possibilities? (y or n)
root@qemux86-64:~# cd /usr/bin/examples/
root@qemux86-64:/usr/bin/examples# cd ./bench/
root@qemux86-64:/usr/bin/examples/bench# ./bench 
./bench: line 202: cd: /home/dell5060/wolfWork/yocto/kirkstone-poky/build/tmp/work/core2-64-poky-linux/wolftpm/3.2.0-r0/build: No such file or directory
./bench: line 202: x86_64-poky-linux-gcc: command not found
root@qemux86-64:/usr/bin/examples/bench# 

Seems like it is use the host system file path still instead of the correct path for the target system.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll add this was with yocto kirkstone

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

Successfully merging this pull request may close these issues.

2 participants