All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kernel.bbclass: add lz4 dependency and fix the call to lz4
@ 2020-07-03  6:22 T. Ulrich
  2020-07-03 10:42 ` [OE-core] " Richard Purdie
  0 siblings, 1 reply; 3+ messages in thread
From: T. Ulrich @ 2020-07-03  6:22 UTC (permalink / raw)
  To: openembedded-core; +Cc: Timon Ulrich

From: Timon Ulrich <t.ulrich@anapur.de>

If the initramfs image is type lz4, then a native lz4 is needed.

Additionally an output filename needs to be specified when calling lz4,
otherwise STDOUT will be used implicitly.

Signed-off-by: Timon Ulrich <t.ulrich@anapur.de>
---
 meta/classes/kernel.bbclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 6d07b29e2d..add0b13bcb 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -4,7 +4,7 @@ KERNEL_PACKAGE_NAME ??= "kernel"
 KERNEL_DEPLOYSUBDIR ??= "${@ "" if (d.getVar("KERNEL_PACKAGE_NAME") == "kernel") else d.getVar("KERNEL_PACKAGE_NAME") }"
 
 PROVIDES += "${@ "virtual/kernel" if (d.getVar("KERNEL_PACKAGE_NAME") == "kernel") else "" }"
-DEPENDS += "virtual/${TARGET_PREFIX}binutils virtual/${TARGET_PREFIX}gcc kmod-native bc-native lzop-native bison-native"
+DEPENDS += "virtual/${TARGET_PREFIX}binutils virtual/${TARGET_PREFIX}gcc kmod-native bc-native lzop-native lz4-native bison-native"
 PACKAGE_WRITE_DEPS += "depmodwrapper-cross"
 
 do_deploy[depends] += "depmodwrapper-cross:do_populate_sysroot"
@@ -210,7 +210,7 @@ copy_initramfs() {
 				;;
 			*lz4)
 				echo "lz4 decompressing image"
-				lz4 -df ${B}/usr/${INITRAMFS_IMAGE_NAME}.$img
+				lz4 -df ${B}/usr/${INITRAMFS_IMAGE_NAME}.$img ${B}/usr/${INITRAMFS_IMAGE_NAME}.cpio
 				break
 				;;
 			*lzo)
-- 
2.17.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [OE-core] [PATCH] kernel.bbclass: add lz4 dependency and fix the call to lz4
  2020-07-03  6:22 [PATCH] kernel.bbclass: add lz4 dependency and fix the call to lz4 T. Ulrich
@ 2020-07-03 10:42 ` Richard Purdie
  2020-07-03 11:21   ` [OE-core] [PATCH] kernel.bbclass: add lz4 dependency and fixthe " T. Ulrich
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Purdie @ 2020-07-03 10:42 UTC (permalink / raw)
  To: T. Ulrich, openembedded-core; +Cc: Timon Ulrich

On Fri, 2020-07-03 at 08:22 +0200, T. Ulrich wrote:
> From: Timon Ulrich <t.ulrich@anapur.de>
> 
> If the initramfs image is type lz4, then a native lz4 is needed.
> 
> Additionally an output filename needs to be specified when calling
> lz4, otherwise STDOUT will be used implicitly.
> 
> Signed-off-by: Timon Ulrich <t.ulrich@anapur.de>
> ---
>  meta/classes/kernel.bbclass | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

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

Cheers,

Richard



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [OE-core] [PATCH] kernel.bbclass: add lz4 dependency and fixthe call to lz4
  2020-07-03 10:42 ` [OE-core] " Richard Purdie
@ 2020-07-03 11:21   ` T. Ulrich
  0 siblings, 0 replies; 3+ messages in thread
From: T. Ulrich @ 2020-07-03 11:21 UTC (permalink / raw)
  To: Richard Purdie, openembedded-core; +Cc: Timon Ulrich

[-- Attachment #1: Type: text/html, Size: 44769 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-07-03 11:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-03  6:22 [PATCH] kernel.bbclass: add lz4 dependency and fix the call to lz4 T. Ulrich
2020-07-03 10:42 ` [OE-core] " Richard Purdie
2020-07-03 11:21   ` [OE-core] [PATCH] kernel.bbclass: add lz4 dependency and fixthe " T. Ulrich

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.