From patchwork Thu May 15 21:31:34 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Zacarias X-Patchwork-Id: 349365 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id 2BCCE140082 for ; Fri, 16 May 2014 07:31:56 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 65FB38C98D; Thu, 15 May 2014 21:31:55 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wTACeCc4fDAo; Thu, 15 May 2014 21:31:54 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 577518C995; Thu, 15 May 2014 21:31:54 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id AE9B41C2DA4 for ; Thu, 15 May 2014 21:31:52 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id A9FFD8C97A for ; Thu, 15 May 2014 21:31:52 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id p9-+xKS7WJQF for ; Thu, 15 May 2014 21:31:51 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from loknar.toptech.com.ar (loknar.toptech.com.ar [78.46.79.162]) by whitealder.osuosl.org (Postfix) with ESMTPS id 281418C975 for ; Thu, 15 May 2014 21:31:50 +0000 (UTC) Received: from asgard (host152.190-227-169.telecom.net.ar [190.227.169.152]) (authenticated bits=0) by loknar.toptech.com.ar (8.14.8/8.14.8) with ESMTP id s4FLVhoM001698 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 15 May 2014 21:31:45 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=zacarias.com.ar; s=dkey; t=1400189507; bh=KNy6Qfqm/7nC7q4XgG0kzf8wlESp13vCYknInqFDzXk=; h=From:To:Cc:Subject:Date; b=fhbmjURf8fMzqJkbi03hzciJexTWXU0X+BoVlI92yJo8lYZ9hqSM/Z+Rkow2ffnOw jPZbjlP0QRowaXtCtrCi+xCibwBbc+gICnnZwqY3s1vubToMsEa50zzwqMJJqp4ipI fQr2HfAjfbr97DW7Lq60hmq3B1nP17A70o1+xAY0= Received: by asgard (sSMTP sendmail emulation); Thu, 15 May 2014 18:31:37 -0300 From: Gustavo Zacarias To: buildroot@busybox.net Date: Thu, 15 May 2014 18:31:34 -0300 Message-Id: <1400189496-29633-1-git-send-email-gustavo@zacarias.com.ar> X-Mailer: git-send-email 1.8.5.5 X-Virus-Scanned: clamav-milter 0.98.1 at loknar X-Virus-Status: Clean Subject: [Buildroot] [PATCH 1/3] lz4: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Signed-off-by: Gustavo Zacarias --- package/Config.in | 1 + package/lz4/Config.in | 14 ++++++++++++++ package/lz4/lz4.mk | 41 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 56 insertions(+) create mode 100644 package/lz4/Config.in create mode 100644 package/lz4/lz4.mk diff --git a/package/Config.in b/package/Config.in index e0f982e..7a3e5ef 100644 --- a/package/Config.in +++ b/package/Config.in @@ -38,6 +38,7 @@ if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS source "package/gzip/Config.in" endif source "package/infozip/Config.in" +source "package/lz4/Config.in" source "package/lzip/Config.in" source "package/lzop/Config.in" source "package/xz/Config.in" diff --git a/package/lz4/Config.in b/package/lz4/Config.in new file mode 100644 index 0000000..a855e31 --- /dev/null +++ b/package/lz4/Config.in @@ -0,0 +1,14 @@ +config BR2_PACKAGE_LZ4 + bool "lz4" + depends on BR2_LARGEFILE + help + LZ4 is a very fast lossless compression algorithm, providing + compression speed at 400 MB/s per core, scalable with multi-cores + CPU. It also features an extremely fast decoder, with speed + in multiple GB/s per core, typically reaching RAM speed limits + on multi-core systems. + + https://code.google.com/p/lz4/ + +comment "lz4 needs a toolchain w/ largefile" + depends on !BR2_LARGEFILE diff --git a/package/lz4/lz4.mk b/package/lz4/lz4.mk new file mode 100644 index 0000000..a089b0e --- /dev/null +++ b/package/lz4/lz4.mk @@ -0,0 +1,41 @@ +################################################################################ +# +# lz4 +# +################################################################################ + +LZ4_VERSION = r117 +LZ4_SITE = $(call github,Cyan4973,lz4,$(LZ4_VERSION)) +LZ4_INSTALL_STAGING = YES +LZ4_LICENSE = BSD-2c +LZ4_LICENSE_FILES = LICENSE + +ifeq ($(BR2_PREFER_STATIC_LIB),y) +define LZ4_DISABLE_SHARED + $(SED) '/SHARED/d' $(@D)/Makefile +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 + +define LZ4_INSTALL_STAGING_CMDS + $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) install DESTDIR=$(STAGING_DIR) +endef + +define LZ4_INSTALL_TARGET_CMDS + $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) install DESTDIR=$(TARGET_DIR) +endef + +$(eval $(generic-package)) +$(eval $(host-generic-package))