summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-bsp/ledmon/ledmon_0.97.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-bsp/ledmon/ledmon_0.97.bb')
-rw-r--r--meta-oe/recipes-bsp/ledmon/ledmon_0.97.bb39
1 files changed, 39 insertions, 0 deletions
diff --git a/meta-oe/recipes-bsp/ledmon/ledmon_0.97.bb b/meta-oe/recipes-bsp/ledmon/ledmon_0.97.bb
new file mode 100644
index 0000000000..d431fd9a84
--- /dev/null
+++ b/meta-oe/recipes-bsp/ledmon/ledmon_0.97.bb
@@ -0,0 +1,39 @@
1SUMMARY = "Intel(R) Enclosure LED Utilities"
2
3DESCRIPTION = "The utilities are designed primarily to be used on storage servers \
4 utilizing MD devices (aka Linux Software RAID) for RAID arrays.\
5"
6HOMEPAGE = "https://github.com/intel/ledmon"
7
8LICENSE = "LGPL-2.0-only"
9LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=4fbd65380cdd255951079008b364516c"
10
11DEPENDS = "sg3-utils udev pciutils"
12
13inherit autotools systemd pkgconfig
14
15SYSTEMD_SERVICE:${PN} = "ledmon.service"
16
17SRC_URI = "git://github.com/intel/ledmon;branch=master;protocol=https \
18 file://0002-include-sys-select.h-and-sys-types.h.patch \
19 file://0001-fix-build-with-clang.patch"
20
21SRCREV = "b0edae14e8660b80ffe0384354038a9f62e2978d"
22
23COMPATIBLE_HOST = "(i.86|x86_64).*-linux"
24COMPATIBLE_HOST:libc-musl = "null"
25
26S = "${WORKDIR}/git"
27
28EXTRA_OEMAKE = "CC='${CC}' LDFLAGS='${LDFLAGS}' CFLAGS='${CFLAGS}'"
29
30# The ledmon sources include headers in ${S}/config to build but not in CFLAGS.
31# We need to add this include path in CFLAGS.
32CFLAGS += "-I${S}/config"
33
34do_install:append() {
35 if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
36 install -d ${D}${systemd_unitdir}/system
37 install -m 0755 ${S}/systemd/ledmon.service ${D}${systemd_unitdir}/system
38 fi
39}