Enable LED support for Intel Virtual RAID On CPU.

Signed-off-by: Liwei Song <liwei.s...@windriver.com>
---
v2: - use tag version for bb file name
    - append CFLAGS CPPFLAGS to EXTRA_OEMAKE
    - remove unused SYSROOT in do_compile
    - use install-systemd target to install systemd service
---
 recipes-bsp/ledmon/ledmon_0.90_git.bb | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)
 create mode 100644 recipes-bsp/ledmon/ledmon_0.90_git.bb

diff --git a/recipes-bsp/ledmon/ledmon_0.90_git.bb 
b/recipes-bsp/ledmon/ledmon_0.90_git.bb
new file mode 100644
index 000000000000..9f75facbc23a
--- /dev/null
+++ b/recipes-bsp/ledmon/ledmon_0.90_git.bb
@@ -0,0 +1,32 @@
+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 = " udev sg3-utils"
+
+# aviod parallel build issue traced at 
https://github.com/intel/ledmon/issues/26
+PARALLEL_MAKE = ""
+
+SRC_URI = "git://github.com/intel/ledmon;branch=master"
+SRCREV = "8a5d9526e5666e75625427b85a2586436651e89c"
+
+COMPATIBLE_HOST = "(i.86|x86_64).*-linux"
+
+S = "${WORKDIR}/git"
+EXTRA_OEMAKE = "CC='${CC}' LDFLAGS='${LDFLAGS}' CFLAGS='${CFLAGS}' 
CPPFLAGS='${CPPFLAGS}'"
+
+do_compile() {
+        oe_runmake
+}
+
+do_install() {
+       oe_runmake install DESTDIR=${D}
+       oe_runmake DESTDIR=${D}  install install-systemd
+}
-- 
2.7.4

-- 
_______________________________________________
meta-intel mailing list
meta-intel@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-intel

Reply via email to