Skip to content

Conversation

@aidangarske
Copy link
Contributor

@aidangarske aidangarske commented Jan 18, 2025

Description

This is the pr for adding Zephyr support for wolfTPM. I added wolftpm_wrap_test and wolftpm_wrap_caps samples. Each one builds successfully. The user_settings.h in the zephyr project is used correctly. that means if you want to supply your own you can either change the file or add yours in place.

Testing

setup Zephyr module in zephyrproject and build samples:

west update
cd [zephyrproject]
west build -p auto -b qemu_x86 modules/lib/wolftpm/zephyr/samples/wolftpm_wrap_test
west build -p auto -b qemu_x86 modules/lib/wolftpm/zephyr/samples/wolftpm_wrap_caps

A zephyr.yml Github CI workflow was added to test builds.

Documentation

For now I have made a zephyr/README.md with all the information needed to get started.

@aidangarske aidangarske self-assigned this Jan 18, 2025
@dgarske dgarske self-requested a review January 20, 2025 15:46
@dgarske dgarske self-assigned this Jan 20, 2025
Copy link
Contributor

@dgarske dgarske left a comment

Choose a reason for hiding this comment

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

Great work.

@dgarske dgarske marked this pull request as ready for review January 20, 2025 18:39
@dgarske dgarske requested a review from ColtonWilley January 20, 2025 18:40
@aidangarske aidangarske removed their assignment Jan 23, 2025
dgarske
dgarske previously approved these changes Jan 23, 2025
Copy link
Contributor

@dgarske dgarske left a comment

Choose a reason for hiding this comment

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

Wonderful work. As you get time please add a GitHub CI test. @ColtonWilley please review also.

@dgarske
Copy link
Contributor

dgarske commented Mar 6, 2025

Please resolve merge conflicts.

@night1rider
Copy link
Contributor

Rebased/Merge conflict fixed

@dgarske dgarske force-pushed the tpm_zephyr_support branch from 6355e86 to 8390676 Compare March 22, 2025 17:47
Copy link
Contributor

@dgarske dgarske left a comment

Choose a reason for hiding this comment

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

The test issue was due to a filename 'sample.ymlneeded to besample.yaml`.

Tests are now failing with:

/home/davidgarske/zephyr-3.4.0/zephyr/modules/lib/wolftpm/zephyr/samples/wolftpm_wrap_test/prj.conf:6: warning: attempt to assign the value 'y' to the undefined symbol WOLFTPM

/home/davidgarske/zephyr-3.4.0/zephyr/modules/lib/wolftpm/zephyr/samples/wolftpm_wrap_test/prj.conf:15: warning: attempt to assign the value 'y' to the undefined symbol WOLFSSL

/home/davidgarske/zephyr-3.4.0/zephyr/modules/lib/wolftpm/zephyr/samples/wolftpm_wrap_test/prj.conf:16: warning: attempt to assign the value 'y' to the undefined symbol WOLFSSL_BUILTIN

@aidangarske will you take a look?

@dgarske dgarske removed their assignment Mar 24, 2025
@dgarske dgarske removed the request for review from ColtonWilley April 8, 2025 23:09
@dgarske dgarske requested a review from ColtonWilley April 8, 2025 23:09
@dgarske dgarske self-assigned this May 7, 2025
@dgarske dgarske force-pushed the tpm_zephyr_support branch from 4cfcc91 to 920307c Compare May 12, 2025 22:53
@aidangarske aidangarske force-pushed the tpm_zephyr_support branch from 8bf12bf to 8b8bd47 Compare May 14, 2025 20:56
@aidangarske aidangarske requested review from dgarske and night1rider and removed request for ColtonWilley May 14, 2025 20:57
@dgarske dgarske merged commit 91ad740 into wolfSSL:master May 14, 2025
4 checks passed
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.

5 participants