mirror of
https://github.com/rwinkhart/sys.git
synced 2026-08-31 06:16:41 -04:00
unix: update to Linux 6.11
Change-Id: I1cc777822da1b557e69634faade8e24d06c00ce8 GitHub-Last-Rev: d09238ecd0989901b5d92e7a0ae2556c6e441d27 GitHub-Pull-Request: golang/sys#218 Reviewed-on: https://go-review.googlesource.com/c/sys/+/613855 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Ian Lance Taylor <iant@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com> Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com> Reviewed-by: Michael Knyszek <mknyszek@google.com>
This commit is contained in:
committed by
Gopher Robot
parent
981de40f5c
commit
e7397b9a65
@@ -15,8 +15,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
# Get the git sources. If not cached, this takes O(5 minutes).
|
||||
WORKDIR /git
|
||||
RUN git config --global advice.detachedHead false
|
||||
# Linux Kernel: Released 14 July 2024
|
||||
RUN git clone --branch v6.10 --depth 1 https://kernel.googlesource.com/pub/scm/linux/kernel/git/torvalds/linux
|
||||
# Linux Kernel: Released 15 Sep 2024
|
||||
RUN git clone --branch v6.11 --depth 1 https://kernel.googlesource.com/pub/scm/linux/kernel/git/torvalds/linux
|
||||
# GNU C library: Released 21 July 2024
|
||||
RUN git clone --branch release/2.40/master --depth 1 https://sourceware.org/git/glibc.git
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@ package main
|
||||
|
||||
import (
|
||||
"bufio"
|
||||
"bytes"
|
||||
"fmt"
|
||||
"os"
|
||||
"os/exec"
|
||||
@@ -125,6 +126,19 @@ func main() {
|
||||
fmt.Fprintf(os.Stderr, "can't run %s", cc)
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
switch goarch {
|
||||
case "riscv64", "loong64", "arm64":
|
||||
// Kernel linux v6.11 removed some __NR_* macros that only
|
||||
// existed on some architectures as an implementation detail. In
|
||||
// order to keep backwards compatibility we add them back.
|
||||
//
|
||||
// See https://lkml.org/lkml/2024/8/5/1283.
|
||||
if !bytes.Contains(cmd, []byte("#define __NR_arch_specific_syscall")) {
|
||||
cmd = append(cmd, []byte("#define __NR_arch_specific_syscall 244\n")...)
|
||||
}
|
||||
}
|
||||
|
||||
s := bufio.NewScanner(strings.NewReader(string(cmd)))
|
||||
var offset, prev, asOffset int
|
||||
var nums syscallNums
|
||||
|
||||
Reference in New Issue
Block a user