Received: from smtp-out01.xworks.net (smtp-out01.xworks.net [31.25.48.218]) by mx.groups.io with SMTP id smtpd.web11.8199.1593775308326761624 for ; Fri, 03 Jul 2020 04:21:49 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@kabelmail.de header.s=mail header.b=YPjKJECk; spf=pass (domain: kabelmail.de, ip: 31.25.48.218, mailfrom: timon.ulrich@kabelmail.de) Received: from mailbackend4 (cluster06.xworks.net [10.100.1.80]) by smtp-out01.xworks.net (Postfix) with ESMTP id 4E3ED61B2E; Fri, 3 Jul 2020 13:21:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kabelmail.de; s=mail; t=1593775305; bh=/S1j0kZTjGlsAwg9sDPXrCkEOqXa0+KQZ9cfEW13aIQ=; h=In-Reply-To:From:To:Date:Subject:MIME-Version:Content-type; b=YPjKJECkJiB4178vrEJAgwAHCl2Y04dpc5NI1vmDzGW7cHXlpf9tozOPX/O+6wO66 G+BDmTiWuGhIvEC82lsm0gt3yx4SakFVzsKDV2osf/HUfzh6Pq8dQwIkDp5peoXhqZ RW0LDOEagqBVcuRni0paavKrRSNMTu7vXdGLJAEk= In-Reply-To: From: "T. Ulrich" To: "Richard Purdie" , openembedded-core@lists.openembedded.org CC: "Timon Ulrich" Message-ID: <1fa90cea2f584515afcc89578e5808bb@kabelmail.de> Date: Fri, 03 Jul 2020 13:21:43 +0200 X-Priority: 3 Subject: Re: [OE-core] [PATCH] kernel.bbclass: add lz4 dependency and fixthe call to lz4 MIME-Version: 1.0 Content-type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable

> Is there a way we can tell w= hich compression format is being
> used for the initramfs and mak= e the dependencies conditional?

Checking w= hether INITRAMFS_FSTYPES contains 'cpio=2Elz4' might do the trick=2EI'll see into it and prepare a V2=2E

 
Von: Richard Purdie <richard=2Epurdie@linuxfounda= tion=2Eorg>
Gesendet: 03=2E07=2E2020 12:42
An: T=2E Ulrich <timon=2Eulric= h@kabelmail=2Ede>,<openembedded-core@lists=2Eopenembedded=2Eorg&g= t;
Kopie= : Timon Ulrich <t=2Eulrich@anapur=2Ede>
Betreff: Re: [OE-core] [P= ATCH] kernel=2Ebbclass: add lz4 dependency and fixthe call to lz4
=  
On Fri, 2020-07-03 at 08:22 +0200, T=2E Ulrich wrote:
>= ; From: Timon Ulrich <t=2E= ulrich@anapur=2Ede>
>
> If the initramfs image is ty= pe lz4, then a native lz4 is needed=2E
>
> Additionally an = output filena= me needs to be specified when calling
> lz4, otherwise STDOUT= will be used implicitly=2E
>
> Signed-off-by: Timon Ulrich= <t=2Eulrich@anapur=2Ede>
> ---
> meta/classes/kernel=2Ebbclass | 4 ++--
&g= t; 1 file changed, 2 insertions(+), 2 deletions(-)

I really don'= t like building tools just because we might need them=2E Is
there a = way we can tell which compression format is being used for the
initr= amfs and make the dependencies conditional?

Cheers,

Richa= rd