aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/vcs/linux.go
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2023-07-19 13:59:59 +0200
committerAleksandr Nogikh <nogikh@google.com>2023-07-20 07:33:29 +0000
commit37668e463d42d68846539559443ec458c9b05acb (patch)
tree871479a159daca29e255d63b90b21124d5e98cc7 /pkg/vcs/linux.go
parent4547cdf9e497f833628b7b0660809b3247a7411e (diff)
pkg/vcs: apply more backports to Linux
Factor out the code that cherry-picks missing fixes to a Linux repo. Add two more commits that address issues with older kernel revisions.
Diffstat (limited to 'pkg/vcs/linux.go')
-rw-r--r--pkg/vcs/linux.go18
1 files changed, 2 insertions, 16 deletions
diff --git a/pkg/vcs/linux.go b/pkg/vcs/linux.go
index 341e488f4..16e1c79fa 100644
--- a/pkg/vcs/linux.go
+++ b/pkg/vcs/linux.go
@@ -167,24 +167,10 @@ func (ctx *linux) EnvForCommit(
Compiler: compiler,
KernelConfig: cf.Serialize(),
}
-
- // Compiling v4.6..v5.11 with a modern objtool, w/o this patch, results in the
- // following issue, when compiling with clang:
- // arch/x86/entry/thunk_64.o: warning: objtool: missing symbol table
- // We don't bisect that far back with neither clang nor gcc, so this should be fine:
- fix := "1d489151e9f9d1647110277ff77282fe4d96d09b"
- fixTitle := "objtool: Don't fail on missing symbol table"
- searchResult, err := ctx.git.GetCommitByTitle(fixTitle)
+ err = linuxFixBackports(ctx.git)
if err != nil {
- return nil, err
+ return nil, fmt.Errorf("failed to cherry pick fixes: %w", err)
}
- if searchResult == nil {
- _, err := ctx.git.git("cherry-pick", "--no-commit", fix)
- if err != nil {
- return nil, err
- }
- }
-
return env, nil
}