diff options
Diffstat (limited to 'meta-oe/recipes-bsp/ledmon/ledmon_0.97.bb')
| -rw-r--r-- | meta-oe/recipes-bsp/ledmon/ledmon_0.97.bb | 39 |
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 @@ | |||
| 1 | SUMMARY = "Intel(R) Enclosure LED Utilities" | ||
| 2 | |||
| 3 | DESCRIPTION = "The utilities are designed primarily to be used on storage servers \ | ||
| 4 | utilizing MD devices (aka Linux Software RAID) for RAID arrays.\ | ||
| 5 | " | ||
| 6 | HOMEPAGE = "https://github.com/intel/ledmon" | ||
| 7 | |||
| 8 | LICENSE = "LGPL-2.0-only" | ||
| 9 | LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=4fbd65380cdd255951079008b364516c" | ||
| 10 | |||
| 11 | DEPENDS = "sg3-utils udev pciutils" | ||
| 12 | |||
| 13 | inherit autotools systemd pkgconfig | ||
| 14 | |||
| 15 | SYSTEMD_SERVICE:${PN} = "ledmon.service" | ||
| 16 | |||
| 17 | SRC_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 | |||
| 21 | SRCREV = "b0edae14e8660b80ffe0384354038a9f62e2978d" | ||
| 22 | |||
| 23 | COMPATIBLE_HOST = "(i.86|x86_64).*-linux" | ||
| 24 | COMPATIBLE_HOST:libc-musl = "null" | ||
| 25 | |||
| 26 | S = "${WORKDIR}/git" | ||
| 27 | |||
| 28 | EXTRA_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. | ||
| 32 | CFLAGS += "-I${S}/config" | ||
| 33 | |||
| 34 | do_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 | } | ||
