forked from LineageOS/android_kernel_oneplus_sm8650
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathbuild.config.msm.auto
More file actions
25 lines (18 loc) · 849 Bytes
/
build.config.msm.auto
File metadata and controls
25 lines (18 loc) · 849 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
################################################################################
# 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