[oe] [meta-oe][PATCH] ledmon: control hard disk led for RAID arrays

Khem Raj raj.khem at gmail.com
Wed Apr 10 03:06:20 UTC 2019


On Mon, Apr 8, 2019 at 1:29 AM Liwei Song <liwei.song at windriver.com> wrote:
>
> Enable LED support for Intel Virtual RAID On CPU.
>
> Signed-off-by: Liwei Song <liwei.song at windriver.com>
> ---
>  meta-oe/recipes-bsp/ledmon/ledmon_git.bb | 32 ++++++++++++++++++++++++++++++++
>  1 file changed, 32 insertions(+)
>  create mode 100644 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 000000000000..14d70e51f5cc
> --- /dev/null
> +++ b/meta-oe/recipes-bsp/ledmon/ledmon_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 = " systemd sg3-utils"

inheriting systemd below will add the dependency too so please remove
it from DEPENDS

secondly, it fails to build on musl



> +
> +inherit systemd
> +
> +SYSTEMD_SERVICE_${PN} = "ledmon.service"
> +
> +SRC_URI = "git://github.com/intel/ledmon;branch=master \
> +"
> +
> +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
> +}
> --
> 2.7.4
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel


More information about the Openembedded-devel mailing list