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

46
package/wolftpm/Config.in Normal file
View File

@@ -0,0 +1,46 @@
config BR2_PACKAGE_WOLFTPM
bool "wolftpm"
help
wolfTPM is a portable, open-source TPM 2.0 stack with
backward API compatibility, designed for embedded use.
No external dependencies, compact code size with low
resource usage.
https://www.wolfssl.com/
if BR2_PACKAGE_WOLFTPM
config BR2_PACKAGE_WOLFTPM_WOLFCRYPT
bool "wolfCrypt hooks"
default y
depends on BR2_TOOLCHAIN_HAS_THREADS # wolfssl
depends on !BR2_STATIC_LIBS # wolfssl-all
select BR2_PACKAGE_WOLFSSL
# not mandatory, but needed to get all features
select BR2_PACKAGE_WOLFSSL_ALL
help
Enable wolfCrypt hooks for RNG, Auth Sessions and Parameter
encryption. Disabling this option is not recommended as it
could create a security breach in most environments.
comment "wolfCrypt hooks need a toolchain w/ threads, dynamic library"
depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
config BR2_PACKAGE_WOLFTPM_ST33
bool "ST33 extra functionality"
help
Enable support of TPM 2.0 extra functionality offered by the
STMicroelectronics ST33 chip.
config BR2_PACKAGE_WOLFTPM_NUVOTON
bool "NPCT750 extra functionality"
help
Enable support of TPM 2.0 extra functionality offered by the
Nuvoton NPCT750 chip.
config BR2_PACKAGE_WOLFTPM_DEBUG
bool "Debug output"
help
Enable debug messages in wolfTPM.
endif

View File

@@ -0,0 +1,3 @@
# Locally calculated
sha256 b77ebfdf66dfa5e8881056c9512a6ab7d4ff8d0a920c36fc1eb311bd7f1882df wolftpm-3.10.0.tar.gz
sha256 8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903 LICENSE

View File

@@ -0,0 +1,56 @@
################################################################################
#
# wolftpm
#
################################################################################
WOLFTPM_VERSION = 3.10.0
WOLFTPM_SITE = $(call github,wolfSSL,wolfTPM,v$(WOLFTPM_VERSION))
WOLFTPM_INSTALL_STAGING = YES
WOLFTPM_LICENSE = GPL-3.0+
WOLFTPM_LICENSE_FILES = LICENSE
WOLFTPM_CONFIG_SCRIPTS = wolftpm-config
# wolfTPM's source code is released without a configure script,
# therefore we need autoreconf
WOLFTPM_AUTORECONF = YES
WOLFTPM_CONF_OPTS = \
--disable-examples \
--enable-devtpm
# Fix for missing config.rpath in the codebase
define WOLFTPM_TOUCH_CONFIG_RPATH
mkdir -p $(@D)/build-aux
touch $(@D)/build-aux/config.rpath
endef
WOLFTPM_PRE_CONFIGURE_HOOKS += WOLFTPM_TOUCH_CONFIG_RPATH
ifeq ($(BR2_PACKAGE_WOLFTPM_WOLFCRYPT),y)
WOLFTPM_CONF_OPTS += \
--enable-wolfcrypt \
--with-wolfcrypt=$(STAGING_DIR)/usr
WOLFTPM_DEPENDENCIES += wolfssl
else
WOLFTPM_CONF_OPTS += --disable-wolfcrypt
endif
ifeq ($(BR2_PACKAGE_WOLFTPM_ST33),y)
WOLFTPM_CONF_OPTS += --enable-st33
else
WOLFTPM_CONF_OPTS += --disable-st33
endif
ifeq ($(BR2_PACKAGE_WOLFTPM_NUVOTON),y)
WOLFTPM_CONF_OPTS += --enable-nuvoton
else
WOLFTPM_CONF_OPTS += --disable-nuvoton
endif
ifeq ($(BR2_PACKAGE_WOLFTPM_DEBUG),y)
WOLFTPM_CONF_OPTS += --enable-debug
else
WOLFTPM_CONF_OPTS += --disable-debug
endif
$(eval $(autotools-package))