From a12a37659db90a5534349f81fbe3744431f75b1d Mon Sep 17 00:00:00 2001 From: Liwei Song Date: Mon, 8 Apr 2019 04:26:20 -0400 Subject: ledmon: control hard disk led for RAID arrays Enable LED support for Intel Virtual RAID On CPU. Fix build with musl Signed-off-by: Liwei Song Signed-off-by: Khem Raj --- meta-oe/recipes-bsp/ledmon/ledmon_git.bb | 34 ++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 meta-oe/recipes-bsp/ledmon/ledmon_git.bb (limited to 'meta-oe/recipes-bsp/ledmon/ledmon_git.bb') diff --git a/meta-oe/recipes-bsp/ledmon/ledmon_git.bb b/meta-oe/recipes-bsp/ledmon/ledmon_git.bb new file mode 100644 index 000000000..4376ad394 --- /dev/null +++ b/meta-oe/recipes-bsp/ledmon/ledmon_git.bb @@ -0,0 +1,34 @@ +SUMMARY = "Intel(R) Enclosure LED Utilities" + +DESCRIPTION = "The utilities are designed primarily to be used on storage servers \ + utilizing MD devices (aka Linux Software RAID) for RAID arrays.\ +" +HOMEPAGE = "https://github.com/intel/ledmon" + +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3 \ +" + +DEPENDS = "sg3-utils udev" + +inherit systemd + +SYSTEMD_SERVICE_${PN} = "ledmon.service" + +SRC_URI = "git://github.com/intel/ledmon;branch=master \ + file://0001-use-atexit-insead-of-on_exit-for-musl-compatibility.patch \ + file://0002-include-sys-select.h-and-sys-types.h.patch \ + " + +SRCREV = "ad1304ca1363d727425a1f23703c523e21feae4f" + +COMPATIBLE_HOST = "(i.86|x86_64).*-linux" + +S = "${WORKDIR}/git" +EXTRA_OEMAKE = "CC='${CC}' LDFLAGS='${LDFLAGS}' CFLAGS='${CFLAGS}'" + +do_install_append() { + install -d ${D}/${systemd_unitdir}/system + oe_runmake DESTDIR=${D} install + oe_runmake DESTDIR=${D}${systemd_unitdir}/system install-systemd +} -- cgit v1.2.3-54-g00ecf