diff options
| author | Peter Marko <peter.marko@siemens.com> | 2025-01-28 19:39:42 +0100 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2025-02-03 06:24:37 -0800 |
| commit | ec14a3ed28bbc10bc9b7378da65f4e9137ee60fb (patch) | |
| tree | e8cee1b8689f45918934f9bd3778639559e93348 /meta/recipes-devtools/go/go-binary-native_1.22.10.bb | |
| parent | b0df688b3c4ebaadb523654229909f89a94cbab9 (diff) | |
| download | poky-ec14a3ed28bbc10bc9b7378da65f4e9137ee60fb.tar.gz | |
go: upgrade 1.22.9 -> 1.22.10
Upgrade to latest 1.22.x release [1]:
$ git --no-pager log --oneline go1.22.9..go1.22.10
8f3f22eef8 (tag: go1.22.10) [release-branch.go1.22] go1.22.10
6d7a95abca [release-branch.go1.22] runtime: reserve 4kB for system stack on windows-386
6f05fa7a4f [release-branch.go1.22] syscall: mark SyscallN as noescape
3355db9690 [release-branch.go1.22] time: accept "+01" in TestLoadFixed on OpenBSD
[1] https://github.com/golang/go/compare/go1.22.9...go1.22.10
(From OE-Core rev: e357c93b39df938dc36195dbd779a58b2951b8e6)
(From OE-Core rev: d723fa3573d02cc815ad9706aafd7510eb54eac6)
Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/recipes-devtools/go/go-binary-native_1.22.10.bb')
| -rw-r--r-- | meta/recipes-devtools/go/go-binary-native_1.22.10.bb | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/meta/recipes-devtools/go/go-binary-native_1.22.10.bb b/meta/recipes-devtools/go/go-binary-native_1.22.10.bb new file mode 100644 index 0000000000..8c8fe5bff9 --- /dev/null +++ b/meta/recipes-devtools/go/go-binary-native_1.22.10.bb | |||
| @@ -0,0 +1,50 @@ | |||
| 1 | # This recipe is for bootstrapping our go-cross from a prebuilt binary of Go from golang.org. | ||
| 2 | |||
| 3 | SUMMARY = "Go programming language compiler (upstream binary for bootstrap)" | ||
| 4 | HOMEPAGE = " http://golang.org/" | ||
| 5 | LICENSE = "BSD-3-Clause" | ||
| 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=5d4950ecb7b26d2c5e4e7b4e0dd74707" | ||
| 7 | |||
| 8 | PROVIDES = "go-native" | ||
| 9 | |||
| 10 | # Checksums available at https://go.dev/dl/ | ||
| 11 | SRC_URI = "https://dl.google.com/go/go${PV}.${BUILD_GOOS}-${BUILD_GOARCH}.tar.gz;name=go_${BUILD_GOTUPLE}" | ||
| 12 | SRC_URI[go_linux_amd64.sha256sum] = "736ce492a19d756a92719a6121226087ccd91b652ed5caec40ad6dbfb2252092" | ||
| 13 | SRC_URI[go_linux_arm64.sha256sum] = "5213c5e32fde3bd7da65516467b7ffbfe40d2bb5a5f58105e387eef450583eec" | ||
| 14 | SRC_URI[go_linux_ppc64le.sha256sum] = "db05b9838f69d741fb9a5301220b1a62014aee025b0baf341aba3d280087b981" | ||
| 15 | |||
| 16 | UPSTREAM_CHECK_URI = "https://golang.org/dl/" | ||
| 17 | UPSTREAM_CHECK_REGEX = "go(?P<pver>\d+(\.\d+)+)\.linux" | ||
| 18 | |||
| 19 | CVE_PRODUCT = "golang:go" | ||
| 20 | |||
| 21 | S = "${WORKDIR}/go" | ||
| 22 | |||
| 23 | inherit goarch native | ||
| 24 | |||
| 25 | do_compile() { | ||
| 26 | : | ||
| 27 | } | ||
| 28 | |||
| 29 | make_wrapper() { | ||
| 30 | rm -f ${D}${bindir}/$1 | ||
| 31 | cat <<END >${D}${bindir}/$1 | ||
| 32 | #!/bin/bash | ||
| 33 | here=\`dirname \$0\` | ||
| 34 | export GOROOT="${GOROOT:-\`readlink -f \$here/../lib/go\`}" | ||
| 35 | \$here/../lib/go/bin/$1 "\$@" | ||
| 36 | END | ||
| 37 | chmod +x ${D}${bindir}/$1 | ||
| 38 | } | ||
| 39 | |||
| 40 | do_install() { | ||
| 41 | find ${S} -depth -type d -name testdata -exec rm -rf {} + | ||
| 42 | |||
| 43 | install -d ${D}${bindir} ${D}${libdir}/go | ||
| 44 | cp --preserve=mode,timestamps -R ${S}/ ${D}${libdir}/ | ||
| 45 | |||
| 46 | for f in ${S}/bin/* | ||
| 47 | do | ||
| 48 | make_wrapper `basename $f` | ||
| 49 | done | ||
| 50 | } | ||
