-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathbuild.config.msm.sun.le
More file actions
35 lines (27 loc) · 1.15 KB
/
build.config.msm.sun.le
File metadata and controls
35 lines (27 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
## Inheriting configs from ACK
. "${ROOT_DIR}"/msm-kernel/build.config.common
. "${ROOT_DIR}"/msm-kernel/build.config.aarch64
################################################################################
## Variant setup
MSM_ARCH=sun_le
VARIANTS=(perf_defconfig debug_defconfig)
[ -z "${VARIANT}" ] && VARIANT=debug_defconfig
BUILD_BOOT_IMG=1
PAGE_SIZE=4096
## Inheriting MSM configs
. "${KERNEL_DIR}"/build.config.msm.common
# Common MSM configuration for building non-GKI-based kernels
DEFCONFIG="generic_le_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