diff options
| author | Siddharth M <siddharth.muralee@gmail.com> | 2019-08-15 10:54:30 +0530 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2019-09-18 15:00:55 +0200 |
| commit | 7fa5d0a69b3e8f3dd41dfcf0ae8500360d83f053 (patch) | |
| tree | 6655ab9fbe3f64692f9e13b31c28c4caccc9f2b6 /pkg | |
| parent | 14d41584908f05864549438d602687de2585eb7b (diff) | |
pkg/build: build netbsd using config files
Diffstat (limited to 'pkg')
| -rw-r--r-- | pkg/build/netbsd.go | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/pkg/build/netbsd.go b/pkg/build/netbsd.go index 5d9263620..8f603cc5b 100644 --- a/pkg/build/netbsd.go +++ b/pkg/build/netbsd.go @@ -26,23 +26,7 @@ func (ctx netbsd) build(targetArch, vmType, kernelDir, outputDir, compiler, user confDir := fmt.Sprintf("%v/sys/arch/%v/conf", kernelDir, targetArch) compileDir := fmt.Sprintf("%v/sys/arch/%v/compile/obj/%v", kernelDir, targetArch, kernelName) - // Compile the kernel with KASAN - conf := []byte(` -include "arch/amd64/conf/GENERIC" - -options DEBUG -options LOCKDEBUG - -makeoptions KASAN=1 -options KASAN -no options SVS -options KASAN_PANIC - -makeoptions KCOV=1 -options KCOV -`) - - if err := osutil.WriteFile(filepath.Join(confDir, kernelName), conf); err != nil { + if err := osutil.WriteFile(filepath.Join(confDir, kernelName), config); err != nil { return err } // Build tools before building kernel |
