From patchwork Wed Feb 6 13:23:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Angelo Compagnucci X-Patchwork-Id: 1037529 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.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="GyTnOaSS"; 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 43vj3C2jTZz9sDL for ; Thu, 7 Feb 2019 00:29:27 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id F369130EC8; Wed, 6 Feb 2019 13:29:22 +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 Y3Vgmu3dKZtg; Wed, 6 Feb 2019 13:29:20 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 7697722849; Wed, 6 Feb 2019 13:29:20 +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 7DFB71BF398 for ; Wed, 6 Feb 2019 13:29:19 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 7A5E185C88 for ; Wed, 6 Feb 2019 13:29:19 +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 jqDA4-NjflvF for ; Wed, 6 Feb 2019 13:29:18 +0000 (UTC) X-Greylist: delayed 00:05:08 by SQLgrey-1.7.6 Received: from mail-ed1-f68.google.com (mail-ed1-f68.google.com [209.85.208.68]) by whitealder.osuosl.org (Postfix) with ESMTPS id 0B72A8201C for ; Wed, 6 Feb 2019 13:29:18 +0000 (UTC) Received: by mail-ed1-f68.google.com with SMTP id b17so1713689eds.2 for ; Wed, 06 Feb 2019 05:29:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id; bh=jVzcVuFp+jXfdorfrki1mB8MRS/Beir/p8vnrRk8/eo=; b=GyTnOaSS6VBph7DNAgomQbH+0JwhcLdXqsR6qseK3lBGA+hhgInqXcvbVpE6EP1Tet FGH0mLTIHjADNFdjUKZgfnvbxNCDhj9J8DyJGF4eyXXiLdT8o2XnjhxtapW5LgNR5gtO y75C8tpQtG9En6+RJ5EeYi96dXpST2Q7NVY2A= 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; bh=jVzcVuFp+jXfdorfrki1mB8MRS/Beir/p8vnrRk8/eo=; b=akECrxaT12B7fccRTFCGP5NRvFtPippllQBUuQUjnhGnVllubD++5F/P8tLe6PoK4u GWOw7jbC9aVMPIdmgmTTt+B8b6QJYzetmy4W+UaRYUoTKcALFEIM31uaYgRiQoHGq83m Lz29tHXtd9pjD5pOhnE9jVVTN1CXd/kvRnSiNbWBxzmheZtuOWKgUAla/vLjv3mtq7t3 AyOgUx0uvrPfUe3Zc4O2pairnFsrUx1GUVJ/OzUVgVH7At0KJT7qRr3rv0EsqziH9rNP 3udropep1zZ5YZ6O9g62iFrLwYaRkj7H1HBULAKMGFAowQBxlxl6tDP4d1TMUkJQq+hB /4lA== X-Gm-Message-State: AHQUAub9KQp/Ift1n3fytqzyuNwOXtssJD2mgF9ysfuhWGiuZKJC5bl6 WXtc2SQcNRxgR1i1quZHEE4GToYY5bIaTw== X-Google-Smtp-Source: AHgI3Ia5akebxyTt1nQK1hHrZ00kRVTw6uCFgo6qzFUKRi0TJphm8cHZyxR5D8V28gtg8yG3tWfBRg== X-Received: by 2002:a50:af21:: with SMTP id g30mr7818517edd.234.1549459447881; Wed, 06 Feb 2019 05:24:07 -0800 (PST) Received: from angelo-ThinkPad-T470p.t-mobile.de ([88.128.80.15]) by smtp.gmail.com with ESMTPSA id p7sm3626174ejb.15.2019.02.06.05.24.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 06 Feb 2019 05:24:06 -0800 (PST) From: Angelo Compagnucci To: buildroot@buildroot.org Date: Wed, 6 Feb 2019 14:23:56 +0100 Message-Id: <1549459439-2260-1-git-send-email-angelo@amarulasolutions.com> X-Mailer: git-send-email 2.7.4 Subject: [Buildroot] [PATCH v3 0/3] Adding mender-artifact 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: Angelo Compagnucci MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" This patch tries to resurrect an effort of Mizra from August to porting the mender-artifact tool to buildroot (https://patchwork.ozlabs.org/cover/962487/). Mender artifact is a tool to generate artifacts for the mender software, it is therefore an host tool and it's the last piece to add to have mender available on buildroot. To have it compiled as an host tool, we need to enable support for host packages in go. So the intent of this patch is: * Enabling host golang packages * Refactoring dependencies to distinguish between host packages and target packages * Adding mender-artifact The initial patch for mender-artifact was from Mizra but I completely rewrote it, so I removed the signoff. Changelog: [v2 -> v3] Suggestions from Thomas Petazzoni - renaming BR2_PACKAGE_HOST_GO_ARCH_SUPPORTS to BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS - adding a BR2_PACKAGE_HOST_GO_HOST_ARCH_SUPPORTS - Comment above both options in the Config.in.host file to explain which option should be used for what. - BR2_PACKAGE_HOST_GO_TARGET_SUPPORTS should be removed. Angelo Compagnucci (2): package/go: refactor host/target dependencies package/mender-artifact: new package Mirza Krak (1): package/pkg-golang: add support for building host packages DEVELOPERS | 1 + docs/manual/adding-packages-golang.txt | 15 +++++++---- package/Config.in.host | 1 + package/docker-cli/Config.in | 8 +++--- package/docker-containerd/Config.in | 8 +++--- package/docker-engine/Config.in | 8 +++--- package/docker-proxy/Config.in | 8 +++--- package/flannel/Config.in | 8 +++--- package/go/Config.in.host | 13 +++++++--- package/mender-artifact/Config.in.host | 18 ++++++++++++++ package/mender-artifact/mender-artifact.hash | 28 +++++++++++++++++++++ package/mender-artifact/mender-artifact.mk | 32 ++++++++++++++++++++++++ package/mender/Config.in | 8 +++--- package/pkg-golang.mk | 37 +++++++++++++++++++++++++--- package/runc/Config.in | 8 +++--- 15 files changed, 162 insertions(+), 39 deletions(-) create mode 100644 package/mender-artifact/Config.in.host create mode 100644 package/mender-artifact/mender-artifact.hash create mode 100644 package/mender-artifact/mender-artifact.mk