diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2020-11-29 10:40:36 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-11-30 13:33:18 +0100 |
| commit | 1fd901159188a5e0c2b3559ae7ec7deff7c4e7a2 (patch) | |
| tree | 82c9a88630b01824aab94866cbe1d405a7e7219d /pkg/report | |
| parent | a142e60d5cf11dc798e4909c97803d75add83a11 (diff) | |
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.
Diffstat (limited to 'pkg/report')
| -rw-r--r-- | pkg/report/report.go | 6 |
1 files changed, 1 insertions, 5 deletions
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, |
