From 7fa5d0a69b3e8f3dd41dfcf0ae8500360d83f053 Mon Sep 17 00:00:00 2001 From: Siddharth M Date: Thu, 15 Aug 2019 10:54:30 +0530 Subject: pkg/build: build netbsd using config files --- pkg/build/netbsd.go | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'pkg') 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 -- cgit mrf-deployment