From 304e764ff52a94b8bbdd6bb68db06f2e12c54dfe Mon Sep 17 00:00:00 2001
From: Stefan Schmidt <stefan.schmidt@huawei.com>
Date: Mon, 13 Mar 2023 09:13:34 +0100
Subject: [PATCH] oniro-openharmony-linux.conf: Enable serial console on UART
 for Pi4

To enable the serial console on UART meta-raspberrypi expects to have
ENABLE_UART set. Enable it in the distro config as we do in Oniro core.

Signed-off-by: Stefan Schmidt <stefan.schmidt@huawei.com>
---
 conf/distro/oniro-openharmony-linux.conf | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/conf/distro/oniro-openharmony-linux.conf b/conf/distro/oniro-openharmony-linux.conf
index 85cbcf13..eb8409cd 100644
--- a/conf/distro/oniro-openharmony-linux.conf
+++ b/conf/distro/oniro-openharmony-linux.conf
@@ -38,3 +38,7 @@ INHERIT += "uninative"
 # IMAGE_CLASSES, but doing a direct `inherit testimage` in image recipes
 # instead.
 HOSTTOOLS += "ip ping ps scp ssh stty"
+
+# Default to enabling serial debug console on RaspberryPi
+# Placed here to amend the machine config living in meta-raspberrypi
+ENABLE_UART:raspberrypi4-64 ?= "1"
-- 
GitLab