4e987b1cd4
Add semi-automatic libgcrypt dependency for i386/x86_64 to use RDRAND. This is exclusively used by rngd for which we don't yet ship an initscript/service file. Even so the user can choose to disable it at invocation time via the --no-drng option (which must be accounted for). Also add hash file. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
25 lines
690 B
Makefile
25 lines
690 B
Makefile
################################################################################
|
|
#
|
|
# rng-tools
|
|
#
|
|
################################################################################
|
|
|
|
RNG_TOOLS_VERSION = 5
|
|
RNG_TOOLS_SITE = http://downloads.sourceforge.net/project/gkernel/rng-tools/$(RNG_TOOLS_VERSION)
|
|
RNG_TOOLS_LICENSE = GPLv2
|
|
RNG_TOOLS_LICENSE_FILES = COPYING
|
|
|
|
# Work around for uClibc's lack of argp_*() functions
|
|
ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
|
|
RNG_TOOLS_CONF_ENV += LIBS="-largp"
|
|
RNG_TOOLS_DEPENDENCIES += argp-standalone
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBGCRYPT),y)
|
|
RNG_TOOLS_DEPENDENCIES += libgcrypt
|
|
else
|
|
RNG_TOOLS_CONF_OPTS += --without-libgcrypt
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|