build.config: Add support for KERNEL_CMDLINE_CONSOLE_AUTO

By default, boot.img with console support should created. If a different
console or disabled console is desired, then parent build.config should
opt-out by setting KERNEL_CMDLINE_CONSOLE_AUTO=0. This is opt-out rather
than opt-in to support developer and automation workflows.

Change-Id: I2b41cb1416558987515ea433eb24ceeda719f474
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
This commit is contained in:
Elliot Berman 2020-11-02 08:41:10 -08:00
parent 08fef917c3
commit 731fec20fd
2 changed files with 8 additions and 0 deletions

View File

@ -15,6 +15,10 @@ BOOT_IMAGE_HEADER_VERSION=3
BASE_ADDRESS=0x80000000
PAGE_SIZE=4096
if [ "${KERNEL_CMDLINE_CONSOLE_AUTO}" != "0" ]; then
KERNEL_VENDOR_CMDLINE+=' console=ttyMSM0,115200n8 earlycon=msm_geni_serial,0x0098C000'
fi
################################################################################
## Inheriting MSM configs
. ${KERNEL_DIR}/build.config.msm.common

View File

@ -14,6 +14,10 @@ BASE_ADDRESS=0x80000000
PAGE_SIZE=4096
[ -z "${DT_OVERLAY_SUPPORT}" ] && DT_OVERLAY_SUPPORT=1
if [ "${KERNEL_CMDLINE_CONSOLE_AUTO}" != "0" ]; then
KERNEL_VENDOR_CMDLINE+=' console=ttyMSM0,115200n8 earlycon=msm_geni_serial,0x0099C000'
fi
################################################################################
## Inheriting MSM configs
. ${KERNEL_DIR}/build.config.msm.common