All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-oe][PATCH] makedumpfile: add PACKAGECONFIG options for lzo and snappy compression
@ 2020-11-12 19:58 alexander.kamensky42
  0 siblings, 0 replies; only message in thread
From: alexander.kamensky42 @ 2020-11-12 19:58 UTC (permalink / raw)
  To: openembedded-devel
  Cc: Khem Raj, Wang Mingyu, Mingli Yu, Haiqing Bai, Alexander Kamensky

makedumpfile can be compiled with lzo and/or snappy dump file compression
support. Lzo and snappy offer faster compression time but slightly bigger
compressed files. When reload time is important it might be beneficial to use
lzo or snappy compression.

But it brings additional dependencies and can make crash image bigger.

Add makedumpfile PACKAGECONFIG that would allow to add lzo and/or snappy if so
desired.

Signed-off-by: Alexander Kamensky <alexander.kamensky42@gmail.com>
---
 meta-oe/recipes-kernel/makedumpfile/makedumpfile_1.6.7.bb | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/meta-oe/recipes-kernel/makedumpfile/makedumpfile_1.6.7.bb b/meta-oe/recipes-kernel/makedumpfile/makedumpfile_1.6.7.bb
index 165e192cb..ad1e09c35 100644
--- a/meta-oe/recipes-kernel/makedumpfile/makedumpfile_1.6.7.bb
+++ b/meta-oe/recipes-kernel/makedumpfile/makedumpfile_1.6.7.bb
@@ -40,8 +40,13 @@ SECTION = "base"
 EXTRA_OEMAKE = "\
     LINKTYPE=static \
     TARGET=${TARGET_ARCH} \
+    ${PACKAGECONFIG_CONFARGS} \
 "
 
+PACKAGECONFIG ??= ""
+PACKAGECONFIG[lzo] = "USELZO=on,USELZO=off,lzo"
+PACKAGECONFIG[snappy] = "USESNAPPY=on,USESNAPPY=off,snappy"
+
 do_install () {
     mkdir -p ${D}/usr/bin
     install -m 755 ${S}/makedumpfile ${D}/usr/bin
-- 
2.26.2


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-11-12 19:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-12 19:58 [meta-oe][PATCH] makedumpfile: add PACKAGECONFIG options for lzo and snappy compression alexander.kamensky42

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.