db3a730e8c
Since the generic package infrastructure removed auto derivation of host dependencies [1] (2016.08), the host dependencies must be explicitly set. While adding the nettle host variant [2] the gmp dependency was not duplicated and host-nettle was built without host-gmp (or built with gmp installed on the build machine). While building host-gnutls required for building mkeficapsule u-boot tool, the configure script check if Libhogweed (nettle's companion library) is build with libgmp support. If internal toolchain is used, luckily host-gmp is built before building host-nettle (and host-gnutls). But when using prebuilt external toolchain, following error shows up : Libhogweed (nettle's companion library) 3.6 was not found. Note that you must compile nettle with gmp support. [1]4bdb067e38
[2]dac6e30118
[3]eb24bfa808
Signed-off-by: Fabien Thomas <fabien.thomas@smile.fr> Reviewed-by: Romain Naour <romain.naour@smile.fr> Acked-by: Romain Naour <romain.naour@smile.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
33 lines
949 B
Makefile
33 lines
949 B
Makefile
################################################################################
|
|
#
|
|
# nettle
|
|
#
|
|
################################################################################
|
|
|
|
NETTLE_VERSION = 3.9.1
|
|
NETTLE_SITE = https://ftp.gnu.org/gnu/nettle
|
|
NETTLE_DEPENDENCIES = host-m4 gmp
|
|
NETTLE_INSTALL_STAGING = YES
|
|
NETTLE_LICENSE = Dual GPL-2.0+/LGPL-3.0+
|
|
NETTLE_LICENSE_FILES = COPYING.LESSERv3 COPYINGv2
|
|
NETTLE_CPE_ID_VENDOR = nettle_project
|
|
# don't include openssl support for (unused) examples as it has problems
|
|
# with static linking
|
|
NETTLE_CONF_OPTS = --disable-openssl
|
|
|
|
HOST_NETTLE_DEPENDENCIES = host-m4 host-gmp
|
|
|
|
# ARM assembly requires v6+ ISA
|
|
ifeq ($(BR2_ARM_CPU_ARMV4)$(BR2_ARM_CPU_ARMV5)$(BR2_ARM_CPU_ARMV7M),y)
|
|
NETTLE_CONF_OPTS += --disable-assembler
|
|
endif
|
|
|
|
ifeq ($(BR2_ARM_CPU_HAS_NEON),y)
|
|
NETTLE_CONF_OPTS += --enable-arm-neon
|
|
else
|
|
NETTLE_CONF_OPTS += --disable-arm-neon
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|
|
$(eval $(host-autotools-package))
|