975af835d1
cpe:2.3🅰️wolfssl:wolftpm has never been a valid CPE identifier for this package: https://nvd.nist.gov/products/cpe/search/results?namingFormat=2.3&keyword=cpe%3A2.3%3Aa%3Awolfssl%3Awolftpm Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
39 lines
1.0 KiB
Makefile
39 lines
1.0 KiB
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_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
|
|
|
|
$(eval $(autotools-package))
|