From 8ba23ee5505f859f4ae9961a002930cc568e2c9d Mon Sep 17 00:00:00 2001 From: Sahitya Tummala Date: Wed, 24 Nov 2021 15:40:03 +0530 Subject: [PATCH] build.config.anorak: Add build configs for Anorak Add build configs for Anorak. Change-Id: I92831811fec4c5c93b62aebb2e85d29d608bf268 Signed-off-by: Sahitya Tummala --- build.config.anorak | 41 +++++++++++++++++++++++++++++++++++++++++ build.config.msm.common | 4 +++- build.targets | 1 + modules.list.anorak | 6 ++++++ 4 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 build.config.anorak create mode 100644 modules.list.anorak diff --git a/build.config.anorak b/build.config.anorak new file mode 100644 index 000000000000..c500eb41a399 --- /dev/null +++ b/build.config.anorak @@ -0,0 +1,41 @@ +################################################################################ +## Inheriting configs from ACK +. ${ROOT_DIR}/common/build.config.common +. ${ROOT_DIR}/common/build.config.aarch64 + +################################################################################ +## Variant setup +MSM_ARCH=anorak +VARIANTS=(defconfig debug_defconfig) +[ -z "${VARIANT}" ] && VARIANT=debug_defconfig + +CONFIG_TARGET=${MSM_ARCH} + +BOOT_IMAGE_HEADER_VERSION=3 +BASE_ADDRESS=0x80000000 +PAGE_SIZE=4096 + +BUILD_VENDOR_DLKM=1 +TRIM_UNUSED_MODULES=1 +MODULES_LIST_ORDER="1" + +if [ "${KERNEL_CMDLINE_CONSOLE_AUTO}" != "0" ]; then + KERNEL_VENDOR_CMDLINE+=' console=ttyMSM0,115200n8 earlycon msm_geni_serial.con_enabled=1' +fi + +## Inheriting MSM configs +. ${KERNEL_DIR}/build.config.msm.common + +## Variant branch setup +BRANCH=$MSM_ARCH +if [ ! -z $VARIANT ]; then + BRANCH+=-${VARIANT} +fi + +# boot image macros +BUILD_BOOT_IMG=1 +BUILD_INITRAMFS=1 +DTB_IMG_CREATE=1 + +## Inheriting sxr common configs +. ${KERNEL_DIR}/build.config.sxr.common diff --git a/build.config.msm.common b/build.config.msm.common index 4c717cf1f826..bb752bc4ba12 100644 --- a/build.config.msm.common +++ b/build.config.msm.common @@ -12,7 +12,9 @@ CONFIG_DIR=arch/${ARCH}/configs BRANCH=msm-waipio -CONFIG_TARGET=msm.${MSM_ARCH} +if [ -z $CONFIG_TARGET ]; then + CONFIG_TARGET=msm.${MSM_ARCH} +fi ################################################################################ ## diff --git a/build.targets b/build.targets index 53e0a0323d08..a5be6413431a 100644 --- a/build.targets +++ b/build.targets @@ -1,5 +1,6 @@ build.config.msm.waipio build.config.msm.waipio.tuivm build.config.neo +build.config.anorak build.config.msm.parrot diff --git a/modules.list.anorak b/modules.list.anorak new file mode 100644 index 000000000000..73ce53a5ae1c --- /dev/null +++ b/modules.list.anorak @@ -0,0 +1,6 @@ +clk-dummy.ko +clk-qcom.ko +stub-regulator.ko +msm_geni_serial.ko +qcom-scm.ko +msm-geni-se.ko