4bb884a3c6
wolfTPM is an open-source TPM 2.0 stack with backward API compatibility, designed for embedded use. It is highly portable, and has native support for Linux. wolfTPM has a compact code size with low resource usage. Signed-off-by: Dimitar Tomov <dimi@tpm.dev> [Thomas: - Fix ordering in the DEVELOPERS file, use full name - Add missing !BR2_STATIC_LIBS dependency - Use "select" and not "select on" - Make sure wolftpm-config script gets post-processed by using <pkg>_CONFIG_SCRIPTS - Add missing --with-wolfcrypt option. - Rename WOLFTPM_CONFIG_RPATH to WOLFTPM_TOUCH_CONFIG_RPATH and use mkdir -p to make the hook re-executable] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
33 lines
924 B
Makefile
33 lines
924 B
Makefile
################################################################################
|
|
#
|
|
# wolftpm
|
|
#
|
|
################################################################################
|
|
|
|
WOLFTPM_VERSION = 2.3.1
|
|
WOLFTPM_SITE = $(call github,wolfSSL,wolfTPM,v$(WOLFTPM_VERSION))
|
|
WOLFTPM_INSTALL_STAGING = YES
|
|
WOLFTPM_LICENSE = GPL-2.0+
|
|
WOLFTPM_LICENSE_FILES = LICENSE
|
|
WOLFTPM_CPE_ID_VENDOR = wolfssl
|
|
WOLFTPM_DEPENDENCIES = host-pkgconf
|
|
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 \
|
|
--with-wolfcrypt=$(STAGING_DIR)/usr
|
|
|
|
# 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
|
|
|
|
$(eval $(autotools-package))
|