similarity index 91%
rename from meta/recipes-devtools/go/go-1.27.1.inc
rename to meta/recipes-devtools/go/go-1.27.2.inc
@@ -17,4 +17,4 @@ SRC_URI += "\
file://0010-cmd-go-clear-GOROOT-for-func-ldShared-when-trimpath-.patch \
file://0011-internal-cgrouptest-skip-when-cpu.max-is-not-availab.patch \
"
-SRC_URI[main.sha256sum] = "4e408abae126d916b6164627193f2c54f0e3ca1312d693b86db45f862ab238b1"
+SRC_URI[main.sha256sum] = "03495da2ba64894d40f5c4992e49454fa78b50690604ff92b6afff5081b76e62"
similarity index 80%
rename from meta/recipes-devtools/go/go-binary-native_1.27.1.bb
rename to meta/recipes-devtools/go/go-binary-native_1.27.2.bb
@@ -9,9 +9,9 @@ PROVIDES = "go-native"
# Checksums available at https://go.dev/dl/
SRC_URI = "https://dl.google.com/go/go${PV}.${BUILD_GOOS}-${BUILD_GOARCH}.tar.gz;name=go_${BUILD_GOTUPLE}"
-SRC_URI[go_linux_amd64.sha256sum] = "63d339f0da5ab53635a56f2490a7984dfe12dfcff22ad749f63edaf590168445"
-SRC_URI[go_linux_arm64.sha256sum] = "3450b45a3f9ee8568792736a5c5e70a1f2e9b36c35a8f74958c03e51d7d92bec"
-SRC_URI[go_linux_ppc64le.sha256sum] = "ad1ff83c24f783c2d4a025852b928a05c199e8742a14a5482d88de0293d2bd0d"
+SRC_URI[go_linux_amd64.sha256sum] = "ecbadb99091a3f46e31f5f934b068b1864eafa7995211b39eaddf76996045fe5"
+SRC_URI[go_linux_arm64.sha256sum] = "94f3e30b8e374bc285e7dadc11e0865726b9bc6e85b841ccceaabc0214c6b7c8"
+SRC_URI[go_linux_ppc64le.sha256sum] = "059d5f01b1607a724ea5ae87c5589041a51c577a6f3f20099e49d00f31c803fa"
UPSTREAM_CHECK_URI = "https://golang.org/dl/"
UPSTREAM_CHECK_REGEX = "go(?P<pver>\d+(\.\d+)+)\.linux"
similarity index 100%
rename from meta/recipes-devtools/go/go-cross-canadian_1.27.1.bb
rename to meta/recipes-devtools/go/go-cross-canadian_1.27.2.bb
similarity index 100%
rename from meta/recipes-devtools/go/go-cross_1.27.1.bb
rename to meta/recipes-devtools/go/go-cross_1.27.2.bb
similarity index 100%
rename from meta/recipes-devtools/go/go-crosssdk_1.27.1.bb
rename to meta/recipes-devtools/go/go-crosssdk_1.27.2.bb
similarity index 100%
rename from meta/recipes-devtools/go/go-runtime_1.27.1.bb
rename to meta/recipes-devtools/go/go-runtime_1.27.2.bb
@@ -108,7 +108,7 @@ index 8dcf324529f5..617b7ece73f0 100644
}
// Configuration specific to compiler toolchain.
-@@ -2838,8 +2840,25 @@ func envList(key, def string) []string {
+@@ -2839,8 +2841,25 @@ func envList(key, def string) []string {
return args
}
@@ -135,7 +135,7 @@ index 8dcf324529f5..617b7ece73f0 100644
if cppflags, err = buildFlags("CPPFLAGS", "", p.CgoCPPFLAGS, checkCompilerFlags); err != nil {
return
}
-@@ -2855,6 +2874,13 @@ func (b *Builder) CFlags(p *load.Package) (cppflags, cflags, cxxflags, fflags, l
+@@ -2856,6 +2875,13 @@ func (b *Builder) CFlags(p *load.Package) (cppflags, cflags, cxxflags, fflags, l
if ldflags, err = buildFlags("LDFLAGS", DefaultCFlags, p.CgoLDFLAGS, checkLinkerFlags); err != nil {
return
}
@@ -149,7 +149,7 @@ index 8dcf324529f5..617b7ece73f0 100644
return
}
-@@ -2943,7 +2969,7 @@ func (b *Builder) runCgo(ctx context.Context, a *Action) error {
+@@ -2944,7 +2970,7 @@ func (b *Builder) runCgo(ctx context.Context, a *Action) error {
cgoExe := base.Tool("cgo")
cgofiles = mkAbsFiles(p.Dir, cgofiles)
@@ -158,7 +158,7 @@ index 8dcf324529f5..617b7ece73f0 100644
if err != nil {
return err
}
-@@ -3501,7 +3527,7 @@ func (b *Builder) swigOne(a *Action, file, objdir string, pcCFLAGS []string, cxx
+@@ -3502,7 +3528,7 @@ func (b *Builder) swigOne(a *Action, file, objdir string, pcCFLAGS []string, cxx
p := a.Package
sh := b.Shell(a)
@@ -22,7 +22,7 @@ diff --git a/src/cmd/link/internal/ld/lib.go b/src/cmd/link/internal/ld/lib.go
index 9cbc12919f1d..0f33521777d1 100644
--- a/src/cmd/link/internal/ld/lib.go
+++ b/src/cmd/link/internal/ld/lib.go
-@@ -1672,6 +1672,7 @@ func (ctxt *Link) hostlink() {
+@@ -1680,6 +1680,7 @@ func (ctxt *Link) hostlink() {
argv = append(argv, "-Wl,-z,relro")
}
argv = append(argv, "-shared")
@@ -30,7 +30,7 @@ index 9cbc12919f1d..0f33521777d1 100644
if ctxt.HeadType == objabi.Hwindows {
argv = addASLRargs(argv, *flagAslr)
} else {
-@@ -1687,6 +1688,7 @@ func (ctxt *Link) hostlink() {
+@@ -1695,6 +1696,7 @@ func (ctxt *Link) hostlink() {
argv = append(argv, "-Wl,-z,relro")
}
argv = append(argv, "-shared")
@@ -38,7 +38,7 @@ index 9cbc12919f1d..0f33521777d1 100644
case BuildModePlugin:
if ctxt.HeadType == objabi.Hdarwin {
argv = append(argv, "-dynamiclib")
-@@ -1695,6 +1697,7 @@ func (ctxt *Link) hostlink() {
+@@ -1703,6 +1705,7 @@ func (ctxt *Link) hostlink() {
argv = append(argv, "-Wl,-z,relro")
}
argv = append(argv, "-shared")
@@ -94,7 +94,7 @@ index 617b7ece73f0..46c0712c5bd0 100644
if err := sh.Mkdir(buildAction.Objdir); err != nil {
return nil, err
}
-@@ -1922,6 +1939,14 @@ func (b *Builder) linkShared(ctx context.Context, a *Action) (err error) {
+@@ -1923,6 +1940,14 @@ func (b *Builder) linkShared(ctx context.Context, a *Action) (err error) {
return err
}
@@ -18,7 +18,7 @@ diff --git a/src/cmd/go/internal/work/exec.go b/src/cmd/go/internal/work/exec.go
index 46c0712c5bd0..e7c0459ee4c0 100644
--- a/src/cmd/go/internal/work/exec.go
+++ b/src/cmd/go/internal/work/exec.go
-@@ -1597,6 +1597,29 @@ func (b *Builder) linkActionID(a *Action) cache.ActionID {
+@@ -1598,6 +1598,29 @@ func (b *Builder) linkActionID(a *Action) cache.ActionID {
return h.Sum()
}
@@ -48,7 +48,7 @@ index 46c0712c5bd0..e7c0459ee4c0 100644
// printLinkerConfig prints the linker config into the hash h,
// as part of the computation of a linker-related action ID.
func (b *Builder) printLinkerConfig(h io.Writer, p *load.Package) {
-@@ -1607,7 +1630,7 @@ func (b *Builder) printLinkerConfig(h io.Writer, p *load.Package) {
+@@ -1608,7 +1631,7 @@ func (b *Builder) printLinkerConfig(h io.Writer, p *load.Package) {
case "gc":
fmt.Fprintf(h, "link %s %q %s\n", b.toolID("link"), forcedLdflags, ldBuildmode)
if p != nil {
@@ -21,13 +21,13 @@ Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
1 file changed, 6 insertions(+)
diff --git a/src/internal/cgrouptest/cgrouptest_linux.go b/src/internal/cgrouptest/cgrouptest_linux.go
-index ad9599c..a4b9b52 100644
+index ad9599c9..a4b9b52d 100644
--- a/src/internal/cgrouptest/cgrouptest_linux.go
+++ b/src/internal/cgrouptest/cgrouptest_linux.go
@@ -82,6 +82,12 @@ func InCgroupV2(t *testing.T, fn func(*CgroupV2)) {
}
}()
-
+
+ // cpu.max only exists when the kernel supports CPU bandwidth control
+ // (CONFIG_CFS_BANDWIDTH), even if the cpu controller is enabled.
+ if _, err := os.Stat(filepath.Join(path, "cpu.max")); err != nil {
@@ -36,4 +36,4 @@ index ad9599c..a4b9b52 100644
+
migrateTo(t, path)
defer migrateTo(t, orig)
-
+
similarity index 100%
rename from meta/recipes-devtools/go/go_1.27.1.bb
rename to meta/recipes-devtools/go/go_1.27.2.bb