build.config.msm: Add build configs for telematics

Add build config for telematics targets.

Change-Id: Iaee44e004f1bf8b6c86a3a60ef5e95c1a7dc884d
Signed-off-by: Sanjay <quic_sanjaykd@quicinc.com>
This commit is contained in:
Sanjay
2022-06-01 12:12:53 +05:30
committed by Gerrit - the friendly Code Review server
parent ff938a6742
commit 7894d5ea6b

View File

@@ -0,0 +1,19 @@
################################################################################
# Common MSM configuration for building non-GKI-based kernels
DEFCONFIG="generic_tele_defconfig"
function build_defconfig_fragments() {
if [[ "${VARIANT}" =~ ^(perf_defconfig|debug_defconfig)$ ]]; then
apply_defconfig_fragment ${KERNEL_DIR}/arch/${ARCH}/configs/vendor/${MSM_ARCH}.config vendor/${MSM_ARCH}_defconfig
if [ "${VARIANT}" = perf_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 mdm"
exit 1
fi
}
build_defconfig_fragments