android_kernel_samsung_sm8650/build.config.msm.auto
Sankalp Negi 0bef7129bf build: Initial bazel support for gen4auto targets
Add the changes required to build gen4auto targets via
bazel build system.

Change-Id: I5a2ecc0c7f5d7dbab831790219dd5d1c1e89ecd8
Signed-off-by: Sankalp Negi <quic_snegi@quicinc.com>
2023-05-04 04:43:23 -07:00

26 lines
849 B
Plaintext

################################################################################
# boot image macros
BUILD_BOOT_IMG=1
# Common MSM configuration for building non-GKI-based kernels
DEFCONFIG="generic_auto_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"
exit 1
fi
}
build_defconfig_fragments