This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 33
/
build.config.msm.gki
42 lines (37 loc) · 1.74 KB
/
build.config.msm.gki
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
36
37
38
39
40
41
42
################################################################################
# Common MSM configuration for building GKI-based kernels
function generate_defconfig() {
${KERNEL_DIR}/scripts/gki/generate_defconfig.sh ${DEVICE} ${DEFCONFIG}
}
DEFCONFIG=vendor/${MSM_ARCH}-${VARIANT}_defconfig
append_cmd PRE_DEFCONFIG_CMDS 'generate_defconfig'
function builtin_defconfig() {
${KERNEL_DIR}/scripts/gki/fragment_allyesconfig.sh \
${KERNEL_DIR}/arch/arm64/configs/${DEFCONFIG} \
${KERNEL_DIR}/arch/arm64/configs/vendor/${MSM_ARCH}-builtin_defconfig
DEFCONFIG=vendor/${MSM_ARCH}-builtin_defconfig
# Techpack builtin
sed 's/=m/=y/g' ${KERNEL_DIR}/techpack/audio/config/${MSM_ARCH}auto.conf > \
${KERNEL_DIR}/techpack/audio/config/${MSM_ARCH}builtinauto.conf
sed 's/=m/=y/g' ${KERNEL_DIR}/techpack/display/config/${MSM_ARCH}disp.conf > \
${KERNEL_DIR}/techpack/display/config/${MSM_ARCH}builtindisp.conf
sed 's/=m/=y/g' ${KERNEL_DIR}/techpack/camera/config/${MSM_ARCH}camera.conf > \
${KERNEL_DIR}/techpack/camera/config/${MSM_ARCH}builtincamera.conf
# Hardcode for yupik
sed 's/=m/=y/g' ${KERNEL_DIR}/techpack/camera/config/yupikcamera.conf > \
${KERNEL_DIR}/techpack/camera/config/yupikbuiltincamera.conf
sed 's/=m/=y/g' ${KERNEL_DIR}/techpack/camera/config/shimacamera.conf > \
${KERNEL_DIR}/techpack/camera/config/shimabuiltincamera.conf
}
if [ ${BUILTIN} = "1" ]; then
append_cmd PRE_DEFCONFIG_CMDS 'builtin_defconfig'
fi
if [ -z "${GKI_RAMDISK_PREBUILT_BINARY}" ]; then
GKI_RAMDISK_PREBUILT_BINARY=prebuilts/boot-artifacts/${ARCH}/gki-ramdisk.cpio.gz
fi
################################################################################
## menuconfig
function menuconfig() {
${KERNEL_DIR}/scripts/gki/fragment_menuconfig.sh ${DEFCONFIG}
}
export -f menuconfig