[OE-core] [PATCH] kernel.bbclass: add lzop dependency

Khem Raj raj.khem at gmail.com
Tue Aug 9 19:27:01 UTC 2016


> On Aug 9, 2016, at 5:08 AM, Mike Looijmans <mike.looijmans at topic.nl> wrote:
> 
> I've been adding "lzop-native" to a lot of kernel recipes because you also need it when generating an LZO compressed kernel (I like my boot time to be under 1 second).
> 
> It's a small dependency which is hard to automatically figure out, since there are a number of ways to trigger it (we just found two). I would welcome this patch very much, and I don't think many will suffer…

From linux.inc days there is a python snippet which can do this conditionally e.g. see

https://github.com/kraj/meta-raspberrypi/blob/master/recipes-kernel/linux/linux-rpi.inc#L121

> 
> 
> On 01-08-16 14:32, Trevor Woerner wrote:
>> If the initramfs image is type lzo, then a native lzop is needed.
>> 
>> Signed-off-by: Trevor Woerner <twoerner at gmail.com>
>> ---
>>  meta/classes/kernel.bbclass | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>> 
>> diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
>> index fa76a14..db42744 100644
>> --- a/meta/classes/kernel.bbclass
>> +++ b/meta/classes/kernel.bbclass
>> @@ -1,7 +1,7 @@
>>  inherit linux-kernel-base kernel-module-split
>> 
>>  PROVIDES += "virtual/kernel"
>> -DEPENDS += "virtual/${TARGET_PREFIX}binutils virtual/${TARGET_PREFIX}gcc kmod-native depmodwrapper-cross bc-native"
>> +DEPENDS += "virtual/${TARGET_PREFIX}binutils virtual/${TARGET_PREFIX}gcc kmod-native depmodwrapper-cross bc-native lzop-native"
>> 
>>  S = "${STAGING_KERNEL_DIR}"
>>  B = "${WORKDIR}/build"
>> 
> 
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 204 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20160809/24c4e7e5/attachment-0002.sig>


More information about the Openembedded-core mailing list