From c6f10907c38ce49ddc321539f75aabf0a9ad6c71 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 15 Apr 2024 10:37:30 +0200 Subject: 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. --- sys/syz-extract/akaros.go | 45 --------------------------------------------- sys/syz-extract/extract.go | 1 - 2 files changed, 46 deletions(-) delete mode 100644 sys/syz-extract/akaros.go (limited to 'sys/syz-extract') 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), -- cgit mrf-deployment