aboutsummaryrefslogtreecommitdiffstats
path: root/sys/syz-extract
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2024-04-15 10:37:30 +0200
committerDmitry Vyukov <dvyukov@google.com>2024-04-15 10:19:39 +0000
commitc6f10907c38ce49ddc321539f75aabf0a9ad6c71 (patch)
tree1277a1d64e2201b58b550ef0131222eaab9fcf73 /sys/syz-extract
parent33fec5a3ec55bce7f1664e70e6f5ff8daf56886d (diff)
all: remove akaros support
Akaros support is unused, it was shutdown on syzbot for a while, the akaros development seems to be frozen for years as well. We have a bunch of hacks for Akaros since it supported only super old gcc and haven't supported Go. Remove it.
Diffstat (limited to 'sys/syz-extract')
-rw-r--r--sys/syz-extract/akaros.go45
-rw-r--r--sys/syz-extract/extract.go1
2 files changed, 0 insertions, 46 deletions
diff --git a/sys/syz-extract/akaros.go b/sys/syz-extract/akaros.go
deleted file mode 100644
index 2c6bee2d1..000000000
--- a/sys/syz-extract/akaros.go
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright 2017 syzkaller project authors. All rights reserved.
-// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
-
-package main
-
-import (
- "path/filepath"
- "strings"
-
- "github.com/google/syzkaller/pkg/compiler"
-)
-
-type akaros struct{}
-
-func (*akaros) prepare(sourcedir string, build bool, arches []*Arch) error {
- return nil
-}
-
-func (*akaros) prepareArch(arch *Arch) error {
- return nil
-}
-
-func (*akaros) processFile(arch *Arch, info *compiler.ConstInfo) (map[string]uint64, map[string]bool, error) {
- dir := arch.sourceDir
- args := []string{
- "-fmessage-length=0",
- "-D__KERNEL__",
- "-DROS_KERNEL",
- "-I", filepath.Join(dir, "kern", "include"),
- "-I", filepath.Join(dir, "user", "parlib", "include"),
- }
- for _, incdir := range info.Incdirs {
- args = append(args, "-I"+filepath.Join(dir, incdir))
- }
- if arch.includeDirs != "" {
- for _, dir := range strings.Split(arch.includeDirs, ",") {
- args = append(args, "-I"+dir)
- }
- }
- params := &extractParams{
- DeclarePrintf: true,
- TargetEndian: arch.target.HostEndian,
- }
- return extract(info, "gcc", args, params)
-}
diff --git a/sys/syz-extract/extract.go b/sys/syz-extract/extract.go
index e391a6654..c0f61c793 100644
--- a/sys/syz-extract/extract.go
+++ b/sys/syz-extract/extract.go
@@ -57,7 +57,6 @@ type Extractor interface {
}
var extractors = map[string]Extractor{
- targets.Akaros: new(akaros),
targets.Linux: new(linux),
targets.FreeBSD: new(freebsd),
targets.Darwin: new(darwin),