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

Liwei Song liwei.song at windriver.com
Tue Mar 26 00:12:39 PDT 2019



On 03/26/2019 12:02 PM, Mittal, Anuj wrote:
> On Mon, 2019-03-25 at 23:08 -0400, Liwei Song wrote:
>> Enable LED support for Intel Virtual RAID On CPU.
>>
>> Signed-off-by: Liwei Song <liwei.song at 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"
> 
> sg3-utils is in meta-oe so this would fail.

Oh, just found meta-intel did not depend meta-oe.
If we do not have plan to add that dependency, perhaps this tools
should send to meta-oe?


> 
>> +
>> +# 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"
> 
> This isn't the revision that 0.90 tag is pointing to. Either the SRCREV
> should be changed or PV should be 0.9+git${SRCPV}?

Sorry, I may understand wrongly of Ross comment in v1,
You mean I need use this revision, right?

commit 8cb8c5fe04afbb328a61115c7d5bcc639419110d
Author: Michal Zylowski <michal.zylowski at intel.com>
Date:   Mon Feb 12 13:13:59 2018 +0100

    Release 0.90
    
    Signed-off-by: Michal Zylowski <michal.zylowski at intel.com>
    Acked-by: Mariusz Dabrowski <mariusz.dabrowski at intel.com>
    Acked-by: Artur Paszkiewicz <artur.paszkiewicz at intel.com>

If so, I have one question here, does that mean all the commit newer than
this one(in another word, the commit is not contained in this tag),
we need add it as separate patch to this recipe through "file://"


> 
>> +
>> +COMPATIBLE_HOST = "(i.86|x86_64).*-linux"
>> +
>> +S = "${WORKDIR}/git"
>> +EXTRA_OEMAKE = "CC='${CC}' LDFLAGS='${LDFLAGS}' CFLAGS='${CFLAGS}'
>> CPPFLAGS='${CPPFLAGS}'"
>> +
>> +do_compile() {
>> +        oe_runmake
>> +}
> 
> This isn't necessary. However, it builds manpages too even when api-
> documentation is not enabled. So this should be 'oe_runmake ledmon
> ledctl'?

OK, this should be removed.

> 
>> +
>> +do_install() {
>> +	oe_runmake install DESTDIR=${D}
> 
> This is no longer required.
> 
>> +	oe_runmake DESTDIR=${D}  install install-systemd
> 
> This recipe should also have 'inherit systemd'.

Thanks, will modify according this.

Liwei.



> 
> Thanks,
> 
> Anuj
> 


More information about the meta-intel mailing list