From 79736d4975cab640cda1e3cc8e84a1203743fe30 Mon Sep 17 00:00:00 2001
From: Andrei Gherzan <andrei.gherzan@huawei.com>
Date: Tue, 13 Jul 2021 12:34:35 +0100
Subject: [PATCH] u-boot-stm32mp-extlinux: Pass ro to kernel cmdline

Default configuration uses `rw`. We default now to read-only root
filesystems so we switch the argument accordingly.

Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com>
---
 .../recipes-bsp/u-boot/u-boot-stm32mp-extlinux.bbappend         | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta-ohos-core/recipes-bsp/u-boot/u-boot-stm32mp-extlinux.bbappend b/meta-ohos-core/recipes-bsp/u-boot/u-boot-stm32mp-extlinux.bbappend
index ef057fb7..368f1e5d 100644
--- a/meta-ohos-core/recipes-bsp/u-boot/u-boot-stm32mp-extlinux.bbappend
+++ b/meta-ohos-core/recipes-bsp/u-boot/u-boot-stm32mp-extlinux.bbappend
@@ -2,6 +2,8 @@
 #
 # SPDX-License-Identifier: Apache-2.0
 
+UBOOT_EXTLINUX_KERNEL_ARGS = "rootwait ro"
+
 inherit deploy
 
 do_deploy[sstate-outputdirs] = "${DEPLOY_DIR_IMAGE}/bootloader/extlinux"
-- 
GitLab