commit | 15e9ca7da0f2ff4b05271f348948398c2d7cbf6f | [log] [tgz] |
---|---|---|
author | Edward Hill <ecgh@chromium.org> | Thu Jul 28 18:48:40 2022 +0000 |
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Aug 04 00:07:55 2022 +0000 |
tree | 28a986f99dda568bc03b86f1a4db87b28fc926b2 | |
parent | 74aeeec1ed837e7d360957482666c543bae1f8f5 [diff] |
pinweaver: Fix size_t in Ti50 bindings Re-generate bindings.rs with --size_t-is-usize bindgen option to avoid problems with host_emulation build of Ti50. Command used (also added as a make target for convenience): bindgen pinweaver.h --ctypes-prefix=cty --use-core \ --size_t-is-usize -- -I . > eal/ti50/src/bindings.rs BUG=b:165024054 TEST=CHIP=host_emulation PROJECT=ti50 make run -j Cq-Depend: chrome-internal:4901757 Change-Id: I0de81580e636d4a999762d991444237e2324d160 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/pinweaver/+/3792763 Tested-by: Edward Hill <ecgh@chromium.org> Reviewed-by: Yi Chou <yich@google.com> Commit-Queue: Edward Hill <ecgh@chromium.org> Reviewed-by: Andrey Pronin <apronin@chromium.org>
This directory contains reference PinWeaver code that can be used across implementation platforms.
It consists of:
pinweaver.h
- PinWeaver embedded API definitionpinweaver.c
- implementationpinweaver_eal.h
- API for Environment Abstraction Layer (EAL) used by PinWeavereal/**/pinweaver_eal_types.h
pinweaver_types.h
- header that is shared by PinWeaver implementation and PinWeaver clients that call it through platform-specific interface.eal/
foldereal/cr50
- implementation for cr50pinweaver_eal_types.h
- cr50-specific EAL API typespinweaver_eal.c
- cr50 implementation of EALeal/tpm_storage
- implementation for platforms that use TPM as PinWeaver data storagepinweaver_eal_types.h
- TPM-storage-specific EAL API typespinweaver_eal_tpm.h
- additional EAL functions required by TPM storagepinweaver_eal_linux.c
- implementation of non-storage EAL methods for Linux casetpm_storage_stubs.c
- empty implementation of storage EAL methodstpm_storage.c
- implementation of storage EAL methods on top of TSSmini_trunks/
- mini-TSS (TPM client software stack) used by TPM storage implementationpinweaver_eal.h
+ pinweaver_eal_tpm.h
EAL methodstss.h
+ *authorization_delegate.h
A platform implementation that uses TPM storage EAL option needs to implement all EAL methods implemented in pinweaver_eal_linux.c
(or use it as-is, if Linux compatible).