diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2019-02-23 17:01:44 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2019-02-23 17:01:44 +0100 |
| commit | 40311807adda4b4c4163ba4824f7a01109ae6986 (patch) | |
| tree | 2a16852b09c27a8ee49a503d64933b2fd032e0c8 /pkg/build/linux.go | |
| parent | 0c7ffbeafca81b8feefb2dda3d11a239bc0bc4c7 (diff) | |
pkg/build: netbsd build improvements
1. Implement clean since we do incremental build we actually need no-op clean.
2. Don't copy netbsd to output dir, we don't need it there (we create full-fledged image).
3. Copy netbsd.gdb to obj/ dir, that's where it is expected.
4. Fix boot disk name for gce (it's sd0 instead of wd0).
Diffstat (limited to 'pkg/build/linux.go')
| -rw-r--r-- | pkg/build/linux.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/build/linux.go b/pkg/build/linux.go index f4dff538f..8b57cbec4 100644 --- a/pkg/build/linux.go +++ b/pkg/build/linux.go @@ -113,7 +113,7 @@ func (linux) createImage(vmType, kernelDir, outputDir, userspaceDir, cmdlineFile return nil } -func (linux) clean(kernelDir string) error { +func (linux) clean(kernelDir, targetArch string) error { cpu := strconv.Itoa(runtime.NumCPU()) cmd := osutil.Command("make", "distclean", "-j", cpu) if err := osutil.Sandbox(cmd, true, true); err != nil { |
