g12: Set console/baud rate conditionally
authorNolen Johnson <johnsonnolen@gmail.com>
Tue, 21 May 2024 16:03:06 +0000 (12:03 -0400)
committerNolen Johnson <johnsonnolen@gmail.com>
Tue, 21 May 2024 16:03:49 +0000 (16:03 +0000)
Change-Id: Ib063dd6ee5f8bd5beed9cf290152d72ab1db67e9

BoardConfigCommon.mk

index d6b7229eb07e9cd48d578ab70352e9b34a55d34f..089164162e82d89ded2d9ceea2b044a500f0e523 100644 (file)
@@ -18,6 +18,10 @@ TARGET_KERNEL_CONFIG := g12a_defconfig
 TARGET_KERNEL_SOURCE := kernel/amlogic/linux-4.9
 TARGET_KERNEL_VARIANT_CONFIG ?= g12a_variant_defconfig
 
+ifeq ($(WITH_CONSOLE),true)
+BOARD_KERNEL_CMDLINE += console=ttyS0,115200 no_console_suspend
+endif
+
 ## Partitions
 SSI_PARTITIONS := product system system_ext
 TREBLE_PARTITIONS := odm vendor