From patchwork Thu Nov 13 12:56:40 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Marko X-Patchwork-Id: 74433 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id C6B6FCD8C85 for ; Thu, 13 Nov 2025 12:57:28 +0000 (UTC) Received: from mta-65-227.siemens.flowmailer.net (mta-65-227.siemens.flowmailer.net [185.136.65.227]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.23158.1763038637497159150 for ; Thu, 13 Nov 2025 04:57:18 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=peter.marko@siemens.com header.s=fm1 header.b=JIMZQNuB; spf=pass (domain: rts-flowmailer.siemens.com, ip: 185.136.65.227, mailfrom: fm-256628-2025111312571466c96cbc1200020700-ednof1@rts-flowmailer.siemens.com) Received: by mta-65-227.siemens.flowmailer.net with ESMTPSA id 2025111312571466c96cbc1200020700 for ; Thu, 13 Nov 2025 13:57:14 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm1; d=siemens.com; i=peter.marko@siemens.com; h=Date:From:Subject:To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Cc:References:In-Reply-To; bh=XJJycwOvGTWgyTpirUAEAq1t8sT6WxgWFDUJbXWHVjs=; b=JIMZQNuBOQOavh7GGv4Fyo5vPUN8DiTPHi9zVoqSEMmOb9ulE1LWRH4I6OtO7LzhCJPqIl zI6L0C17DE6vtzc59b9p0VXgydsqX86DDbdhgm5ptYOQjt7dx3fnT1hjROIKdM6ZNel6m3gr 56HVpcpVBrtN6h3C3HPtBo1X1QUK5IsGmaxwWEgKbI55e2nLl8cQ2Sqhb9cJ35C2UyLa6oRZ mMV8pg27dWzbj2sxe3rO68WbiXrnTzORdl5otnpBo3qqFwKAWoj6BmeJoO5rNgwMZaJI5QKk 7CftM8IT68wHB7gTO2Wz0JcDYPZL9W9NTjV++RgkWm7fO7L/wMT6hj3Q==; From: Peter Marko To: yocto-patches@lists.yoctoproject.org Cc: peter.marko@siemens.com, jose.quaresma@foundries.io Subject: [meta-lts-mixins][scarthgap/go][RFC PATCH 02/34] go-helloworld: add from openembedded-core scarthgap Date: Thu, 13 Nov 2025 13:56:40 +0100 Message-Id: <20251113125712.18914-3-peter.marko@siemens.com> In-Reply-To: <20251113125712.18914-1-peter.marko@siemens.com> References: <20251113125712.18914-1-peter.marko@siemens.com> MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-256628:519-21489:flowmailer List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 13 Nov 2025 12:57:28 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/2516 This allows a quick smoke test for whether go toolchain produces working executables. Last release where go-helloworld recipe was identical on scarthgap and master is yocto-5.0.11. Afterwards license was fixed on scarthgap and no further updates were done. * fa45d6d5bec8fe503ff6b9166a3b4af31ea95369 go-helloworld: fix license This commit is missing on master and will be submitted there. Version copied here is from yocto-5.0.11 as a clean cherry-pick base. * https://git.openembedded.org/openembedded-core/tree/meta/recipes-extended/go-examples?h=yocto-5.0.11 Signed-off-by: Peter Marko --- .../go-examples/go-helloworld_0.1.bb | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 recipes-extended/go-examples/go-helloworld_0.1.bb diff --git a/recipes-extended/go-examples/go-helloworld_0.1.bb b/recipes-extended/go-examples/go-helloworld_0.1.bb new file mode 100644 index 0000000..98cd4d8 --- /dev/null +++ b/recipes-extended/go-examples/go-helloworld_0.1.bb @@ -0,0 +1,22 @@ +SUMMARY = "This is a simple example recipe that cross-compiles a Go program." +SECTION = "examples" +HOMEPAGE = "https://golang.org/" + +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" + +SRC_URI = "git://go.googlesource.com/example;branch=master;protocol=https" +SRCREV = "d9923f6970e9ba7e0d23aa9448ead71ea57235ae" +UPSTREAM_CHECK_COMMITS = "1" + +GO_IMPORT = "golang.org/x/example" +GO_INSTALL = "${GO_IMPORT}/hello" + +export GO111MODULE="off" + +inherit go + +# This is just to make clear where this example is +do_install:append() { + mv ${D}${bindir}/hello ${D}${bindir}/${BPN} +}