From patchwork Mon Oct 17 15:17:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Perale X-Patchwork-Id: 1690973 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=2605:bc80:3010::137; helo=smtp4.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Mrgbs55wLz1ygT for ; Tue, 18 Oct 2022 02:18:01 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 905EF417AA; Mon, 17 Oct 2022 15:17:59 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 905EF417AA X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id s-Ie1l6mvfOE; Mon, 17 Oct 2022 15:17:58 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp4.osuosl.org (Postfix) with ESMTP id 5C773417AC; Mon, 17 Oct 2022 15:17:57 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 5C773417AC X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 18F771BF2A5 for ; Mon, 17 Oct 2022 15:17:43 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id E8EB3404D5 for ; Mon, 17 Oct 2022 15:17:42 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org E8EB3404D5 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id L5NBMQ2BOBez for ; Mon, 17 Oct 2022 15:17:41 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 9EB8C400EF Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by smtp2.osuosl.org (Postfix) with ESMTPS id 9EB8C400EF for ; Mon, 17 Oct 2022 15:17:41 +0000 (UTC) Received: by mail-ed1-x531.google.com with SMTP id e18so16531327edj.3 for ; Mon, 17 Oct 2022 08:17:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9ynxSndqj0hBYNl5wUN1ZvQj+Il9/sGuiNMvpNqGmv8=; b=ySprJjntdYr4yoCp429I+SW4wLAjAnAWN+HtYmpAzsgIyDYmDWPVkTXkAHi2KmSQGO 8xQGU69T1B/q8x5yUONFFfOVkg5BfZAkTa42YuayGek0T82Ahpeiwdsr6wx1P4bqaTDG e/s3S2W8UaEuuWL4RfdPhAXnKaQXPdpJdUEELbs+ncjZMjLod85DA8OhP+ZfWwwX19ki yC35XI7hhZk7ryQ5pmcVA2tUpKGw+HnUpALV9SVbnA8zazoSyLy6ukCFFawxGfATv06U x+WxHC1MLvFof1fFMBsYyoz+aYRlW/BrVv/y1saEw9jGi0ollyLn+z9p5FJMNWDYeWGz 1FuA== X-Gm-Message-State: ACrzQf3MlY62vLiF4IblebUIDLXno9mO51oIhscp/yMVd0SY6IPOcxzA oc/DHIC//JwY768QBzFWEcMMG2cXla8yFerP X-Google-Smtp-Source: AMsMyM4LjIOXbnp2WCLdHEAxLpAuGw6r8wIxAlpPeLQOPcBOzwcPxCT9E1gzb6p73x/z9Tj+Qt3uYg== X-Received: by 2002:a05:6402:2802:b0:43a:9098:55a0 with SMTP id h2-20020a056402280200b0043a909855a0mr10559679ede.179.1666019858929; Mon, 17 Oct 2022 08:17:38 -0700 (PDT) Received: from localhost.localdomain ([2a02:2788:1a4:785::9]) by smtp.gmail.com with ESMTPSA id s11-20020a50d48b000000b00458947539desm7471904edi.78.2022.10.17.08.17.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Oct 2022 08:17:37 -0700 (PDT) X-Google-Original-From: Thomas Perale To: buildroot@buildroot.org Date: Mon, 17 Oct 2022 17:17:23 +0200 Message-Id: <20221017151726.44005-2-thomas.perale@mind.be> X-Mailer: git-send-email 2.37.0 In-Reply-To: <20221017151726.44005-1-thomas.perale@mind.be> References: <20221017151726.44005-1-thomas.perale@mind.be> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=essensium.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=9ynxSndqj0hBYNl5wUN1ZvQj+Il9/sGuiNMvpNqGmv8=; b=W1ub6aQTQcd3u1UfP+NIfA6ZF8BjRy9F79GeZUnsmZG6P8yN10wLYTvaCyW5NPlJh7 1xCSBDAyZi+bySQd8mqefyxDehrJFpHdAD8uel5QKMyCEuKmjx9znXZuGPAfu80FyyB/ 0OlEYptiN4pxjLiCHXhwQPl8jcxuCDpChQ4sruAlU566AbM3rUaQ8DWivSyHDp1ZzniC V2ivTmlmxgIXugcpC15OTjppH0JDTNDCCZXy7XGFezG4UQW3L6CiJmMUn8QSPVlQ4yUX kSkoZY94h3Atn61MCMcHx1QES19Xu4FwU8Orw9wr5V/3HpTkNEiwh75AOnHCRhRKFKxc bEJw== X-Mailman-Original-Authentication-Results: smtp2.osuosl.org; dkim=pass (2048-bit key) header.d=essensium.com header.i=@essensium.com header.a=rsa-sha256 header.s=google header.b=W1ub6aQT Subject: [Buildroot] [PATCH 1/4] package/goc: new virtual package X-BeenThere: buildroot@buildroot.org 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: , X-Patchwork-Original-From: Thomas Perale via buildroot From: Thomas Perale Reply-To: Thomas Perale Cc: Thomas Perale Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" This virtual package implement the already existing go compiler compiled from source and shows it on the host package menu. The usage of a virtual package on top of the go compiler enable the supports of for multiple providers for the Go compiler. Similarly to the rust compiler, a pre-built go compiler package will be available in parallel to the current compiled go compiler package. Signed-off-by: Thomas Perale --- package/Config.in.host | 1 + package/go/go.mk | 2 ++ package/goc/Config.in.host | 15 +++++++++++++++ package/goc/goc.mk | 7 +++++++ 4 files changed, 25 insertions(+) create mode 100644 package/goc/Config.in.host create mode 100644 package/goc/goc.mk diff --git a/package/Config.in.host b/package/Config.in.host index f437ef680c..8c44ff0cb4 100644 --- a/package/Config.in.host +++ b/package/Config.in.host @@ -38,6 +38,7 @@ menu "Host utilities" source "package/gnupg/Config.in.host" source "package/go/Config.in.host" source "package/go-bootstrap/Config.in.host" + source "package/goc/Config.in.host" source "package/google-breakpad/Config.in.host" source "package/gptfdisk/Config.in.host" source "package/imagemagick/Config.in.host" diff --git a/package/go/go.mk b/package/go/go.mk index 9f0fbbde00..96c756cb11 100644 --- a/package/go/go.mk +++ b/package/go/go.mk @@ -12,6 +12,8 @@ GO_LICENSE = BSD-3-Clause GO_LICENSE_FILES = LICENSE GO_CPE_ID_VENDOR = golang +HOST_GO_PROVIDES = host-goc + HOST_GO_DEPENDENCIES = host-go-bootstrap HOST_GO_GOPATH = $(HOST_DIR)/share/go-path HOST_GO_HOST_CACHE = $(HOST_DIR)/share/host-go-cache diff --git a/package/goc/Config.in.host b/package/goc/Config.in.host new file mode 100644 index 0000000000..b0266b50ea --- /dev/null +++ b/package/goc/Config.in.host @@ -0,0 +1,15 @@ +config BR2_PACKAGE_HOST_GOC + bool "host go compiler" + depends on BR2_PACKAGE_HOST_GO_BOOTSTRAP_ARCH_SUPPORTS + help + Compiler for the Go language + + https://go.dev + +if BR2_PACKAGE_HOST_GOC + +config BR2_PACKAGE_PROVIDES_HOST_GOC + string + default "host-go" + +endif diff --git a/package/goc/goc.mk b/package/goc/goc.mk new file mode 100644 index 0000000000..3259618989 --- /dev/null +++ b/package/goc/goc.mk @@ -0,0 +1,7 @@ +################################################################################ +# +# goc +# +################################################################################ + +$(eval $(host-virtual-package)) From patchwork Mon Oct 17 15:17:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Perale X-Patchwork-Id: 1690974 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=2605:bc80:3010::137; helo=smtp4.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Mrgc848Vyz1ygT for ; Tue, 18 Oct 2022 02:18:16 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id B59CA417CF; Mon, 17 Oct 2022 15:18:14 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org B59CA417CF X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lwFemtpHWpiU; Mon, 17 Oct 2022 15:18:13 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp4.osuosl.org (Postfix) with ESMTP id 3533A417AF; Mon, 17 Oct 2022 15:18:12 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 3533A417AF X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 2C59F1BF2A5 for ; Mon, 17 Oct 2022 15:17:45 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 014C241799 for ; Mon, 17 Oct 2022 15:17:45 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 014C241799 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Af7jwBH0mj2l for ; Mon, 17 Oct 2022 15:17:43 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 56E1B41764 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by smtp4.osuosl.org (Postfix) with ESMTPS id 56E1B41764 for ; Mon, 17 Oct 2022 15:17:43 +0000 (UTC) Received: by mail-ej1-x631.google.com with SMTP id fy4so25679808ejc.5 for ; Mon, 17 Oct 2022 08:17:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=MCfElpNEXMpPz85WoyGwXY9GsF7Z1kCOuU5EW+SlCWs=; b=lQAUC/lj4E6T91ufsZaE9gGehjuV2mRJfyXztoU7m1T4uQ0oYX1izeMajvjgvYmQxy nRMoVIwzEIbJp8bhvgoHE/oJ6FosareSP4mdf8BrdksHIslqEAH3Yuyf75VZdBU1Tx2D Iu6cxpLpdv/IQH7IK4u3N86mrE0X7aXkEDAt2OXUmYtRYUTQSmn4wPcOhjurrAhamLuA vzwImJFMAcFVGCpM0VpnHTHFbIuHpgmmP6NaT63aNFMoPX+0cEuya9ht+a4rU5V1cukh 4vF86jrjtfmCQwQvPC/+7mJfsDaWXaACiqOJGS5vU2/dqySPyxnfULNBBC3u8r7T66N+ S/EQ== X-Gm-Message-State: ACrzQf15LJu+J4m8ZFSDjDyNBfTORcAPF5AF9HO8Kw/bSUlVDmER8qWZ sI48Bs+XlB3QgWLmXt435TX1q9pzS0XErift X-Google-Smtp-Source: AMsMyM5bF8BqxZL1Jln2kdhtxT1lV4tUERVeaUDpGSG1L+9CHKIJaCmdBXo4uzvKBaOgY46UyudOzw== X-Received: by 2002:a17:907:272a:b0:791:994d:fb6a with SMTP id d10-20020a170907272a00b00791994dfb6amr655944ejl.337.1666019860604; Mon, 17 Oct 2022 08:17:40 -0700 (PDT) Received: from localhost.localdomain ([2a02:2788:1a4:785::9]) by smtp.gmail.com with ESMTPSA id s11-20020a50d48b000000b00458947539desm7471904edi.78.2022.10.17.08.17.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Oct 2022 08:17:39 -0700 (PDT) X-Google-Original-From: Thomas Perale To: buildroot@buildroot.org Date: Mon, 17 Oct 2022 17:17:24 +0200 Message-Id: <20221017151726.44005-3-thomas.perale@mind.be> X-Mailer: git-send-email 2.37.0 In-Reply-To: <20221017151726.44005-1-thomas.perale@mind.be> References: <20221017151726.44005-1-thomas.perale@mind.be> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=essensium.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=MCfElpNEXMpPz85WoyGwXY9GsF7Z1kCOuU5EW+SlCWs=; b=UL5jbwo4iXIl541WbwCL1aoKEM5P7K/KxVDcbn7vqMkfgshA8+WpuiHvgXGImheeIO PyQ8jz9X967Ljb0EJ/3KVgXumXYqtRp9NeSLPbIxXpXGITX/kzd7AJlmLgqRGsxCaSJV pyJgFbvgLGrNcdVxQ/W5DspbWv0deW03K6CPaPAgfQicN8PRON/F/amgQaAksGJBw5Jb 9tmK5dy9mr6UVJ2pSWvoAOESwrxgcVBM81oPOsXT3a+gBMTuRo4z3fCzcNz8knYIozhZ oL4dcqidnL+N5XJckHoRvLIjnvS1JBDvG3w6eMxu2fTaLVeNqxzYmlmoABzuPL2XdCIO ENcA== X-Mailman-Original-Authentication-Results: smtp4.osuosl.org; dkim=pass (2048-bit key) header.d=essensium.com header.i=@essensium.com header.a=rsa-sha256 header.s=google header.b=UL5jbwo4 Subject: [Buildroot] [PATCH 2/4] package/pkg-golang: set dependencies to host-goc X-BeenThere: buildroot@buildroot.org 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: , X-Patchwork-Original-From: Thomas Perale via buildroot From: Thomas Perale Reply-To: Thomas Perale Cc: Thomas Perale Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" Use 'host-goc' instead of 'host-go' to build one of the implementation of the 'goc' package instead of building the 'go' package by default. Also select 'goc' in every package that are built by the go compiler to keep the dependencies in the 'menuconfig' corrects. Signed-off-by: Thomas Perale --- fs/oci/Config.in | 1 + package/balena-engine/Config.in | 1 + package/containerd/Config.in | 1 + package/crucible/Config.in | 1 + package/delve/Config.in | 1 + package/docker-cli/Config.in | 1 + package/docker-compose/Config.in | 1 + package/docker-engine/Config.in | 1 + package/docker-proxy/Config.in | 1 + package/embiggen-disk/Config.in | 1 + package/flannel/Config.in | 1 + package/gitlab-runner/Config.in | 1 + package/gocryptfs/Config.in | 1 + package/mender-artifact/Config.in.host | 1 + package/mender-connect/Config.in | 1 + package/mender/Config.in | 1 + package/moby-buildkit/Config.in | 1 + package/moby-buildkit/Config.in.host | 1 + package/nerdctl/Config.in | 1 + package/pkg-golang.mk | 4 ++-- package/runc/Config.in | 1 + package/tinifier/Config.in | 1 + package/wtfutil/Config.in | 1 + 23 files changed, 24 insertions(+), 2 deletions(-) diff --git a/fs/oci/Config.in b/fs/oci/Config.in index 5e7aff282f..a7c20fa60f 100644 --- a/fs/oci/Config.in +++ b/fs/oci/Config.in @@ -1,6 +1,7 @@ config BR2_TARGET_ROOTFS_OCI bool "oci image" depends on BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS + select BR2_PACKAGE_HOST_GOC help Build an OCI (Open Container Initiative) image. diff --git a/package/balena-engine/Config.in b/package/balena-engine/Config.in index 02f694515e..64ff17752e 100644 --- a/package/balena-engine/Config.in +++ b/package/balena-engine/Config.in @@ -11,6 +11,7 @@ config BR2_PACKAGE_BALENA_ENGINE select BR2_PACKAGE_UTIL_LINUX_MOUNT # runtime select BR2_PACKAGE_UTIL_LINUX_MOUNTPOINT # runtime select BR2_PACKAGE_UTIL_LINUX_PIVOT_ROOT # runtime + select BR2_PACKAGE_HOST_GOC help balenaEngine is a new container engine purpose-built for embedded and IoT use cases and compatible with Docker diff --git a/package/containerd/Config.in b/package/containerd/Config.in index 0e3a55ef39..c07ee08d38 100644 --- a/package/containerd/Config.in +++ b/package/containerd/Config.in @@ -11,6 +11,7 @@ config BR2_PACKAGE_CONTAINERD select BR2_PACKAGE_UTIL_LINUX_PIVOT_ROOT select BR2_PACKAGE_UTIL_LINUX_MOUNTPOINT select BR2_PACKAGE_UTIL_LINUX_MOUNT + select BR2_PACKAGE_HOST_GOC help containerd is a daemon to control runC. diff --git a/package/crucible/Config.in b/package/crucible/Config.in index b27eb31ae5..c15a335b49 100644 --- a/package/crucible/Config.in +++ b/package/crucible/Config.in @@ -1,6 +1,7 @@ config BR2_PACKAGE_CRUCIBLE bool "crucible" depends on BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS + select BR2_PACKAGE_HOST_GOC help Crucible is a One-Time-Programmable (OTP) fusing tool for the i.MX family. diff --git a/package/delve/Config.in b/package/delve/Config.in index 9428e4016a..c1db230c4d 100644 --- a/package/delve/Config.in +++ b/package/delve/Config.in @@ -7,6 +7,7 @@ config BR2_PACKAGE_DELVE_ARCH_SUPPORTS default y if BR2_x86_64 depends on BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS depends on BR2_PACKAGE_HOST_GO_TARGET_CGO_LINKING_SUPPORTS + select BR2_PACKAGE_HOST_GOC config BR2_PACKAGE_DELVE bool "delve" diff --git a/package/docker-cli/Config.in b/package/docker-cli/Config.in index 6f187c9d22..ae57d57e39 100644 --- a/package/docker-cli/Config.in +++ b/package/docker-cli/Config.in @@ -3,6 +3,7 @@ config BR2_PACKAGE_DOCKER_CLI depends on BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS depends on BR2_PACKAGE_HOST_GO_TARGET_CGO_LINKING_SUPPORTS depends on BR2_TOOLCHAIN_HAS_THREADS + select BR2_PACKAGE_HOST_GOC help Docker is a platform to build, ship, and run applications as lightweight containers. diff --git a/package/docker-compose/Config.in b/package/docker-compose/Config.in index 59128f7a19..ca037f710e 100644 --- a/package/docker-compose/Config.in +++ b/package/docker-compose/Config.in @@ -4,6 +4,7 @@ config BR2_PACKAGE_DOCKER_COMPOSE depends on BR2_PACKAGE_HOST_GO_TARGET_CGO_LINKING_SUPPORTS depends on BR2_TOOLCHAIN_HAS_THREADS depends on BR2_PACKAGE_DOCKER_CLI + select BR2_PACKAGE_HOST_GOC help Multi-container applications with the Docker CLI. diff --git a/package/docker-engine/Config.in b/package/docker-engine/Config.in index 1f0efb8fcc..25df1f5819 100644 --- a/package/docker-engine/Config.in +++ b/package/docker-engine/Config.in @@ -9,6 +9,7 @@ config BR2_PACKAGE_DOCKER_ENGINE select BR2_PACKAGE_CONTAINERD # runtime dependency select BR2_PACKAGE_DOCKER_PROXY # runtime dependency select BR2_PACKAGE_IPTABLES # runtime dependency + select BR2_PACKAGE_HOST_GOC help Docker is a platform to build, ship, and run applications as lightweight containers. diff --git a/package/docker-proxy/Config.in b/package/docker-proxy/Config.in index 7e40536537..09597b0b53 100644 --- a/package/docker-proxy/Config.in +++ b/package/docker-proxy/Config.in @@ -3,6 +3,7 @@ config BR2_PACKAGE_DOCKER_PROXY depends on BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS depends on BR2_PACKAGE_HOST_GO_TARGET_CGO_LINKING_SUPPORTS depends on BR2_TOOLCHAIN_HAS_THREADS + select BR2_PACKAGE_HOST_GOC help Libnetwork is a Container Network Model that provides a consistent programming interface and the required network diff --git a/package/embiggen-disk/Config.in b/package/embiggen-disk/Config.in index 667d71c86e..19d8696a67 100644 --- a/package/embiggen-disk/Config.in +++ b/package/embiggen-disk/Config.in @@ -7,6 +7,7 @@ config BR2_PACKAGE_EMBIGGEN_DISK depends on BR2_USE_MMU # util-linux select BR2_PACKAGE_UTIL_LINUX # sfdisk select BR2_PACKAGE_UTIL_LINUX_BINARIES # sfdisk + select BR2_PACKAGE_HOST_GOC help embiggen-disk is a tool to resize disk partitions at runtime. diff --git a/package/flannel/Config.in b/package/flannel/Config.in index eb8d798f48..800746f9c6 100644 --- a/package/flannel/Config.in +++ b/package/flannel/Config.in @@ -8,6 +8,7 @@ config BR2_PACKAGE_FLANNEL depends on BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS depends on BR2_PACKAGE_HOST_GO_TARGET_CGO_LINKING_SUPPORTS depends on BR2_TOOLCHAIN_HAS_THREADS + select BR2_PACKAGE_HOST_GOC help Flannel is a virtual network that gives a subnet to each host for use with container runtimes. diff --git a/package/gitlab-runner/Config.in b/package/gitlab-runner/Config.in index 89e3e87b5c..b21763309b 100644 --- a/package/gitlab-runner/Config.in +++ b/package/gitlab-runner/Config.in @@ -16,6 +16,7 @@ config BR2_PACKAGE_GITLAB_RUNNER select BR2_PACKAGE_OPENSSL_FORCE_LIBOPENSSL # runtime select BR2_PACKAGE_LIBOPENSSL_BIN # runtime select BR2_PACKAGE_TAR # runtime + select BR2_PACKAGE_HOST_GOC help GitLab Runner is the open source project that is used to run your jobs and send the results back to GitLab. It is used in diff --git a/package/gocryptfs/Config.in b/package/gocryptfs/Config.in index 2630cafdcf..4cd8b368ea 100644 --- a/package/gocryptfs/Config.in +++ b/package/gocryptfs/Config.in @@ -2,6 +2,7 @@ config BR2_PACKAGE_GOCRYPTFS bool "gocryptfs" depends on BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS depends on BR2_TOOLCHAIN_HAS_THREADS + select BR2_PACKAGE_HOST_GOC help gocryptfs is an encrypted FUSE overlay filesystem. diff --git a/package/mender-artifact/Config.in.host b/package/mender-artifact/Config.in.host index c7be0ed261..761dc0e022 100644 --- a/package/mender-artifact/Config.in.host +++ b/package/mender-artifact/Config.in.host @@ -1,6 +1,7 @@ config BR2_PACKAGE_HOST_MENDER_ARTIFACT bool "host mender-artifact" depends on BR2_PACKAGE_HOST_GO_HOST_ARCH_SUPPORTS + select BR2_PACKAGE_HOST_GOC help The mender-artifact tool is a CLI implementation of the Mender artifacts library. diff --git a/package/mender-connect/Config.in b/package/mender-connect/Config.in index 0845910880..a91021f1f9 100644 --- a/package/mender-connect/Config.in +++ b/package/mender-connect/Config.in @@ -9,6 +9,7 @@ config BR2_PACKAGE_MENDER_CONNECT select BR2_PACKAGE_LIBGLIB2 select BR2_PACKAGE_MENDER # runtime select BR2_PACKAGE_OPENSSL + select BR2_PACKAGE_HOST_GOC help mender-connect is a daemon responsible for handling bidirectional (websocket) communication with the Mender diff --git a/package/mender/Config.in b/package/mender/Config.in index cccb46361b..b6fe196f86 100644 --- a/package/mender/Config.in +++ b/package/mender/Config.in @@ -6,6 +6,7 @@ config BR2_PACKAGE_MENDER select BR2_PACKAGE_OPENSSL select BR2_PACKAGE_LIBOPENSSL_ENABLE_MD4 if BR2_PACKAGE_LIBOPENSSL select BR2_PACKAGE_LIBOPENSSL_ENABLE_RMD160 if BR2_PACKAGE_LIBOPENSSL + select BR2_PACKAGE_HOST_GOC help Mender is an open source over-the-air (OTA) software updater for embedded Linux devices. Mender comprises a client diff --git a/package/moby-buildkit/Config.in b/package/moby-buildkit/Config.in index 93c852bcdb..27496b5647 100644 --- a/package/moby-buildkit/Config.in +++ b/package/moby-buildkit/Config.in @@ -5,6 +5,7 @@ config BR2_PACKAGE_MOBY_BUILDKIT depends on BR2_TOOLCHAIN_HAS_THREADS depends on !BR2_TOOLCHAIN_USES_UCLIBC depends on BR2_USE_MMU + select BR2_PACKAGE_HOST_GOC select BR2_PACKAGE_CGROUPFS_MOUNT if !BR2_PACKAGE_SYSTEMD # runtime dependency help BuildKit is a toolkit for converting source code to build diff --git a/package/moby-buildkit/Config.in.host b/package/moby-buildkit/Config.in.host index a3b18548f8..335153e7fc 100644 --- a/package/moby-buildkit/Config.in.host +++ b/package/moby-buildkit/Config.in.host @@ -1,6 +1,7 @@ config BR2_PACKAGE_HOST_MOBY_BUILDKIT bool "host moby-buildkit" depends on BR2_PACKAGE_HOST_GO_HOST_ARCH_SUPPORTS + select BR2_PACKAGE_HOST_GOC help BuildKit is a toolkit for converting source code to build artifacts in an efficient expressive and repeatable manner. diff --git a/package/nerdctl/Config.in b/package/nerdctl/Config.in index 969b9bb40e..472f7b9559 100644 --- a/package/nerdctl/Config.in +++ b/package/nerdctl/Config.in @@ -6,6 +6,7 @@ config BR2_PACKAGE_NERDCTL depends on !BR2_TOOLCHAIN_USES_UCLIBC # containerd depends on BR2_USE_MMU # util-linux select BR2_PACKAGE_CONTAINERD # runtime + select BR2_PACKAGE_HOST_GOC help Docker-compatible CLI for containerd, controlling runc. diff --git a/package/pkg-golang.mk b/package/pkg-golang.mk index 0b3dc3d32f..8c9e645a9c 100644 --- a/package/pkg-golang.mk +++ b/package/pkg-golang.mk @@ -49,8 +49,8 @@ $(2)_BUILD_OPTS += \ # Target packages need the Go compiler on the host at download time (for # vendoring), and at build and install time. -$(2)_DOWNLOAD_DEPENDENCIES += host-go -$(2)_DEPENDENCIES += host-go +$(2)_DOWNLOAD_DEPENDENCIES += host-goc +$(2)_DEPENDENCIES += host-goc $(2)_BUILD_TARGETS ?= . diff --git a/package/runc/Config.in b/package/runc/Config.in index fe527b1954..297aea8d64 100644 --- a/package/runc/Config.in +++ b/package/runc/Config.in @@ -4,6 +4,7 @@ config BR2_PACKAGE_RUNC depends on BR2_PACKAGE_HOST_GO_TARGET_CGO_LINKING_SUPPORTS depends on BR2_TOOLCHAIN_HAS_THREADS depends on !BR2_TOOLCHAIN_USES_UCLIBC # no fexecve + select BR2_PACKAGE_HOST_GOC help runC is a CLI tool for spawning and running containers according to the OCI specification. diff --git a/package/tinifier/Config.in b/package/tinifier/Config.in index fbadfe6bd9..89718e3a37 100644 --- a/package/tinifier/Config.in +++ b/package/tinifier/Config.in @@ -1,6 +1,7 @@ config BR2_PACKAGE_TINIFIER bool "tinifier" depends on BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS + select BR2_PACKAGE_HOST_GOC help CLI tool for images compressing diff --git a/package/wtfutil/Config.in b/package/wtfutil/Config.in index 8c3efcea5d..475e6d91df 100644 --- a/package/wtfutil/Config.in +++ b/package/wtfutil/Config.in @@ -2,6 +2,7 @@ config BR2_PACKAGE_WTFUTIL bool "wtfutil" depends on BR2_USE_MMU # fork() depends on BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS + select BR2_PACKAGE_HOST_GOC help WTF is the personal information dashboard for your terminal. From patchwork Mon Oct 17 15:17:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Perale X-Patchwork-Id: 1690975 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=2605:bc80:3010::133; helo=smtp2.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4MrgcQ4R1fz1ygT for ; Tue, 18 Oct 2022 02:18:30 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 4091A404EC; Mon, 17 Oct 2022 15:18:28 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 4091A404EC X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Y29-TEACSesz; Mon, 17 Oct 2022 15:18:27 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp2.osuosl.org (Postfix) with ESMTP id 58114404D5; Mon, 17 Oct 2022 15:18:26 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 58114404D5 X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 30FC71BF2A5 for ; Mon, 17 Oct 2022 15:17:46 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 0D19C60AC0 for ; Mon, 17 Oct 2022 15:17:46 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 0D19C60AC0 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bFR3zv1_GIMV for ; Mon, 17 Oct 2022 15:17:45 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org D2B0D607C7 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by smtp3.osuosl.org (Postfix) with ESMTPS id D2B0D607C7 for ; Mon, 17 Oct 2022 15:17:44 +0000 (UTC) Received: by mail-ej1-x62d.google.com with SMTP id k2so25709198ejr.2 for ; Mon, 17 Oct 2022 08:17:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zLEeryzKSjNYulYTu4BTis5eM6pqjzy6FpZyLm7y+TQ=; b=l6umUXReeBjQgqLeFXDioNbHV00UwoCOA9MIHRY3rmVcUuhElGQQ7BQadE18iIDhVW JDhompCTrJH9Sane1dwnyVkGv7Q/U2FFIl+J5+NZcyEMysZ/+qxnZcgrFnnOjUqlA3dH WbpeYCfNmy+9lr2qt7fs4aED5E4Rwz7Ea3CIexIHQp5By4vwqOVp8bOn+ZiZCfDy4exE cS2yNVoQ2R/Xf/xsY5QlOpuCRnmi9rtJVFwcb72+OcmnLILmvtRNN4Fbo0aCArqrVoA1 9BBWfKypv5gCQWGC3+Y08jejJD7FuLy1ls1uCQ4pZ4NF6HuLfsPVz5HiK+VN2B2wqduh endw== X-Gm-Message-State: ACrzQf3u+nwjQF7wx/EXpCv2QejcgNmc/xbN0r0aHH+CMqVvNfhm/lMN gfnGV7UqF025jrngYq2OPdOALXcLqVKL/eqj X-Google-Smtp-Source: AMsMyM6ZzHEJY7b6Dkr1fWm6Gbikfr7PWsEleOInqNmx/y23Y8O4ndq0qeIisItIKX6xlDfd2BSO5g== X-Received: by 2002:a17:907:25c5:b0:783:f5df:900e with SMTP id ae5-20020a17090725c500b00783f5df900emr8798642ejc.491.1666019862323; Mon, 17 Oct 2022 08:17:42 -0700 (PDT) Received: from localhost.localdomain ([2a02:2788:1a4:785::9]) by smtp.gmail.com with ESMTPSA id s11-20020a50d48b000000b00458947539desm7471904edi.78.2022.10.17.08.17.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Oct 2022 08:17:40 -0700 (PDT) X-Google-Original-From: Thomas Perale To: buildroot@buildroot.org Date: Mon, 17 Oct 2022 17:17:25 +0200 Message-Id: <20221017151726.44005-4-thomas.perale@mind.be> X-Mailer: git-send-email 2.37.0 In-Reply-To: <20221017151726.44005-1-thomas.perale@mind.be> References: <20221017151726.44005-1-thomas.perale@mind.be> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=essensium.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=zLEeryzKSjNYulYTu4BTis5eM6pqjzy6FpZyLm7y+TQ=; b=WaK+/rtL+44fdVrVWU2mNllHPkU+K6EmQx2NHlsayuP0CClfvsAbQZh87Czs4jw/fM IwktUOAOV8hqvUBymEmE9tIkv5YPt4MDD9Cn7qyRru41jy7KscPZPH3oZ/2AHbQelfNA +6VstCP/bc4UhB81jdkezxB8RjqgJz5EmyWslTx/ZFro3NvtuAirRhVkzABsv1rkWmMY zuVpHTY/qmK7xR6hpQZI4/LrsvTHppIljp4z7P8ELIY5HwwEtT7hYPlaiEgVYj9DMQZ/ X14KeMpEB2kL39+Uw3tQPAUtN5kZ8smc6a0KM5L50VLPQIez63/bHNSFUr/qIZmArswy UMlw== X-Mailman-Original-Authentication-Results: smtp3.osuosl.org; dkim=pass (2048-bit key) header.d=essensium.com header.i=@essensium.com header.a=rsa-sha256 header.s=google header.b=WaK+/rtL Subject: [Buildroot] [PATCH 3/4] package/go-bin: new package X-BeenThere: buildroot@buildroot.org 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: , X-Patchwork-Original-From: Thomas Perale via buildroot From: Thomas Perale Reply-To: Thomas Perale Cc: Thomas Perale Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" This package provides a pre-built version of the go compiler for the host target. This enable the user to select between the pre-built and the compiled version of the go compiler. The pre-built version will be used by default when a go compiler is required. The virtual package 'goc' creates a menu that let the user select which variant of the go compiler to use. The supported host platform for the pre-built compiler are actually the same as the one for 'go-bootstrap' no further verification are required than the one already in place. For now GO_BIN_VERSION and GO_VERSION are set the same by hand but in next version this variable should be in common. Because the order of the '.mk' file is not guaranteed this will be investigated in a next patch. Signed-off-by: Thomas Perale --- package/Config.in.host | 1 + package/go-bin/Config.in.host | 5 +++++ package/go-bin/go-bin.hash | 4 ++++ package/go-bin/go-bin.mk | 20 ++++++++++++++++++++ package/goc/Config.in.host | 26 +++++++++++++++++++++++++- 5 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 package/go-bin/Config.in.host create mode 100644 package/go-bin/go-bin.hash create mode 100644 package/go-bin/go-bin.mk diff --git a/package/Config.in.host b/package/Config.in.host index 8c44ff0cb4..95b59bdacc 100644 --- a/package/Config.in.host +++ b/package/Config.in.host @@ -37,6 +37,7 @@ menu "Host utilities" source "package/genpart/Config.in.host" source "package/gnupg/Config.in.host" source "package/go/Config.in.host" + source "package/go-bin/Config.in.host" source "package/go-bootstrap/Config.in.host" source "package/goc/Config.in.host" source "package/google-breakpad/Config.in.host" diff --git a/package/go-bin/Config.in.host b/package/go-bin/Config.in.host new file mode 100644 index 0000000000..392060584f --- /dev/null +++ b/package/go-bin/Config.in.host @@ -0,0 +1,5 @@ +config BR2_PACKAGE_HOST_GO_BIN_HOST_ARCH + string + default 386 if BR2_HOSTARCH = "x86" + default amd64 if BR2_HOSTARCH = "x86_64" + default arm64 if BR2_HOSTARCH = "arm" diff --git a/package/go-bin/go-bin.hash b/package/go-bin/go-bin.hash new file mode 100644 index 0000000000..91456d3e9a --- /dev/null +++ b/package/go-bin/go-bin.hash @@ -0,0 +1,4 @@ +# sha256 checksum from https://go.dev/dl/ +sha256 9acc57342400c5b0c2da07b5b01b50da239dd4a7fad41a1fb56af8363ef4133f go1.19.1.linux-386.tar.gz +sha256 acc512fbab4f716a8f97a8b3fbaa9ddd39606a28be6c2515ef7c6c6311acffde go1.19.1.linux-amd64.tar.gz +sha256 49960821948b9c6b14041430890eccee58c76b52e2dbaafce971c3c38d43df9f go1.19.1.linux-arm64.tar.gz diff --git a/package/go-bin/go-bin.mk b/package/go-bin/go-bin.mk new file mode 100644 index 0000000000..cf2db90532 --- /dev/null +++ b/package/go-bin/go-bin.mk @@ -0,0 +1,20 @@ +################################################################################ +# +# go-bin +# +################################################################################ + +GO_BIN_VERSION = 1.19.1 +GO_BIN_SITE = https://go.dev/dl +GO_BIN_LICENSE = BSD-3-Clause +GO_BIN_LICENSE_FILES = LICENSE + +HOST_GO_BIN_PROVIDES = host-goc + +HOST_GO_BIN_SOURCE = go$(GO_BIN_VERSION).linux-$(call qstrip, $(BR2_PACKAGE_HOST_GO_BIN_HOST_ARCH)).tar.gz + +define HOST_GO_BIN_INSTALL_CMDS + $(HOST_GO_INSTALL_CMDS) +endef + +$(eval $(host-generic-package)) diff --git a/package/goc/Config.in.host b/package/goc/Config.in.host index b0266b50ea..0bde50982f 100644 --- a/package/goc/Config.in.host +++ b/package/goc/Config.in.host @@ -8,8 +8,32 @@ config BR2_PACKAGE_HOST_GOC if BR2_PACKAGE_HOST_GOC +choice + prompt "Go compiler variant" + default BR2_PACKAGE_HOST_GO_BIN + help + Select a Go compiler variant. + + Default to 'host-go-bin'. + +config BR2_PACKAGE_HOST_GO + bool "host go" + depends on BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS + help + This package will build the go compiler for the host. + +config BR2_PACKAGE_HOST_GO_BIN + bool "host go (pre-built)" + help + This package will install pre-built versions of the compiler + for the host. + +endchoice + config BR2_PACKAGE_PROVIDES_HOST_GOC string - default "host-go" + # Default to host-go-bin + default "host-go-bin" if BR2_PACKAGE_HOST_GO_BIN + default "host-go" if BR2_PACKAGE_HOST_GO endif From patchwork Mon Oct 17 15:17:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Perale X-Patchwork-Id: 1690976 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=140.211.166.133; helo=smtp2.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Mrgcg3mYgz1ygT for ; Tue, 18 Oct 2022 02:18:43 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 1660D405E0; Mon, 17 Oct 2022 15:18:41 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 1660D405E0 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vGhJgTBrV2jr; Mon, 17 Oct 2022 15:18:40 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp2.osuosl.org (Postfix) with ESMTP id 1DE2C404EB; Mon, 17 Oct 2022 15:18:39 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 1DE2C404EB X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 8D8B41BF2A5 for ; Mon, 17 Oct 2022 15:17:47 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 67A484176A for ; Mon, 17 Oct 2022 15:17:47 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 67A484176A X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3BQ47Eb2bVKU for ; Mon, 17 Oct 2022 15:17:46 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 6F22C41799 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by smtp4.osuosl.org (Postfix) with ESMTPS id 6F22C41799 for ; Mon, 17 Oct 2022 15:17:46 +0000 (UTC) Received: by mail-ed1-x52d.google.com with SMTP id b12so16542641edd.6 for ; Mon, 17 Oct 2022 08:17:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=GCwMzezK3jr5tfDuvMzU4KAu1BlwMGxF4mtJq8ZB+RU=; b=UaYB7tZObOU+aRFRvrqg8MmSFasxahxHmSJAn1gFy9/ill/Rd2jaTiclsGqBakDtZd ObE3opzwRKsu6jhYH5Y29Mi46zhWB6DxsS0OOVxWi9+Bkd3eHJ2h3DK5PGuRwFaDxpVt YCTmhA9SCM9pjFA4esoZkEITYQjfqHKi2TQmRjXY18/oK7iuvc+g6Dlk1e4JoLB7OpWI ivcXY9nEcenkRdQA2nl0iSY5xgHuog/qJ4RCWTBT5RDYOtZ9076Okarjv01XRKai1dbb jvMM5il1tBI5yNYWM5Gy5vM1xB9EDUnfpLQ9twq1kPTtrUNOXzGfuOoT7dbtlOaiB/B2 EYoQ== X-Gm-Message-State: ACrzQf2OKjhtcOOOUGR83GPp4LiEbxtHfo0WrlpEXfVETmDZp1huPMyv yWti2MvlAMzsxVhzxg3q8gLV86K5seuK2V4Y X-Google-Smtp-Source: AMsMyM7aVu7D05vsPesUsGRwMa2R8JqlBU1Ot+6be379sPmWRLJSEQ1a5uwRtFJkYs1yKVGFBpNDiQ== X-Received: by 2002:a05:6402:b12:b0:45d:4f99:6156 with SMTP id bm18-20020a0564020b1200b0045d4f996156mr10807321edb.219.1666019863993; Mon, 17 Oct 2022 08:17:43 -0700 (PDT) Received: from localhost.localdomain ([2a02:2788:1a4:785::9]) by smtp.gmail.com with ESMTPSA id s11-20020a50d48b000000b00458947539desm7471904edi.78.2022.10.17.08.17.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Oct 2022 08:17:42 -0700 (PDT) X-Google-Original-From: Thomas Perale To: buildroot@buildroot.org Date: Mon, 17 Oct 2022 17:17:26 +0200 Message-Id: <20221017151726.44005-5-thomas.perale@mind.be> X-Mailer: git-send-email 2.37.0 In-Reply-To: <20221017151726.44005-1-thomas.perale@mind.be> References: <20221017151726.44005-1-thomas.perale@mind.be> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=essensium.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=GCwMzezK3jr5tfDuvMzU4KAu1BlwMGxF4mtJq8ZB+RU=; b=esw4e3WyRSWJR/e1MA8xGEYPDM09rLRXdR/0wu4jNMzC7naSA3pfbGEf8WS23/mDQC ssOEiSTWfsNwNgcnNOWitmkSi+fT7DaLUKW+Rig5qeBiI8cRp001qJqalUBhyxb7w6e1 +VHVaXeQY8b8SxxG3ZTUQLEgXwhlv4WzSxc4eWL0bR5tY2+XnrMBOEBjcZrOywAyeKhp TSv17GQAWNLAmzn0ke4lAMjQsoZ0YVipsb8+4TWf/ymrnSn8NVXQw9+yV37MHtGszjvw pYpOPnq4+EOwWetTOCyuhLwRVYWjvC6bLueZ4VqU31bHFw/ya+w+eThJsMQSeevG9ghQ o+HA== X-Mailman-Original-Authentication-Results: smtp4.osuosl.org; dkim=pass (2048-bit key) header.d=essensium.com header.i=@essensium.com header.a=rsa-sha256 header.s=google header.b=esw4e3Wy Subject: [Buildroot] [PATCH 4/4] support/testing: add tests for Go X-BeenThere: buildroot@buildroot.org 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: , X-Patchwork-Original-From: Thomas Perale via buildroot From: Thomas Perale Reply-To: Thomas Perale Cc: Thomas Perale Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" Test the support of both the pre-built Go compiler and the Go compiler built from source. The test consists of compiling and installing in the root file system of a ARM vexpress QEMU system. The tests pass if the program can be ran correctly on the target. Signed-off-by: Thomas Perale --- support/testing/tests/package/test_go.py | 40 ++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 support/testing/tests/package/test_go.py diff --git a/support/testing/tests/package/test_go.py b/support/testing/tests/package/test_go.py new file mode 100644 index 0000000000..746aa28fc4 --- /dev/null +++ b/support/testing/tests/package/test_go.py @@ -0,0 +1,40 @@ +import os + +import infra.basetest + + +class TestGoBase(infra.basetest.BRTest): + + def login(self): + cpio_file = os.path.join(self.builddir, "images", "rootfs.cpio") + self.emulator.boot(arch="armv5", + kernel="builtin", + options=["-initrd", cpio_file]) + self.emulator.login() + + +class TestGoBin(TestGoBase): + config = infra.basetest.BASIC_TOOLCHAIN_CONFIG + \ + """ + BR2_TARGET_ROOTFS_CPIO=y + BR2_PACKAGE_HOST_GOC=y + BR2_PACKAGE_TINIFIER=y + """ + + def test_run(self): + self.login() + self.assertRunOk("tinifier -h") + + +class TestGo(TestGoBase): + config = infra.basetest.BASIC_TOOLCHAIN_CONFIG + \ + """ + BR2_TARGET_ROOTFS_CPIO=y + BR2_PACKAGE_HOST_GOC=y + BR2_PACKAGE_HOST_GO=y + BR2_PACKAGE_TINIFIER=y + """ + + def test_run(self): + self.login() + self.assertRunOk("tinifier -h")