From patchwork Mon Oct 26 21:34:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 1388125 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=PgXyCE1C; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CKp5y6zmlz9sSG for ; Tue, 27 Oct 2020 08:35:18 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 61B6F2E177; Mon, 26 Oct 2020 21:35:17 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pACUw4tBJDBn; Mon, 26 Oct 2020 21:35:16 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id EDF362E16C; Mon, 26 Oct 2020 21:35:15 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 1C9191BF20D for ; Mon, 26 Oct 2020 21:35:14 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 16B6B87030 for ; Mon, 26 Oct 2020 21:35:14 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kNl1t4B8ZFyJ for ; Mon, 26 Oct 2020 21:35:13 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-lf1-f53.google.com (mail-lf1-f53.google.com [209.85.167.53]) by hemlock.osuosl.org (Postfix) with ESMTPS id 093D287029 for ; Mon, 26 Oct 2020 21:35:12 +0000 (UTC) Received: by mail-lf1-f53.google.com with SMTP id 126so2920442lfi.8 for ; Mon, 26 Oct 2020 14:35:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=baJBWHVQAiQ6+iPEdN8a9PzCjqY00K2R+4DQFfrNdYM=; b=PgXyCE1CxRAdj02VxkDQChgZRwN99FlOwEmvuSt0Vs6g2GX1pjKR4S5XkUTlzMc6Jz 4nCM1XMKf1TYxG6y+bYgZot44PeGkQzORwBfNEJkd7SdWlsxTiPdwi8NwfNLbUExXUcz We4ER0yj6zPyE+LCc3wDl+Tf/XzT3ImxSMJeDLoqPpTG4QbZpCqbR49e7tjoZVc47arz orLEUhGQr7814sJDlHDB7ZuQUa6Dif4V0o/LL/R1SlknoJ2g2VkRa363lga745OroSgF a0oTX20k5uuM0eX/dvtRr2yiBp7Yud/Qqn6P5q5xyPM5P11pGz6+u42leR9mDza5BiZc fihA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=baJBWHVQAiQ6+iPEdN8a9PzCjqY00K2R+4DQFfrNdYM=; b=hTwdQGtU1W8CYOcDloW3d0UZhksrryIloMUSVx9wW/bzLXv8GYXs0Qut38sM5i3Dga RYlc8sVKQvl5LmaEhctlTmJRLrLf3+B3iIPXxm3cEstkrsRfe78uEoDbm0AWPeW/2hO+ vFLNgKYR1lDVNkbMrf1aMYZm3l2KOANGt37uTxlIHfo60FSy0ViYjfAKajj/Eo7jxnNH GalMuDh7v7/bBfcRzsZpD2qAkNL2eU6wNDz1l7JRsXncCKNhErjwcLEZHz0C/clH9K34 xtUXTCq/cgdN1B4bO7JDXCzDXUbJ0AM74so0LEgN5q5t6IKjFil32yjFHDX3ckYxPNBn aKyQ== X-Gm-Message-State: AOAM531tTibymd/PSICnxQ8m3WTsvJBxwHd6X9G0znX2LYotw7nO6Aos iLMtO/E6/7yBuKHr6oZdqP+O2Ria2IY= X-Google-Smtp-Source: ABdhPJy/lIfTY/adNaO/5Rhoc38Z5eJLtUbqexrvXnINLdl33JOX7qZkkXWUHkTIFMmVDdZSFcel5Q== X-Received: by 2002:a19:cc94:: with SMTP id c142mr5750616lfg.373.1603748110689; Mon, 26 Oct 2020 14:35:10 -0700 (PDT) Received: from localhost.localdomain (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by smtp.gmail.com with ESMTPSA id b10sm1319478lji.24.2020.10.26.14.35.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Oct 2020 14:35:10 -0700 (PDT) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= To: buildroot@buildroot.org Date: Mon, 26 Oct 2020 22:34:33 +0100 Message-Id: <20201026213433.4309-1-zajec5@gmail.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Subject: [Buildroot] [PATCH] package/lzma-alone: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Rafał Miłecki This new package provides "lzma_alone" host binary based on the original LZMA SDK. It provides few extra options when compared to the LZMA Utils project "lzma" binary (already packaged as the "lzma"). This tool is required for preparing firmware images for some home routers with picky bootloaders. It's main advantage is support for specifying dictionary size and lc/lp/pb LZMA values. Broadcom CFE bootloader for MIPS BCM47xx devices is known to fail to boot images using LZMA compression with dictionary. Broadcom cferam bootloader for ARM64 BCM4908 devices is known to fail to boot images without uncompressed size specified. Broadcom CFE for BCM63xx DSL devices has even different requirements. Packaging LZMA SDK "lzma" as "lzma_alone" is how it's handled in the Arch, Debian and Ubuntu. Signed-off-by: Rafał Miłecki --- package/lzma-alone/lzma-alone.hash | 1 + package/lzma-alone/lzma-alone.mk | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 package/lzma-alone/lzma-alone.hash create mode 100644 package/lzma-alone/lzma-alone.mk diff --git a/package/lzma-alone/lzma-alone.hash b/package/lzma-alone/lzma-alone.hash new file mode 100644 index 0000000000..39759c4e3b --- /dev/null +++ b/package/lzma-alone/lzma-alone.hash @@ -0,0 +1 @@ +sha256 9aade84f229fb25f7aef39d8866b375fe6d35a9e18098d7cd86a99e294902944 lzma922.tar.bz2 diff --git a/package/lzma-alone/lzma-alone.mk b/package/lzma-alone/lzma-alone.mk new file mode 100644 index 0000000000..6a1d8dd3c0 --- /dev/null +++ b/package/lzma-alone/lzma-alone.mk @@ -0,0 +1,23 @@ +################################################################################ +# +# lzma-alone +# +################################################################################ + +LZMA_ALONE_VERSION = 9.22 +LZMA_ALONE_SITE = https://sourceforge.net/projects/sevenzip/files/LZMA%20SDK/ +LZMA_ALONE_SOURCE = lzma922.tar.bz2 +LZMA_ALONE_STRIP_COMPONENTS = 0 +LZMA_ALONE_LICENSE = LGPL-2.1-or-later, BSD-3-Clause + +define HOST_LZMA_ALONE_BUILD_CMDS + $(HOST_MAKE_ENV) $(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D)/C/Util/Lzma -f makefile.gcc + $(HOST_MAKE_ENV) $(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D)/CPP/7zip/Bundles/LzmaCon -f makefile.gcc +endef + +define HOST_LZMA_ALONE_INSTALL_CMDS + $(INSTALL) -d -m 0755 $(HOST_DIR)/bin + $(INSTALL) -D -m 0755 $(@D)/CPP/7zip/Bundles/LzmaCon/lzma $(HOST_DIR)/bin/lzma_alone +endef + +$(eval $(host-generic-package))