Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Korsgaard <peter@korsgaard.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/4] fs/common.mk: support lz4 compression
Date: Fri, 13 Oct 2017 21:16:52 +0200	[thread overview]
Message-ID: <20171013191655.30427-1-peter@korsgaard.com> (raw)

Similar to the other compressors.  Notice that we use the -l (legacy format)
for Linux kernel initrd compatibility.

Lz4 decompression is supported by the Linux kernel since 3.11.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
---
 fs/common.mk | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/fs/common.mk b/fs/common.mk
index 9a7758ff49..0fc151b294 100644
--- a/fs/common.mk
+++ b/fs/common.mk
@@ -59,6 +59,11 @@ ROOTFS_$(2)_DEPENDENCIES += host-lzma
 ROOTFS_$(2)_COMPRESS_EXT = .lzma
 ROOTFS_$(2)_COMPRESS_CMD = $$(LZMA) -9 -c
 endif
+ifeq ($$(BR2_TARGET_ROOTFS_$(2)_LZ4),y)
+ROOTFS_$(2)_DEPENDENCIES += host-lz4
+ROOTFS_$(2)_COMPRESS_EXT = .lz4
+ROOTFS_$(2)_COMPRESS_CMD = lz4 -l -9 -c
+endif
 ifeq ($$(BR2_TARGET_ROOTFS_$(2)_LZO),y)
 ROOTFS_$(2)_DEPENDENCIES += host-lzop
 ROOTFS_$(2)_COMPRESS_EXT = .lzo
-- 
2.11.0

             reply	other threads:[~2017-10-13 19:16 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-13 19:16 Peter Korsgaard [this message]
2017-10-13 19:16 ` [Buildroot] [PATCH 2/4] fs/cpio: add option for lz4 compression Peter Korsgaard
2017-10-13 19:16 ` [Buildroot] [PATCH 3/4] fs/ext2: " Peter Korsgaard
2017-10-13 19:16 ` [Buildroot] [PATCH 4/4] fs/tar: " Peter Korsgaard
2017-10-13 22:05 ` [Buildroot] [PATCH 1/4] fs/common.mk: support " Thomas Petazzoni
2017-10-14  7:32   ` Yann E. MORIN
2017-10-15  9:03     ` Peter Korsgaard
2017-10-15 13:05       ` Yann E. MORIN
2017-10-15 20:45         ` Peter Korsgaard
2018-01-08 22:46 ` Thomas Petazzoni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20171013191655.30427-1-peter@korsgaard.com \
    --to=peter@korsgaard.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox