From b489e4987d1c181b1e4d16a8bbc32b97a90b9d8d Mon Sep 17 00:00:00 2001 From: Mark Johnston Date: Mon, 4 Mar 2019 22:30:02 -0500 Subject: pkg/build: don't export OS-specific functions --- pkg/build/netbsd.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/build/netbsd.go') diff --git a/pkg/build/netbsd.go b/pkg/build/netbsd.go index e23792975..91280577e 100644 --- a/pkg/build/netbsd.go +++ b/pkg/build/netbsd.go @@ -60,7 +60,7 @@ no options SVS return fmt.Errorf("failed to copy %v -> %v: %v", fullSrc, fullDst, err) } } - return CopyKernelToDisk(targetArch, vmType, outputDir, filepath.Join(compileDir, "netbsd")) + return ctx.copyKernelToDisk(targetArch, vmType, outputDir, filepath.Join(compileDir, "netbsd")) } func (ctx netbsd) clean(kernelDir, targetArch string) error { @@ -70,7 +70,7 @@ func (ctx netbsd) clean(kernelDir, targetArch string) error { } // Copy the compiled kernel to the qemu disk image using ssh. -func CopyKernelToDisk(targetArch, vmType, outputDir, kernel string) error { +func (ctx netbsd) copyKernelToDisk(targetArch, vmType, outputDir, kernel string) error { vmConfig := ` { "snapshot": false, -- cgit mrf-deployment