From 893de1879f1259b0e62ac3f5a681f08a75dd642a Mon Sep 17 00:00:00 2001
From: Andrei Gherzan <andrei.gherzan@huawei.com>
Date: Thu, 27 May 2021 13:40:15 +0100
Subject: [PATCH] allscenarios-linux.conf: Enable debug uart by default on
 RaspberryPi

We default to debug-tweaks for our images so let's also have debug
console by default. This will need to tie in with production/development
builds feature in the future.

Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com>
---
 meta-ohos-core/conf/distro/allscenarios-linux.conf | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta-ohos-core/conf/distro/allscenarios-linux.conf b/meta-ohos-core/conf/distro/allscenarios-linux.conf
index 5a000991..187cbd64 100644
--- a/meta-ohos-core/conf/distro/allscenarios-linux.conf
+++ b/meta-ohos-core/conf/distro/allscenarios-linux.conf
@@ -19,3 +19,6 @@ DISTRO_FEATURES_remove = "nfc 3g pcmcia"
 DISTRO_FEATURES_append = "optee"
 
 PREFERRED_VERSION_linux-yocto = "5.10%"
+
+# Default to enabling serial debug console on RaspberryPi
+ENABLE_UART ?= "1"
-- 
GitLab