Skip to content

[JA] Added wolfTPM Appendix for build with bare-metal#255

Open
tamasan238 wants to merge 1 commit intowolfSSL:masterfrom
tamasan238:pr242
Open

[JA] Added wolfTPM Appendix for build with bare-metal#255
tamasan238 wants to merge 1 commit intowolfSSL:masterfrom
tamasan238:pr242

Conversation

@tamasan238
Copy link
Member

following #242

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a new Japanese appendix section to the wolfTPM documentation describing how to build and integrate wolfTPM in bare-metal (no-OS) embedded environments, aligning with the upstream documentation update referenced in PR #242.

Changes:

  • Added a new “ベアメタル環境向けのビルド” section with step-by-step integration instructions (macros, user_settings.h, include paths, sources, HAL callback, init/usage).
  • Included configuration examples for footprint reduction, chip selection, I2C support, key storage, and troubleshooting guidance.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

### ベアメタル環境向けのビルド

wolfTPMは、OSが存在しないベアメタルの組み込み環境向けにもビルドできます。
このセクションでは、wolfTPMをユーザのプロジェクトへ導入し、autotoolsやCMakeを使用してコンパイルするまでの手順を解説します。
Copy link

Copilot AI Feb 25, 2026

Choose a reason for hiding this comment

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

このセクションの説明が「autotoolsやCMakeを使用してコンパイル」となっていますが、後続の手順はソースファイルをプロジェクトに取り込んで直接ビルドする流れになっています(autotools/CMakeを使わない手順)。内容と矛盾するので、文言を「autotools/CMakeを使用せず(ソースを直接コンパイルして)」のように修正した方がよいです。

Suggested change
このセクションでは、wolfTPMをユーザのプロジェクトへ導入し、autotoolsやCMakeを使用してコンパイルするまでの手順を解説します
このセクションでは、wolfTPMをユーザのプロジェクトへ導入し、autotools/CMakeを使用せず(ソースを直接コンパイルして)ビルドするまでの手順を解説します

Copilot uses AI. Check for mistakes.
wolfTPMは、OSが存在しないベアメタルの組み込み環境向けにもビルドできます。
このセクションでは、wolfTPMをユーザのプロジェクトへ導入し、autotoolsやCMakeを使用してコンパイルするまでの手順を解説します。

このセクションで示す手順は、ARM Cortex-MやRISC-V、UltraScale+/Versal、Microbrazeのような一般的なマイコンボードに適用できます。
Copy link

Copilot AI Feb 25, 2026

Choose a reason for hiding this comment

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

「Microbraze」は誤記と思われます(同ページ内のHAL例リンクでは「Microblaze」表記)。「Microblaze」に修正してください。

Suggested change
このセクションで示す手順は、ARM Cortex-MやRISC-V、UltraScale+/Versal、Microbrazeのような一般的なマイコンボードに適用できます
このセクションで示す手順は、ARM Cortex-MやRISC-V、UltraScale+/Versal、Microblazeのような一般的なマイコンボードに適用できます

Copilot uses AI. Check for mistakes.
int my_rng_seed(byte* seed, word32 sz)
{
int rc;
(void)os;
Copy link

Copilot AI Feb 25, 2026

Choose a reason for hiding this comment

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

サンプル関数内の(void)os;は、この関数スコープでosが定義されていないため、そのままだとコンパイルできません。未使用変数抑止が目的なら、実際に未使用の引数/変数に対して行うか、この行自体を削除してください。

Suggested change
(void)os;

Copilot uses AI. Check for mistakes.
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.

4 participants