From patchwork Mon Oct 16 21:59:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Packham X-Patchwork-Id: 826533 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) 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; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="H6D6sQlH"; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3yGC0L4SL9z9sRq for ; Tue, 17 Oct 2017 08:59:30 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 9D2302FA9E; Mon, 16 Oct 2017 21:59:28 +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 YMX5rND+iGuU; Mon, 16 Oct 2017 21:59:26 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 87D2F2F846; Mon, 16 Oct 2017 21:59:26 +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 6ECD21CEC57 for ; Mon, 16 Oct 2017 21:59:24 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 687DC8711F for ; Mon, 16 Oct 2017 21:59:24 +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 QcApKb90NNn7 for ; Mon, 16 Oct 2017 21:59:24 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pg0-f68.google.com (mail-pg0-f68.google.com [74.125.83.68]) by hemlock.osuosl.org (Postfix) with ESMTPS id F11418734B for ; Mon, 16 Oct 2017 21:59:23 +0000 (UTC) Received: by mail-pg0-f68.google.com with SMTP id p9so3298625pgc.8 for ; Mon, 16 Oct 2017 14:59:23 -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:in-reply-to:references; bh=p1vU4jcLyd1RAkK5A7XLuhC8R0KQzkME90xZCpPOpsQ=; b=H6D6sQlHfp3ae+o0eOQmzCi0chrATWDwZU06bptZ01Vs1shl2/ovFFDHLfcA4efvdN O6wfAkKc0dZYJ0QdAJMkLlHEGrVF4jSEn6Jcmefoan2ybUuzkzDV2N6rNPvRJ1LlYaRK ZrXR41m8qFBk0DBq3nTmNzBzZ+s4+TRs/+YUUH+Tpcs4ZHqWOcvAA3ix8FsrRzCRgq/g KHqQNiCK3DdNvbs71SvIy1VWUZAUqQsG4Hh7dOgYs/tysUT6ai40G2mOzwai2VaoPkUm 3e3L+/tnYeVnETtt11aksaf53PxiWViXF5OJ1DjC8nKnpqU8f0ilZsadZaGz4rObakrH eKTg== 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:in-reply-to :references; bh=p1vU4jcLyd1RAkK5A7XLuhC8R0KQzkME90xZCpPOpsQ=; b=VUnqBbfxovqvjhxzpiDEDQzF8BRAA8HgNILZ1OjWoomHJW0Y+aZzQCSQoi2d1Qql9G foznYrUbU/eR9DC1kyuSxDUMyaQ/BZtbwzYhhlb81FTna7W5EvoeSoZVc1saTmCwSgBD hvbo4NPxVeTNrRCYsr6MaYLqiC1ojk5EjSSuRpoFuJEgirvkgq3u7WIWrkYRlGcVMO1t Lfrea0L/DWRdEsFA3724aYUtOAIbj1QmaLq5iBIGOxa/75ch0JjGupkzCkhEAXAVfb6b hsqylZIytptF/zf05Bp/mSfj/9ZhS+S5jGZY81goy66Co5KhwbttcZBz6s10T+3GJiHz fs7Q== X-Gm-Message-State: AMCzsaWxBPXJKwSx3iKx+Fp0UPLZ2iA+Fqbi5yOSviIjr8oi0CCnmt6K 8Ig+wZoIU0DcS+M6a6GqCzUrfgii X-Google-Smtp-Source: AOwi7QALG1yq+roJb2TaB2PT+k2u+zoy5vdRgLvCZo03tHeyZZXZexglu42jWIJv433bXZBsqccHAg== X-Received: by 10.159.218.69 with SMTP id x5mr9839765plv.4.1508191163407; Mon, 16 Oct 2017 14:59:23 -0700 (PDT) Received: from chrisp-dl.ws.atlnz.lc ([2001:df5:b000:22:3a2c:4aff:fe70:2b02]) by smtp.gmail.com with ESMTPSA id f10sm14765118pgr.8.2017.10.16.14.59.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 16 Oct 2017 14:59:22 -0700 (PDT) From: Chris Packham To: buildroot@buildroot.org Date: Tue, 17 Oct 2017 10:59:03 +1300 Message-Id: <20171016215904.3380-3-judge.packham@gmail.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20171016215904.3380-1-judge.packham@gmail.com> References: <20171016215904.3380-1-judge.packham@gmail.com> Cc: Andrey Smirnov , Thomas Petazzoni , "Yann E . MORIN" Subject: [Buildroot] [PATCH 2/3] zstd: build for host X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 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" Signed-off-by: Chris Packham --- package/zstd/zstd.mk | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/package/zstd/zstd.mk b/package/zstd/zstd.mk index f149ad2f91..01fec7bb76 100644 --- a/package/zstd/zstd.mk +++ b/package/zstd/zstd.mk @@ -37,6 +37,26 @@ else ZSTD_OPTS += HAVE_LZ4=0 endif +HOST_ZSTD_DEPENDENCIES = host-zlib host-lz4 host-xz + +HOST_ZSTD_OPTS = \ + HAVE_THREAD=1 \ + HAVE_ZLIB=1 \ + HAVE_LZMA=1 \ + HAVE_LZ4=1 + +define HOST_ZSTD_BUILD_CMDS + $(HOST_MAKE_ENV) $(HOST_CONFIGURE_OPTS) $(MAKE) $(HOST_ZSTD_OPTS) \ + -C $(@D) zstd +endef + +define HOST_ZSTD_INSTALL_CMDS + $(HOST_MAKE_ENV) $(HOST_CONFIGURE_OPTS) $(MAKE) $(HOST_ZSTD_OPTS) \ + DESTDIR=$(HOST_DIR) PREFIX=/usr -C $(@D)/programs install + $(HOST_MAKE_ENV) $(HOST_CONFIGURE_OPTS) $(MAKE) $(HOST_ZSTD_OPTS) \ + DESTDIR=$(HOST_DIR) PREFIX=/usr -C $(@D)/lib install +endef + define ZSTD_BUILD_CMDS $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) $(ZSTD_OPTS) \ -C $(@D) zstd @@ -53,3 +73,4 @@ define ZSTD_INSTALL_STAGING_CMDS endef $(eval $(generic-package)) +$(eval $(host-generic-package))