From 1fd901159188a5e0c2b3559ae7ec7deff7c4e7a2 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sun, 29 Nov 2020 10:40:36 +0100 Subject: pkg/mgrconfig: add prog&sys.targets targets to Config These are widely used with the config as the refactoring shows. This removes a bunch of unnecessary code. Also fixes a number of bugs where we confused Arch with VMArch. --- pkg/report/report.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'pkg/report') diff --git a/pkg/report/report.go b/pkg/report/report.go index fc923764f..47e8d9412 100644 --- a/pkg/report/report.go +++ b/pkg/report/report.go @@ -100,12 +100,8 @@ func NewReporter(cfg *mgrconfig.Config) (Reporter, error) { if err != nil { return nil, err } - target := targets.Get(cfg.TargetOS, cfg.TargetArch) - if target == nil && typ != "gvisor" { - return nil, fmt.Errorf("unknown target %v/%v", cfg.TargetOS, cfg.TargetArch) - } config := &config{ - target: target, + target: cfg.SysTarget, kernelSrc: cfg.KernelSrc, kernelBuildSrc: cfg.KernelBuildSrc, kernelObj: cfg.KernelObj, -- cgit mrf-deployment