766ac5d065
- change clock_gettime option from yes/no style to disable/enable one
(still omitting the explicit disable to keep the configure logic
defaulting to yes in case no rdtsc is available)
- change to set all available configure options:
* '--enable-daemon': previous default
* '--disable-diagnostic': previous default
* '-disable-init': do not install init files as buildroot ships its
own sysv/systemd init files
* '--disable-nistest': disable tests, previous default
* '--disable-enttest': new option, disable tests
* '--disable-olt': previous default was yes, disable builtin test
* '--enable-tune': previous default
- add patch to fix uclibc compile (disable dependency on sys/auxv.h
introduced with upstream commit [1])
Changelog ([2]):
- made enttest configurable
- havegecmd.c - new command added to close the communication socket
[Werner Fink]
[1] 26d35af198
[2] https://github.com/jirka-h/haveged/releases/tag/v1.9.14
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
46 lines
1.2 KiB
Makefile
46 lines
1.2 KiB
Makefile
################################################################################
|
|
#
|
|
# haveged
|
|
#
|
|
################################################################################
|
|
|
|
HAVEGED_VERSION = 1.9.14
|
|
HAVEGED_SITE = $(call github,jirka-h,haveged,v$(HAVEGED_VERSION))
|
|
HAVEGED_LICENSE = GPL-3.0+
|
|
HAVEGED_LICENSE_FILES = COPYING
|
|
HAVEGED_SELINUX_MODULES = entropyd
|
|
# patch touching configure.ac
|
|
HAVEGED_AUTORECONF = YES
|
|
|
|
# '--disable-init' as buildroot ships its own sysv/systemd init files
|
|
HAVEGED_CONF_OPTS = \
|
|
--enable-daemon \
|
|
--disable-diagnostic \
|
|
--disable-init \
|
|
--disable-nistest \
|
|
--disable-enttest \
|
|
--disable-olt \
|
|
--enable-tune
|
|
|
|
ifeq ($(BR2_sparc_v8)$(BR2_sparc_leon3),y)
|
|
HAVEGED_CONF_OPTS += --enable-clock_gettime
|
|
endif
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
|
|
HAVEGED_CONF_OPTS += --enable-threads
|
|
else
|
|
HAVEGED_CONF_OPTS += --disable-threads
|
|
endif
|
|
|
|
define HAVEGED_INSTALL_INIT_SYSV
|
|
$(INSTALL) -m 755 -D package/haveged/S21haveged \
|
|
$(TARGET_DIR)/etc/init.d/S21haveged
|
|
endef
|
|
|
|
define HAVEGED_INSTALL_INIT_SYSTEMD
|
|
$(INSTALL) -D -m 644 package/haveged/haveged.service \
|
|
$(TARGET_DIR)/usr/lib/systemd/system/haveged.service
|
|
endef
|
|
|
|
$(eval $(autotools-package))
|