2022-06-01 21:47:46 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# wolftpm
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2022-07-18 00:45:23 +02:00
|
|
|
WOLFTPM_VERSION = 2.4.0
|
2022-06-01 21:47:46 +02:00
|
|
|
WOLFTPM_SITE = $(call github,wolfSSL,wolfTPM,v$(WOLFTPM_VERSION))
|
|
|
|
WOLFTPM_INSTALL_STAGING = YES
|
|
|
|
WOLFTPM_LICENSE = GPL-2.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 \
|
2022-06-12 10:45:37 +02:00
|
|
|
--enable-devtpm
|
2022-06-01 21:47:46 +02:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2022-06-12 10:45:37 +02:00
|
|
|
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
|
|
|
|
|
2022-07-18 00:45:24 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_WOLFTPM_ST33),y)
|
|
|
|
WOLFTPM_CONF_OPTS += --enable-st33
|
|
|
|
else
|
|
|
|
WOLFTPM_CONF_OPTS += --disable-st33
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_WOLFTPM_NPCT750),y)
|
|
|
|
WOLFTPM_CONF_OPTS += --enable-nuvoton
|
|
|
|
else
|
|
|
|
WOLFTPM_CONF_OPTS += --disable-nuvoton
|
|
|
|
endif
|
|
|
|
|
2022-06-01 21:47:46 +02:00
|
|
|
$(eval $(autotools-package))
|