From b420c4953e6ef14522be50a754d1f1b473441bb6 Mon Sep 17 00:00:00 2001 From: Amrit Anand Date: Wed, 23 Feb 2022 10:18:21 +0530 Subject: [PATCH] build.config: neo: Add support to compile neo le Adding support to enable neo la builds. Enable compilation and generation for boot and vendor_boot. Add vendor commandline for neo le config builds. Change-Id: I23fad251fa53feb515fb5a21ff4c47b39318a230 Signed-off-by: Amrit Anand --- build.config.neo_le | 23 +++++++++++++++++++---- modules.list.neo_le | 1 + 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/build.config.neo_le b/build.config.neo_le index cb948a09f0e0..ae94636cc6ba 100644 --- a/build.config.neo_le +++ b/build.config.neo_le @@ -9,17 +9,23 @@ MSM_ARCH=neo_le VARIANTS=(defconfig debug_defconfig) [ -z "${VARIANT}" ] && VARIANT=defconfig +if [ -e "${ROOT_DIR}/msm-kernel" -a "${KERNEL_DIR}" = "common" ]; then + KERNEL_DIR="msm-kernel" +fi + BASE_ADDRESS=0x80000000 PAGE_SIZE=4096 +BOOT_IMAGE_HEADER_VERSION=3 +BUILD_VENDOR_DLKM=1 +SUPER_IMAGE_SIZE=0x10000000 +TRIM_UNUSED_MODULES=1 +CONFIG_TARGET=${MSM_ARCH} +MODULES_LIST_ORDER="1" [ -z "${DT_OVERLAY_SUPPORT}" ] && DT_OVERLAY_SUPPORT=1 ################################################################################ ## Define VM parameters -KERNEL_OFFSET=0xe0b00000 -DTB_OFFSET=0xe2b00000 -RAMDISK_OFFSET=0xe2c00000 -DUMMY_IMG_OFFSET=0xe84ff000 VM_SIZE_EXT4=270000000 DUMMY_IMG_SIZE=4096 @@ -34,5 +40,14 @@ if [ ! -z $VARIANT ]; then BRANCH+=-${VARIANT} fi +# boot image macros +BUILD_BOOT_IMG=1 +BUILD_INITRAMFS=1 + +if [ "${KERNEL_CMDLINE_CONSOLE_AUTO}" != "0" ]; then + KERNEL_VENDOR_CMDLINE+=' nokaslr rw rootwait noinitrd earlycon msm_geni_serial.con_enabled=1' + KERNEL_VENDOR_CMDLINE+=' earlycon=msm_geni_serial,0x00A94000' +fi + ## Inheriting sxr common configs . ${KERNEL_DIR}/build.config.sxr.common diff --git a/modules.list.neo_le b/modules.list.neo_le index 7540ff0f33c4..cce0bea66658 100644 --- a/modules.list.neo_le +++ b/modules.list.neo_le @@ -53,3 +53,4 @@ clk-rpmh.ko qcom-cpufreq-hw.ko llcc-qcom.ko msm_dma_iommu_mapping.ko +socinfo.ko