[JA] Added wolfTPM Appendix for build with bare-metal#255
[JA] Added wolfTPM Appendix for build with bare-metal#255tamasan238 wants to merge 1 commit intowolfSSL:masterfrom
Conversation
There was a problem hiding this comment.
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を使用してコンパイルするまでの手順を解説します。 |
There was a problem hiding this comment.
このセクションの説明が「autotoolsやCMakeを使用してコンパイル」となっていますが、後続の手順はソースファイルをプロジェクトに取り込んで直接ビルドする流れになっています(autotools/CMakeを使わない手順)。内容と矛盾するので、文言を「autotools/CMakeを使用せず(ソースを直接コンパイルして)」のように修正した方がよいです。
| このセクションでは、wolfTPMをユーザのプロジェクトへ導入し、autotoolsやCMakeを使用してコンパイルするまでの手順を解説します。 | |
| このセクションでは、wolfTPMをユーザのプロジェクトへ導入し、autotools/CMakeを使用せず(ソースを直接コンパイルして)ビルドするまでの手順を解説します。 |
| wolfTPMは、OSが存在しないベアメタルの組み込み環境向けにもビルドできます。 | ||
| このセクションでは、wolfTPMをユーザのプロジェクトへ導入し、autotoolsやCMakeを使用してコンパイルするまでの手順を解説します。 | ||
|
|
||
| このセクションで示す手順は、ARM Cortex-MやRISC-V、UltraScale+/Versal、Microbrazeのような一般的なマイコンボードに適用できます。 |
There was a problem hiding this comment.
「Microbraze」は誤記と思われます(同ページ内のHAL例リンクでは「Microblaze」表記)。「Microblaze」に修正してください。
| このセクションで示す手順は、ARM Cortex-MやRISC-V、UltraScale+/Versal、Microbrazeのような一般的なマイコンボードに適用できます。 | |
| このセクションで示す手順は、ARM Cortex-MやRISC-V、UltraScale+/Versal、Microblazeのような一般的なマイコンボードに適用できます。 |
| int my_rng_seed(byte* seed, word32 sz) | ||
| { | ||
| int rc; | ||
| (void)os; |
There was a problem hiding this comment.
サンプル関数内の(void)os;は、この関数スコープでosが定義されていないため、そのままだとコンパイルできません。未使用変数抑止が目的なら、実際に未使用の引数/変数に対して行うか、この行自体を削除してください。
| (void)os; |
following #242