Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] build host lz4 to support lz4 compression in the kernel.
@ 2015-04-01 10:30 Sagaert Johan
  2015-04-01 11:37 ` Thomas Petazzoni
  0 siblings, 1 reply; 6+ messages in thread
From: Sagaert Johan @ 2015-04-01 10:30 UTC (permalink / raw)
  To: buildroot

Selecting lz4 compression in the kernel configuration yields a
significant improvement in boot time. Therefore we need lz4 as
dependency for the kernel.
Signed-off-by: Sagaert Johan <sagaert.johan@proximus.be>
---
 linux/linux.mk          |  2 +-
 package/lz4/host-lz4.mk | 21 +++++++++++++++++++++
 package/lz4/lz4.mk      |  9 ---------
 3 files changed, 22 insertions(+), 10 deletions(-)
 create mode 100644 package/lz4/host-lz4.mk

diff --git a/linux/linux.mk b/linux/linux.mk
index 22fce35..137c64d 100644
--- a/linux/linux.mk
+++ b/linux/linux.mk
@@ -49,7 +49,7 @@ LINUX_PATCHES = $(call qstrip,$(BR2_LINUX_KERNEL_PATCH))
 LINUX_PATCH = $(filter ftp://% http://% https://%,$(LINUX_PATCHES))
 
 LINUX_INSTALL_IMAGES = YES
-LINUX_DEPENDENCIES += host-kmod host-lzop
+LINUX_DEPENDENCIES += host-kmod host-lzop host-lz4
 
 ifeq ($(BR2_LINUX_KERNEL_UBOOT_IMAGE),y)
 LINUX_DEPENDENCIES += host-uboot-tools
diff --git a/package/lz4/host-lz4.mk b/package/lz4/host-lz4.mk
new file mode 100644
index 0000000..03138f9
--- /dev/null
+++ b/package/lz4/host-lz4.mk
@@ -0,0 +1,21 @@
+################################################################################
+#
+# host-lz4
+#
+################################################################################
+
+HOST_LZ4_VERSION = r123
+HOST_LZ4_SITE = $(call github,Cyan4973,lz4,$(HOST_LZ4_VERSION))
+HOST_LZ4_LICENSE = BSD-2c
+HOST_LZ4_LICENSE_FILES = LICENSE
+
+define HOST_LZ4_BUILD_CMDS
+	$(MAKE) $(HOST_CONFIGURE_OPTS) -C $(@D)
+endef
+
+define HOST_LZ4_INSTALL_CMDS
+	$(MAKE) $(HOST_CONFIGURE_OPTS) -C $(@D) install DESTDIR=$(HOST_DIR)
+endef
+
+$(eval $(host-generic-package))
+
diff --git a/package/lz4/lz4.mk b/package/lz4/lz4.mk
index 38e10d8..6f8af03 100644
--- a/package/lz4/lz4.mk
+++ b/package/lz4/lz4.mk
@@ -17,14 +17,6 @@ endef
 LZ4_POST_PATCH_HOOKS += LZ4_DISABLE_SHARED
 endif
 
-define HOST_LZ4_BUILD_CMDS
-	$(MAKE) $(HOST_CONFIGURE_OPTS) -C $(@D)
-endef
-
-define HOST_LZ4_INSTALL_CMDS
-	$(MAKE) $(HOST_CONFIGURE_OPTS) -C $(@D) install DESTDIR=$(HOST_DIR)
-endef
-
 define LZ4_BUILD_CMDS
 	$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) liblz4
 endef
@@ -38,4 +30,3 @@ define LZ4_INSTALL_TARGET_CMDS
 endef
 
 $(eval $(generic-package))
-$(eval $(host-generic-package))
-- 
2.3.3

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

end of thread, other threads:[~2015-04-01 20:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-01 10:30 [Buildroot] [PATCH 1/1] build host lz4 to support lz4 compression in the kernel Sagaert Johan
2015-04-01 11:37 ` Thomas Petazzoni
2015-04-01 12:25   ` Johan Sagaert
2015-04-01 13:02     ` Thomas Petazzoni
2015-04-01 13:17       ` Thomas Petazzoni
2015-04-01 20:24       ` Johan Sagaert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox