From abda9b1a98d331fa672f556e33f18df2eed424bd Mon Sep 17 00:00:00 2001 From: Kris Alder Date: Fri, 29 Apr 2022 15:24:59 -0700 Subject: pkg/build: build Android kernel and embed in Cuttlefish image Android uses some config files (specified with the BUILD_CONFIG environment variable) to configure kernel builds. KASan configurations already exist. We want to mount the image, install a new Cuttlefish emulator binary (using fetch_cvd) and copy over the kernel that we've built. --- pkg/build/build.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'pkg/build/build.go') diff --git a/pkg/build/build.go b/pkg/build/build.go index 0f19787ac..284bc0949 100644 --- a/pkg/build/build.go +++ b/pkg/build/build.go @@ -121,8 +121,12 @@ type builder interface { } func getBuilder(targetOS, targetArch, vmType string) (builder, error) { - if targetOS == targets.Linux && vmType == "gvisor" { - return gvisor{}, nil + if targetOS == targets.Linux { + if vmType == "gvisor" { + return gvisor{}, nil + } else if vmType == "cuttlefish" { + return android{}, nil + } } builders := map[string]builder{ targets.Linux: linux{}, -- cgit mrf-deployment