Files
buildroot/package/rasdaemon/rasdaemon.mk
Bastien Curutchet 7b8892e900 package/rasdaemon: new package
Rasdaemon is a tool that aims at replacing edac-tool and provide a way
to collect all hardware error events reported by the Linux kernel in a
common framework.

This commit adds a new package to support rasdaemon in the 'Hardware
handling' section. It depends on libtraceevent to detect the ftrace
events generated by the kernel. There is currently a build issue when
sqlite isn't availaible while it's supposed to be an optional
dependency. This build issue is fixed by patch 0001 (which has been
also submitted to the rasdaemon project itself).

Support for the PCIe AER events is optionnal and implies a dependency on
pciutils so also add a dedicated 'sub-option' to enable it.

Add a SYSV init script to start / stop the daemon

Add myself to the DEVELOPERS file.

Reviewed-by: Fiona Klute <fiona.klute@gmx.de>
Signed-off-by: Bastien Curutchet <bastien.curutchet@bootlin.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2025-12-30 20:56:44 +01:00

41 lines
1.1 KiB
Makefile

################################################################################
#
# rasdaemon
#
################################################################################
RASDAEMON_VERSION = 0.8.4
RASDAEMON_SITE = $(call github,mchehab,rasdaemon,v$(RASDAEMON_VERSION))
RASDAEMON_LICENSE = GPL-2.0+
RASDAEMON_LICENSE_FILES = COPYING
RASDAEMON_AUTORECONF = YES
RASDAEMON_DEPENDENCIES = libtraceevent
# rasdaemon uses argp.h which is not provided by uclibc or musl by default.
# Use the argp-standalone package to provide this.
ifeq ($(BR2_PACKAGE_ARGP_STANDALONE),y)
RASDAEMON_DEPENDENCIES += argp-standalone
RASDAEMON_CONF_ENV += LIBS="-largp"
endif
ifeq ($(BR2_PACKAGE_SQLITE),y)
RASDAEMON_CONF_OPTS += --enable-sqlite3
RASDAEMON_DEPENDENCIES += sqlite
else
RASDAEMON_CONF_OPTS += --disable-sqlite3
endif
ifeq ($(BR2_PACKAGE_RASDAEMON_AER),y)
RASDAEMON_DEPENDENCIES += pciutils
RASDAEMON_CONF_OPTS += --enable-aer
else
RASDAEMON_CONF_OPTS += --disable-aer
endif
define RASDAEMON_INSTALL_INIT_SYSV
$(INSTALL) -m 0755 -D package/rasdaemon/S95rasdaemon \
$(TARGET_DIR)/etc/init.d/S95rasdaemon
endef
$(eval $(autotools-package))