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:53 +0000 (16:03 +0000)
Change-Id: Ib063dd6ee5f8bd5beed9cf290152d72ab1db67e9
(cherry picked from commit b81f362e58edf9245120f639ef3e1dfb57dc46f2)

BoardConfigCommon.mk

index 6df0f6e8c85b3fab27cc46aa7b6b99f7a2032d8f..0157dffdfc6f862d2529f8ca3b4a4c18150fbc65 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
 CORE_PARTITIONS := system vendor
 ADDITIONAL_PARTITIONS := odm product system_ext