android_kernel_xiaomi_sm8450/build.config.msm.vm
Murali Nalajala e926a49e20 build.config: add new build configs to compile vm
Add new build configs to compile a kernel for virtual machine.

Change-Id: If7d991a9975bb1e45c62a5d414e8a81cec796bbd
Signed-off-by: Murali Nalajala <mnalajal@codeaurora.org>
2020-12-10 11:08:49 -08:00

20 lines
679 B
Plaintext

################################################################################
# Common configuration for building kernel for Virtual Machines
DEFCONFIG="generic_vm_defconfig"
function build_defconfig_fragments() {
if [[ "${VARIANT}" =~ ^(defconfig|debug_defconfig)$ ]]; then
apply_defconfig_fragment ${KERNEL_DIR}/arch/${ARCH}/configs/vendor/${MSM_ARCH}.config vendor/${MSM_ARCH}_defconfig
if [ "${VARIANT}" = defconfig ]; then
return
fi
apply_defconfig_fragment ${KERNEL_DIR}/arch/${ARCH}/configs/vendor/${MSM_ARCH}_debug.config vendor/${MSM_ARCH}-debug_defconfig
else
echo "Variant '${VARIANT}' unsupported by gki"
exit 1
fi
}
build_defconfig_fragments