-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.config.msm.bengal.le
49 lines (41 loc) · 1.71 KB
/
build.config.msm.bengal.le
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
43
44
45
46
47
48
49
################################################################################
## Inheriting configs from ACK
. "${ROOT_DIR}"/msm-kernel/build.config.common
. "${ROOT_DIR}"/msm-kernel/build.config.aarch64
################################################################################
## Variant setup
MSM_ARCH=bengal_le
VARIANTS=(consolidate gki)
[ -z "${VARIANT}" ] && VARIANT=consolidate
if [ -e "${ROOT_DIR}/msm-kernel" ] && [ "${KERNEL_DIR}" = "common" ]; then
KERNEL_DIR="msm-kernel"
fi
ABL_SRC=bootable/bootloader/edk2
BOOT_IMAGE_HEADER_VERSION=2
BASE_ADDRESS=0x80000000
PAGE_SIZE=4096
BUILD_CONFIG_ABL=${ABL_SRC}/QcomModulePkg/build.config.msm.bengal.le
DTB_IMG_CREATE=1
PREFERRED_USERSPACE=le
[ -z "${DT_OVERLAY_SUPPORT}" ] && DT_OVERLAY_SUPPORT=1
if [ "${KERNEL_CMDLINE_CONSOLE_AUTO}" != "0" ]; then
KERNEL_CMDLINE+=' console=ttyMSM0,115200n8 earlycon=qcom_geni,0x4a90000 qcom_geni_serial.con_enabled=1 loglevel=8 rootwait init=/sbin/init '
fi
################################################################################
## Inheriting MSM configs
. ${KERNEL_DIR}/build.config.msm.common
DEFCONFIG="generic_bengal_defconfig"
function build_defconfig_fragments() {
if [[ "${VARIANT}" =~ ^(gki|consolidate)$ ]]; then
apply_defconfig_fragment "${KERNEL_DIR}"/arch/"${ARCH}"/configs/vendor/"${MSM_ARCH}"_GKI.config vendor/${MSM_ARCH}-gki_defconfig
if [ "${VARIANT}" = gki ]; then
return
fi
apply_defconfig_fragment "${KERNEL_DIR}"/arch/"${ARCH}"/configs/consolidate.fragment
apply_defconfig_fragment "${KERNEL_DIR}"/arch/"${ARCH}"/configs/vendor/"${MSM_ARCH}"_consolidate.config vendor/${MSM_ARCH}-consolidate_defconfig
else
echo "Variant '${VARIANT}' unsupported by gki"
exit 1
fi
}
build_defconfig_fragments