From patchwork Mon Apr 16 19:39:48 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Seiderer X-Patchwork-Id: 898892 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=gmx.net Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40PzHY0k4nz9s1B for ; Tue, 17 Apr 2018 05:40:08 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id A684085F18; Mon, 16 Apr 2018 19:40:04 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dyCfJu4gR_A0; Mon, 16 Apr 2018 19:40:03 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id A313B85EB2; Mon, 16 Apr 2018 19:40:03 +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 CA56B1C2BAA for ; Mon, 16 Apr 2018 19:40:00 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id C7CDB87F82 for ; Mon, 16 Apr 2018 19:40:00 +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 Fz89UIQTDQXI for ; Mon, 16 Apr 2018 19:40:00 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) by hemlock.osuosl.org (Postfix) with ESMTPS id B9DD787F0B for ; Mon, 16 Apr 2018 19:39:59 +0000 (UTC) Received: from localhost.localdomain ([94.216.63.103]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MJBEo-1fAu491u0o-002qqI; Mon, 16 Apr 2018 21:39:55 +0200 From: Peter Seiderer To: buildroot@buildroot.org Date: Mon, 16 Apr 2018 21:39:48 +0200 Message-Id: <20180416193953.19924-1-ps.report@gmx.net> X-Mailer: git-send-email 2.16.3 X-Provags-ID: V03:K1:4yz57MVEd91dM8j8jn0ZcKxSBE7k2ysaZkxJtcD7z050imev9uB X+aQTrQkbWchs6s6rmrlepGrm92R5TE18kEu/ozO3hdQHf2XLHwwBfVqu/eVrdNxRmmAeHh GYChIFw949AK8Dgt6Ov3yvzVFpL2lV1/EKZqhAipe3e9sSA/DJUdlvxvMK+H7AN2rmfJG5A GWzaSINalTU48F5wY3axw== X-UI-Out-Filterresults: notjunk:1; V01:K0:UznbIQ+Xcpg=:1DYLknHYde48k2JX7hPt8d doz/VnXy9gCrG3yym9SsY9KZMJwHjn/HweON1qJVlxMWQcT73G9z2IoFI8P+PRsbnfp85yYJ3 oBk/fUnCPWGsF3+ZYmj7YIRE8Qk2x0l4PF0dQulMo/zY6mBSahea6p3eTGP28OZRLNE8sF9Fy Qu0ndf3QI6OTwPHszrTcAV0UkdU4aQ0S9vD59tnWvTNqjUR9jZH4Sp+ZLOgmsYGzU5r48h7ba 4ioIXEvhe7aHiQdXHygynoXp7fbz8chQq69Bcj00UFJ0h9BySOmH4v7TXX5loWege2AjRv0SU LqJ3yPn7b2/fSq2JzLG/j8oL74l6z9pDzbmu8EbCPWYO2w4QpRfqZrMRevs8b9yXTiJTBPKJ9 Dji+wYpEilvInbLQNAd/NbZ7kvqkAkoicT33G73zNWeIT+QidwTQMakhSrPJrofRpAdk38GxG 0vpTjI/r/WAoeza/8LQ+QQoYWV5HUFuhyNQn/puSMA2jOq5XCCF8JtcepxUqLWu1/TJpdKCMI /NVC33jIaKU/s0gDnUZoa/pcNkmAcjhXihr3qSmNpGZNdzpOzBqW76mKGtV+Jb1YGjm5mkbOJ OYO71b5GfrEn1vEYdDS5DN+pRbAOb3cye8incbs96Wd/wUdivDgRyN4P1eXh3mH32MoNRq7yU BBvnxhQ3F+tUcLE9/hXp9SG/3hV77ei0vOdMOYAa/7k5PfhlaElrpOIV0Kblp6MKrxSjZN/w3 fReHdocDV7DRVBvJIcuDOHrRT6V23tp3JJ24lxermRHxP+8SeNWqxseAm8pOijJX4sZZr2XxK u3Gd/NbU+mNsvBMxnU1iwO1sjhYdA== Subject: [Buildroot] [PATCH v3 1/6] squashfs: add license hash X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Andrey Smirnov , "Yann E . MORIN" , Thomas Petazzoni MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Peter Seiderer --- Changes v2 -> v3: - new patch --- package/squashfs/squashfs.hash | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package/squashfs/squashfs.hash b/package/squashfs/squashfs.hash index 82a650022c..4464e62c02 100644 --- a/package/squashfs/squashfs.hash +++ b/package/squashfs/squashfs.hash @@ -1,2 +1,5 @@ # Locally computed sha256 bd0aa3011320b8ebee68aa406060de277bef16daf81bad5b9f70cbea6db1a779 squashfs-e38956b92f738518c29734399629e7cdb33072d3.tar.gz + +# License files +sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 COPYING From patchwork Mon Apr 16 19:39:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Seiderer X-Patchwork-Id: 898896 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=gmx.net Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40PzHg4f0Bz9s1B for ; Tue, 17 Apr 2018 05:40:15 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 973E886DAD; Mon, 16 Apr 2018 19:40:10 +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 3nQ4fhaEhGfm; Mon, 16 Apr 2018 19:40:08 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 4628586D3F; Mon, 16 Apr 2018 19:40:08 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id D31351CF169 for ; Mon, 16 Apr 2018 19:40:01 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id CB08A25C56 for ; Mon, 16 Apr 2018 19:40:01 +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 5YidmZnn3yT5 for ; Mon, 16 Apr 2018 19:40:00 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) by silver.osuosl.org (Postfix) with ESMTPS id C381525B03 for ; Mon, 16 Apr 2018 19:39:59 +0000 (UTC) Received: from localhost.localdomain ([94.216.63.103]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MDhba-1fE9Cf30YQ-00HABK; Mon, 16 Apr 2018 21:39:55 +0200 From: Peter Seiderer To: buildroot@buildroot.org Date: Mon, 16 Apr 2018 21:39:49 +0200 Message-Id: <20180416193953.19924-2-ps.report@gmx.net> X-Mailer: git-send-email 2.16.3 In-Reply-To: <20180416193953.19924-1-ps.report@gmx.net> References: <20180416193953.19924-1-ps.report@gmx.net> X-Provags-ID: V03:K1:YfsSJ4ImIcPk/tBhxcfzWjDUcBLVNcDVVqBLWzHz6p1Unbck+SN aFWNdOk1KPHjs8h7vH0arzpNwJQ5HMg1aLsHbkZGHEIYYcmid+/CGfLAOQS8OfGYoNI9FBn XbjMFmW85fQsbY2aMolB01ENd3CTpyePf3o0OEo5GfyBxHTuwf3j7acwS9h3018ECs4EtKe 8mdROV4P8AW6fCkZili1Q== X-UI-Out-Filterresults: notjunk:1; V01:K0:WXb/Gz5uo6w=:pYDK82r7cge+ZO95FDV0DU pqACZeapPdFsWQNcMkMwy6+OOTaHVQGzmaVrlE7JvIFO4ibhxp2hMqOwDxnO5OZAwE51aP7Ou cIDoPTGDXbS169tb8qKMRCwczZgkcYiz6sYdrRqLfUCudPmDnuB8A7heVf3/TPQu7qisfnTTB X3FjVnnkoDMBhDs+VH5DcPRCOba023Iccs0Gr5H236zHJIC/Cm9bhiX0Dv5Bz5OmDciuXQgP2 /j12LQ18U9wJWiPt9Edo2y91QnKPjSmkgexAwVZSNtlY9bGCbuah5THGby52p7yLTGmuLY0av DnTyOLSG2Hve1u4OgqAhNCIuu1765OO+SA/WfrSMBrQQ/b3ChXPCS5l/vDZ8OgUg5xsmfmpqz urKEjyTY6A0/MWdG50SDZZxJiOuJgWMaVigxl5r0aBwZYJM7LF9KNOlPhglq286kGN6oa65+f 3aXAIZdzCg7NpPVUyPRO6tvCr0m27T7MWrW35wNFreFBa4EJVO9TYXjCxemTmejYbj79PxOb4 Ea9uwwRDBF0LYICFubxp0Kc5f8JD+OD04quU6KjCVD9ZTjBT4Yc02OAshYAH10jAF0WwYBOGN OzW4Aq2+ff5vecWcnrbfk9NvXb93ktjRPhlbVAR840W3njGmH+Qfsu9r8flvbsWFTuEXyPmKg ymEy//2XRxuDgBrDoYVzsjLLDni7ocpt44aUhPEQ0cGZnQkRnJO6brXcgM2EXlKJgZTRUNIiu y0dWlj/9NugWBzpEdZzRUx/qpspsuD1iIZSRae20JRxXbgUmWliw7n+1OIyjhpZi/tq2kLJgD TPf6KwdwClrTHiRrKaOMP7rPY18Rg== Subject: [Buildroot] [PATCH v3 2/6] zstd: add host libzstd support X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Andrey Smirnov , "Yann E . MORIN" , Thomas Petazzoni MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" For the host only the libzstd library is built (no need for host-lz4 host-xz host-zlib dependencies because they affect only the cmdline tool). Signed-off-by: Peter Seiderer Reviewed-by: "Yann E. MORIN" --- Changes v2 -> v3: - fix trailing spaces - clarify the no need for host-lz4 host-xz host-zlib dependency (suggested by Yann E. MORIN) Changes v1 -> v2: - split off host libzstd support (suggested by Yann E. MORIN) - no ZSTD_OPTS for host libarary build --- package/zstd/zstd.mk | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/package/zstd/zstd.mk b/package/zstd/zstd.mk index c0fa88026c..98f8f779aa 100644 --- a/package/zstd/zstd.mk +++ b/package/zstd/zstd.mk @@ -46,4 +46,16 @@ define ZSTD_INSTALL_TARGET_CMDS DESTDIR=$(TARGET_DIR) PREFIX=/usr -C $(@D)/programs install endef +# note: no 'HAVE_...' options for host library build only +define HOST_ZSTD_BUILD_CMDS + $(HOST_MAKE_ENV) $(HOST_CONFIGURE_OPTS) $(MAKE) \ + -C $(@D) lib +endef + +define HOST_ZSTD_INSTALL_CMDS + $(HOST_MAKE_ENV) $(HOST_CONFIGURE_OPTS) $(MAKE) \ + DESTDIR=$(HOST_DIR) PREFIX=/usr -C $(@D)/lib install +endef + $(eval $(generic-package)) +$(eval $(host-generic-package)) From patchwork Mon Apr 16 19:39:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Seiderer X-Patchwork-Id: 898894 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=gmx.net Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40PzHb3PZmz9s1X for ; Tue, 17 Apr 2018 05:40:11 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 8820F880B0; Mon, 16 Apr 2018 19:40:05 +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 v0S0lG09bKMB; Mon, 16 Apr 2018 19:40:04 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 5092487F0B; Mon, 16 Apr 2018 19:40:04 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id D3F1A1CF162 for ; Mon, 16 Apr 2018 19:40:00 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id D0FAB86D56 for ; Mon, 16 Apr 2018 19:40:00 +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 PA6XUqTjpBae for ; Mon, 16 Apr 2018 19:40:00 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) by whitealder.osuosl.org (Postfix) with ESMTPS id C206486D3F for ; Mon, 16 Apr 2018 19:39:59 +0000 (UTC) Received: from localhost.localdomain ([94.216.63.103]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MXZw6-1euHyH3x2c-00WU6g; Mon, 16 Apr 2018 21:39:56 +0200 From: Peter Seiderer To: buildroot@buildroot.org Date: Mon, 16 Apr 2018 21:39:50 +0200 Message-Id: <20180416193953.19924-3-ps.report@gmx.net> X-Mailer: git-send-email 2.16.3 In-Reply-To: <20180416193953.19924-1-ps.report@gmx.net> References: <20180416193953.19924-1-ps.report@gmx.net> X-Provags-ID: V03:K1:Jp5g/v1//6j9+Ib7+stP0jTCSLFidH3AofkZiH64NmpfMWHeKAB 5oY7NcA4dwvmfjhuD0qIj5TQtjh7fZiHtJhpZN/p5OP3aykaB31pYZcIO9R6d8PBQ1G5xGw XdA6f40OH0mMibwMZ6+TRPXXjki9cyNU0n1G4xOkzK8wCfAXmKiLJJw03svsIaWCsbb5yzJ h2g+zMHKc+KyZSvs9EuqA== X-UI-Out-Filterresults: notjunk:1; V01:K0:IIHM6Pkoyak=:ftz59FvWVEaubTC31yNw4D RxYPdIz0pmJNuUzOLrHLV4TDuAUrkqk+WMF9L6KGVdk+85m9CzWdVbyLoLk5BkqswLK4JnSIe 7YXJ8JglBwF3wEoW6iNpZSIyLYoawgyeTKn5sRNR/WzxfTT5Ep447VZMawKlqDB8dLtbWhmpT ZXLxDNR93bHJRp2DEJlaVOOHGAj8WvM88XL+vokGuciDeIDmQmb9owjN1JKyaj8G2t7HjnV1E L2r1fwYuDRyHUjKbS1oaHvcy7ot42IF3cA+UUxrmEXKOQ+vLLuETslvLMD5/VIScI/yHG5D9L PfXf9XNpydrah5zhV0X6B/wx50R7qqZl1IG0/2s69xX1jFYN2b8t6/Ympr3a4/PGJdlwzSeU/ UGwi1zropWDjkhbqZYfB5mGa0NzDZl7a5K6Z3q7Ch5xNf2veCTrBI713UM9ElVsN5UC4s9ORV lIb1db/RbD1rz/AoDmbZFYBzfoJT4BYTmI+OpqfmHFuoL9MGB1r7lBKSdMPkpWw/gzxiRD5HT GwpCm1IlQTqohpUp36TwtP6BjTlXiYuu7pqXtceaTWAFpuiG4chExlSkXbLeQvXuCntWRCDHr KvvC1wqVQjYm2dD5b7+Jwk4O8F1jr8fQyt7xSVG6qUg002iVnqW/8RRfE0jllmDeu55i9Scrs fPXf4aqE5OhQNaqLe70tbzOe66coyj7wso/h2Iu016DXA8vOZIhyCzusd5NphwlU3SxZTtQFf mxeDG5xXaxRuVzGgNGtYmxNBsueTCZf/y0Ud16KNL00mTpuCyRbeYoMgQ9TYyrBcTe1Av+HX5 ikr06a2t5i3NfgFRPu4Hj02Y1VDEA== Subject: [Buildroot] [PATCH v3 3/6] squashfs: add host zstd support X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Andrey Smirnov , "Yann E . MORIN" , Thomas Petazzoni MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Peter Seiderer Reviewed-by: "Yann E. MORIN" --- Changes v2 -> v3: - no changes Changes v1 -> v2: - split off host zstd support (suggested by Yann E. MORIN) --- package/squashfs/squashfs.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/squashfs/squashfs.mk b/package/squashfs/squashfs.mk index e656218f97..67025ac68a 100644 --- a/package/squashfs/squashfs.mk +++ b/package/squashfs/squashfs.mk @@ -46,7 +46,7 @@ else SQUASHFS_MAKE_ARGS += GZIP_SUPPORT=0 endif -HOST_SQUASHFS_DEPENDENCIES = host-zlib host-lz4 host-lzo host-xz +HOST_SQUASHFS_DEPENDENCIES = host-zlib host-lz4 host-lzo host-xz host-zstd HOST_SQUASHFS_MAKE_ARGS = \ XATTR_SUPPORT=1 \ @@ -55,7 +55,7 @@ HOST_SQUASHFS_MAKE_ARGS = \ LZ4_SUPPORT=1 \ LZO_SUPPORT=1 \ LZMA_XZ_SUPPORT=1 \ - ZSTD_SUPPORT=0 + ZSTD_SUPPORT=1 define SQUASHFS_BUILD_CMDS $(TARGET_MAKE_ENV) $(MAKE) \ From patchwork Mon Apr 16 19:39:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Seiderer X-Patchwork-Id: 898895 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=gmx.net Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40PzHb5xSSz9s1B for ; Tue, 17 Apr 2018 05:40:11 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 9A3F987F0B; Mon, 16 Apr 2018 19:40:06 +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 pi9vzRTdFDg9; Mon, 16 Apr 2018 19:40:06 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 0CC1A87F83; Mon, 16 Apr 2018 19:40:06 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id EA3271CF167 for ; Mon, 16 Apr 2018 19:40:00 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id E7F5525C0B for ; Mon, 16 Apr 2018 19:40:00 +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 MgDMS1DyOMlP for ; Mon, 16 Apr 2018 19:40:00 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) by silver.osuosl.org (Postfix) with ESMTPS id C2B3125A72 for ; Mon, 16 Apr 2018 19:39:59 +0000 (UTC) Received: from localhost.localdomain ([94.216.63.103]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MV5tl-1ewCi90cG5-00YPmf; Mon, 16 Apr 2018 21:39:56 +0200 From: Peter Seiderer To: buildroot@buildroot.org Date: Mon, 16 Apr 2018 21:39:51 +0200 Message-Id: <20180416193953.19924-4-ps.report@gmx.net> X-Mailer: git-send-email 2.16.3 In-Reply-To: <20180416193953.19924-1-ps.report@gmx.net> References: <20180416193953.19924-1-ps.report@gmx.net> X-Provags-ID: V03:K1:UzRkx4nGa8bmS1Xe1NoJ477WqjP6zu+3U3Kv1d4GqZxGvMI5g6o uHZl/BPV6OxDLBYlzVTY6uGXExUO4K2FDArLBHtJSqteM4gs2+5Ls/fa5XVGwgF7XhUN5cG T/k3SRNQU1kbHoKSH9T+A2IoeJ6H61myvMIvTNVc7SfsNf/T8qZdLY7KdaSaEGj0V5FmEgK sr67DF5NsjIbLx13mDKag== X-UI-Out-Filterresults: notjunk:1; V01:K0:UgDQ+IwBvCo=:A6fnL5MwH2wkDTIczDuu98 rlqMTKTOcN/TFWU1l/Yakmh1ut3M1o8n29D93sCmm3TjpJmUoszcFc5aOaHKJH+lh80PEMERK slYjMNKg7xiMPckoYbUXNHO/Satj2ZxHJ29ScPbTFonvw1RGz6paAL8APTTEtzCky9jvHqoso GBNPvFRlJ4EEAFr3kVuBRAT9R3SPdvPR5OEtrEI/wsXogwVg02TI6vqjVbk3TQ4G3Wlw2b58z I/+HckpA16T5suUWUFKp4rUOSRgSDXUGgTJen1/twAEyt0/wtZyMexhFeLkhSZzv2JbDL9/tV yeL6a3ZFnXdGl4RTyH3KLsjHXg0BuvIZxKLx0h/Uo3hyjRdDD377rg+EPHIR6QeB/qkzzT4Yp BcyyVM0rj2wQxNU/22wVJT4ixkY9f+wRp0HDs0/uBav0bnpZW8gOJKH0AV/0zb36MvkiP9Tgw htes6l6jrVtQPxtHFk5MNQWNWq7A7Tvv3V4yNgcM66LRc2+pEdv57ORRv83QNzhdI8joh4BWq uoNvtWB9rQ8d7KkRwE2xlwlAP9lN6/J+hVYgUJXVt1dvND4URvbqdzQUQROq8HagCxCzevWYT mfExRO1ZfIWVZqRs3whvm1/bEOl71g2DqIJqczbpQO6V+NEQJ5L1xLeiXQs4X8lIg0dr5Jqid 8rOh602R44fbBxPgOiAQoqVvt7fkHT1LvylILbbuKBYzGt6NUK1bcJ0L8fD0MOn2uHcYwCgvk ta1S2SS16zYdiSXCg8owuVgeDIaeWNb70URaSAWOL1JepnqosF9v22d612BA0ayf+K7uQk1gJ /83jsaJgIX3rqIxYG104PVjJcqr2g== Subject: [Buildroot] [PATCH v3 4/6] fs/squashfs: add zstd support X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Andrey Smirnov , "Yann E . MORIN" , Thomas Petazzoni MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Peter Seiderer Reviewed-by: "Yann E. MORIN" --- Changes v2 -> v3: - no changes Changes v1 -> v2: - add reviewed-by: Yann E. MORIN --- fs/squashfs/Config.in | 3 +++ fs/squashfs/squashfs.mk | 2 ++ 2 files changed, 5 insertions(+) diff --git a/fs/squashfs/Config.in b/fs/squashfs/Config.in index ca9ddb2218..dde2097cb7 100644 --- a/fs/squashfs/Config.in +++ b/fs/squashfs/Config.in @@ -27,5 +27,8 @@ config BR2_TARGET_ROOTFS_SQUASHFS4_LZO config BR2_TARGET_ROOTFS_SQUASHFS4_XZ bool "xz" +config BR2_TARGET_ROOTFS_SQUASHFS4_ZSTD + bool "zstd" + endchoice endif diff --git a/fs/squashfs/squashfs.mk b/fs/squashfs/squashfs.mk index 51abd5d7d0..34ab048603 100644 --- a/fs/squashfs/squashfs.mk +++ b/fs/squashfs/squashfs.mk @@ -16,6 +16,8 @@ else ifeq ($(BR2_TARGET_ROOTFS_SQUASHFS4_LZMA),y) ROOTFS_SQUASHFS_ARGS += -comp lzma else ifeq ($(BR2_TARGET_ROOTFS_SQUASHFS4_XZ),y) ROOTFS_SQUASHFS_ARGS += -comp xz +else ifeq ($(BR2_TARGET_ROOTFS_SQUASHFS4_ZSTD),y) +ROOTFS_SQUASHFS_ARGS += -comp zstd else ROOTFS_SQUASHFS_ARGS += -comp gzip endif From patchwork Mon Apr 16 19:39:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Seiderer X-Patchwork-Id: 898897 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=gmx.net Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40PzHg5Pt6z9s1P for ; Tue, 17 Apr 2018 05:40:15 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id E20D3881DC; Mon, 16 Apr 2018 19:40:07 +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 lwVfO2no1VtC; Mon, 16 Apr 2018 19:40:07 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 2301A8820A; Mon, 16 Apr 2018 19:40:07 +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 0ECF51CF168 for ; Mon, 16 Apr 2018 19:40:01 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 0C25A87F0B for ; Mon, 16 Apr 2018 19:40:01 +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 HySgXMsl+tXx for ; Mon, 16 Apr 2018 19:40:00 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) by hemlock.osuosl.org (Postfix) with ESMTPS id B9D9887F0A for ; Mon, 16 Apr 2018 19:39:59 +0000 (UTC) Received: from localhost.localdomain ([94.216.63.103]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0LpcBS-1eTr9W1WPG-00fSNy; Mon, 16 Apr 2018 21:39:56 +0200 From: Peter Seiderer To: buildroot@buildroot.org Date: Mon, 16 Apr 2018 21:39:52 +0200 Message-Id: <20180416193953.19924-5-ps.report@gmx.net> X-Mailer: git-send-email 2.16.3 In-Reply-To: <20180416193953.19924-1-ps.report@gmx.net> References: <20180416193953.19924-1-ps.report@gmx.net> X-Provags-ID: V03:K1:ksNFcBdqZe2Z47wsBGF6m6iTYpGQwFwAKPplkRM5kMw1O95DMRS Tk/BJtUHyWnbWgKa7AZhEot/auSBiopM89qoLqPxif9e7q/dkVMzLZcEWBxemGmUkYnjsBC I+KxeP9041eNbzlvCRYvQrIriDXbWegPJuziQWIZNc3y6+grVbO96CINzbVmECJUA8YenBN cOkeeUd0iYAVDbgr+1r7Q== X-UI-Out-Filterresults: notjunk:1; V01:K0:vNyvfnNnfZA=:/TxVnh71Vj3utq+m2xnLuu JE+j/vyd6dA/XuqE69Hj7i0R2VYMPKguN0bYw5hO5iO3o9woDQWjwXf0ahO7z754Q6ToFOYSk 0CznJWTpcQivzjIQvpT7PQp4H3YpJhcWy1O5qb+BjxWoD/QrcnzuqyBAXWY5W7Wnni9FRJhO/ snWTzqJX/lpQlDYRT+m423PW2BdnamPGTjGP34HzCjBeWvD9uOI2JeydT3SA3Or1hV3+oEzLJ SE/qUk7i2uYI3TKgGjDb1OZaioMJgxPMOdmZw8Xss8IKf04V8DWkHb4JczhjOvXi6yKHcD2Ej OXFva/0rgGWRv1j+uFqAU+UA+rqTD+yNz6upgYuXHqR9u1AYUQ8UEQzkQLh5ZkA4b9rSJqqZA TCr/3OvFwBFzOptizzH6txPTnUMYp2eyurqIKzsZgEaENdfaO2xZB37j2Bs1i9hiU879oJYO7 RanPmulKG3vjuF6o9xRYAgsWnHIDTnlvFfbLzp5QkjJ0txzMn5/FZhaBRpW/x4C/PQDnDK5yG ZzLCkYIsBtrGjkVznfwd1rBUchPFoGKuz4PMAb9EhfhxOfeUYGWH0bBC4D9vbzfPjMGS5Zx/V utHwL9FZBtVdNyyB7mDwC5PMs8z4TlL40VAKgYmbl2XONThzLje0Cwgnsw5T9A97V/K+oMcYV Dd12eprmn41KZlEowFrT3PIbzfutSiaMYwCn5Ae7IZ/cNAUcJazHHtPn8jVE8hNK3E330lSg3 kvCGF/ibtYl6uWFV3/IZ0KqU+8juNEfm2+cqcNbVZmQy9I/t40TzQySxhXMkMreULjpOAuJ2d xNB/6Q/9bGXLGoxh88Unxqk40+HhA== Subject: [Buildroot] [PATCH v3 5/6] zstd: add libzstd support X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Andrey Smirnov , "Yann E . MORIN" , Thomas Petazzoni MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Add patch to split libzstd install target into pc, static, shared and includes target. Call only the needed ones for the buildroot staging/target install steps (respect the static/shared configuration). Signed-off-by: Peter Seiderer --- Changes v2 -> v3: - split libray install targets for static/shared (suggested by Yann E. MORIN) Changes v1 -> v2: - split off target libzstd support (suggested by Yann E. MORIN) --- ...ry-install-target-into-pc-static-shared-a.patch | 51 ++++++++++++++++++++++ package/zstd/zstd.mk | 46 +++++++++++++++++++ 2 files changed, 97 insertions(+) create mode 100644 package/zstd/0001-Split-library-install-target-into-pc-static-shared-a.patch diff --git a/package/zstd/0001-Split-library-install-target-into-pc-static-shared-a.patch b/package/zstd/0001-Split-library-install-target-into-pc-static-shared-a.patch new file mode 100644 index 0000000000..af9b2bf3f9 --- /dev/null +++ b/package/zstd/0001-Split-library-install-target-into-pc-static-shared-a.patch @@ -0,0 +1,51 @@ +From 2623a12bff19049b6ad5bc066e3ef9c6259d415c Mon Sep 17 00:00:00 2001 +From: Peter Seiderer +Date: Mon, 16 Apr 2018 20:44:49 +0200 +Subject: [PATCH] Split library install target into pc, static, shared and + include only target + +Signed-off-by: Peter Seiderer +--- + lib/Makefile | 15 ++++++++++++--- + 1 file changed, 12 insertions(+), 3 deletions(-) + +diff --git a/lib/Makefile b/lib/Makefile +index cdfdc5c..b592aa6 100644 +--- a/lib/Makefile ++++ b/lib/Makefile +@@ -159,20 +159,29 @@ libzstd.pc: libzstd.pc.in + -e 's|@VERSION@|$(VERSION)|' \ + $< >$@ + +-install: libzstd.a libzstd libzstd.pc ++install: install-pc install-static install-shared install-includes ++ @echo zstd static and shared library installed ++ ++install-pc: libzstd.pc + @$(INSTALL) -d -m 755 $(DESTDIR)$(PKGCONFIGDIR)/ $(DESTDIR)$(INCLUDEDIR)/ + @$(INSTALL_DATA) libzstd.pc $(DESTDIR)$(PKGCONFIGDIR)/ +- @echo Installing libraries ++ ++install-static: libzstd.a ++ @echo Installing static library + @$(INSTALL_DATA) libzstd.a $(DESTDIR)$(LIBDIR) ++ ++install-shared: libzstd ++ @echo Installing shared library + @$(INSTALL_PROGRAM) $(LIBZSTD) $(DESTDIR)$(LIBDIR) + @ln -sf $(LIBZSTD) $(DESTDIR)$(LIBDIR)/libzstd.$(SHARED_EXT_MAJOR) + @ln -sf $(LIBZSTD) $(DESTDIR)$(LIBDIR)/libzstd.$(SHARED_EXT) ++ ++install-includes: + @echo Installing includes + @$(INSTALL_DATA) zstd.h $(DESTDIR)$(INCLUDEDIR) + @$(INSTALL_DATA) common/zstd_errors.h $(DESTDIR)$(INCLUDEDIR) + @$(INSTALL_DATA) deprecated/zbuff.h $(DESTDIR)$(INCLUDEDIR) # prototypes generate deprecation warnings + @$(INSTALL_DATA) dictBuilder/zdict.h $(DESTDIR)$(INCLUDEDIR) +- @echo zstd static and shared library installed + + uninstall: + @$(RM) $(DESTDIR)$(LIBDIR)/libzstd.a +-- +2.16.3 + diff --git a/package/zstd/zstd.mk b/package/zstd/zstd.mk index 98f8f779aa..6be36cf398 100644 --- a/package/zstd/zstd.mk +++ b/package/zstd/zstd.mk @@ -6,6 +6,7 @@ ZSTD_VERSION = v1.3.3 ZSTD_SITE = $(call github,facebook,zstd,$(ZSTD_VERSION)) +ZSTD_INSTALL_STAGING = YES ZSTD_LICENSE = BSD-3-Clause or GPL-2.0 ZSTD_LICENSE_FILES = LICENSE COPYING @@ -36,15 +37,60 @@ else ZSTD_OPTS += HAVE_LZ4=0 endif +ifeq ($(BR2_STATIC_LIBS),y) define ZSTD_BUILD_CMDS + $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) $(ZSTD_OPTS) \ + -C $(@D)/lib libzstd.a $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) $(ZSTD_OPTS) \ -C $(@D) zstd endef +else ifeq ($(BR2_SHARED_LIBS),y) +define ZSTD_BUILD_CMDS + $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) $(ZSTD_OPTS) \ + -C $(@D)/lib libzstd + $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) $(ZSTD_OPTS) \ + -C $(@D) zstd +endef +else ifeq ($(BR2_SHARED_STATIC_LIBS),y) +define ZSTD_BUILD_CMDS + $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) $(ZSTD_OPTS) \ + -C $(@D) lib zstd +endef +endif +ifeq ($(BR2_STATIC_LIBS),y) +define ZSTD_INSTALL_STAGING_CMDS + $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) $(ZSTD_OPTS) \ + DESTDIR=$(STAGING_DIR) PREFIX=/usr -C $(@D)/lib \ + install-pc install-static install-includes +endef +else ifeq ($(BR2_SHARED_LIBS),y) +define ZSTD_INSTALL_STAGING_CMDS + $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) $(ZSTD_OPTS) \ + DESTDIR=$(STAGING_DIR) PREFIX=/usr -C $(@D)/lib \ + install-pc install-shared install-includes +endef +else ifeq ($(BR2_SHARED_STATIC_LIBS),y) +define ZSTD_INSTALL_STAGING_CMDS + $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) $(ZSTD_OPTS) \ + DESTDIR=$(STAGING_DIR) PREFIX=/usr -C $(@D)/lib \ + install +endef +endif + +ifeq ($(BR2_SHARED_LIBS)$(BR2_SHARED_STATIC_LIBS),y) +define ZSTD_INSTALL_TARGET_CMDS + $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) $(ZSTD_OPTS) \ + DESTDIR=$(TARGET_DIR) PREFIX=/usr -C $(@D)/lib install-shared + $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) $(ZSTD_OPTS) \ + DESTDIR=$(TARGET_DIR) PREFIX=/usr -C $(@D)/programs install +endef +else define ZSTD_INSTALL_TARGET_CMDS $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) $(ZSTD_OPTS) \ DESTDIR=$(TARGET_DIR) PREFIX=/usr -C $(@D)/programs install endef +endif # note: no 'HAVE_...' options for host library build only define HOST_ZSTD_BUILD_CMDS