Initial Commit

- initial default booting image
This commit is contained in:
2026-11-06 20:45:42 +01:00
commit b8783708ae
15201 changed files with 602532 additions and 0 deletions

View File

@@ -0,0 +1,65 @@
config BR2_PACKAGE_TPM2_TSS
bool "tpm2-tss"
depends on !BR2_STATIC_LIBS # dlfcn.h
select BR2_PACKAGE_OPENSSL if !BR2_PACKAGE_MBEDTLS
select BR2_PACKAGE_OPENSSL_FORCE_LIBOPENSSL if !BR2_PACKAGE_MBEDTLS
help
OSS implementation of the Trusted Computing Group's (TCG) TPM2
Software Stack (TSS). This stack consists of the following
layers from top to bottom:
* System API (SAPI) as described in the system level API and
TPM command transmission interface specification. This API
is a 1-to-1 mapping of the TPM2 commands documented in Part
3 of the TPM2 specification. Additionally there are
asynchronous versions of each command. These asynchronous
variants may be useful for integration into event-driven
programming environments. Both the synchronous and
asynchronous API are exposed through a single library:
libtss2-sys.
* TPM Command Transmission Interface (TCTI) that is described
in the same specification. This API provides a standard
interface to transmit / receive TPM command / response
buffers. It is expected that any number of libraries
implementing the TCTI API will be implemented as a way to
abstract various platform specific IPC mechanisms. Currently
this repository provides two TCTI implementations:
libtss2-tcti-device and libtss2-tcti-mssim. The prior should
be used for direct access to the TPM through the Linux
kernel driver. The later implements the protocol exposed by
the Microsoft software TPM2 simulator.
https://github.com/tpm2-software/tpm2-tss
if BR2_PACKAGE_TPM2_TSS
config BR2_PACKAGE_TPM2_TSS_FAPI
bool "FAPI support"
depends on BR2_TOOLCHAIN_HAS_SYNC_4 # json-c
depends on !BR2_PACKAGE_MBEDTLS # configure: FAPI has to be compiled with OpenSSL
select BR2_PACKAGE_JSON_C
select BR2_PACKAGE_LIBCURL
select BR2_PACKAGE_UTIL_LINUX
select BR2_PACKAGE_UTIL_LINUX_LIBS
select BR2_PACKAGE_UTIL_LINUX_LIBUUID
help
This option allows to enable Feature API (FAPI). Feature
API (FAPI) as described in the "TSS 2.0 Feature API
Specification" along with "TSS 2.0 JSON Data Types and
Policy Language Specification" This API is designed to be
very high-level API, intended to make programming with the
TPM as simple as possible. The API functions are exposed
through a single library: libtss2-fapi.
https://trustedcomputinggroup.org/wp-content/uploads/TSS_FAPI_v0.94_r04_pubrev.pdf
https://trustedcomputinggroup.org/wp-content/uploads/TSS_JSON_Policy_v0.7_r04_pubrev.pdf
comment "FAPI not supported with Mbed TLS backend"
depends on BR2_TOOLCHAIN_HAS_SYNC_4
depends on BR2_PACKAGE_MBEDTLS
endif
comment "tpm2-tss needs a toolchain w/ dynamic library"
depends on BR2_STATIC_LIBS

View File

@@ -0,0 +1,3 @@
# Locally computed:
sha256 37f1580200ab78305d1fc872d89241aaee0c93cbe85bc559bf332737a60d3be8 tpm2-tss-4.1.3.tar.gz
sha256 18c1bf4b1ba1fb2c4ffa7398c234d83c0d55475298e470ae1e5e3a8a8bd2e448 LICENSE

View File

@@ -0,0 +1,53 @@
################################################################################
#
# tpm2-tss
#
################################################################################
TPM2_TSS_VERSION = 4.1.3
TPM2_TSS_SITE = https://github.com/tpm2-software/tpm2-tss/releases/download/$(TPM2_TSS_VERSION)
TPM2_TSS_LICENSE = BSD-2-Clause
TPM2_TSS_LICENSE_FILES = LICENSE
TPM2_TSS_CPE_ID_VENDOR = tpm2_software_stack_project
TPM2_TSS_CPE_ID_PRODUCT = tpm2_software_stack
TPM2_TSS_INSTALL_STAGING = YES
TPM2_TSS_DEPENDENCIES = host-pkgconf
# systemd-sysusers and systemd-tmpfiles are only used at install time
# to trigger the creation of users and tmpfiles, which we do not care
# about at build time. groupadd, useradd, and setfacl are used in the
# fallback path when systemd-sysusers or systemd-tmpfiles are missing
# and their failure is ignored anyway.
TPM2_TSS_CONF_OPTS = \
ac_cv_prog_result_groupadd=yes \
ac_cv_prog_result_setfacl=yes \
ac_cv_prog_systemd_sysusers=no \
ac_cv_prog_systemd_tmpfiles=no \
ac_cv_prog_useradd=yes \
ac_cv_prog_groupadd=yes \
--disable-doxygen-doc \
--disable-defaultflags
ifeq ($(BR2_PACKAGE_OPENSSL),y)
TPM2_TSS_DEPENDENCIES += openssl
TPM2_TSS_CONF_OPTS += --with-crypto=ossl
else ifeq ($(BR2_PACKAGE_MBEDTLS),y)
TPM2_TSS_DEPENDENCIES += mbedtls
TPM2_TSS_CONF_OPTS += --with-crypto=mbed
endif
# uses C99 code but forgets to pass -std=c99 when --disable-defaultflags is used
TPM2_TSS_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -std=c99"
ifeq ($(BR2_PACKAGE_TPM2_TSS_FAPI),y)
TPM2_TSS_DEPENDENCIES += json-c libcurl util-linux-libs
TPM2_TSS_CONF_OPTS += --enable-fapi
else
TPM2_TSS_CONF_OPTS += --disable-fapi --disable-policy
endif
define TPM2_TSS_USERS
tss -1 tss -1 * - - - tss user for tpm2
endef
$(eval $(autotools-package))