From df59d82772fd67b8fc1d30d97917305be0f49675 Mon Sep 17 00:00:00 2001
From: Bartosz Golaszewski <bartosz.golaszewski@huawei.com>
Date: Tue, 17 May 2022 10:10:41 +0200
Subject: [PATCH] zephyr-kernel: add a switch for excluding the ACM0 patch

Using the ACM0 requires opening the console for the app to start. This
is often undesirable. Add a switch to disable this patch if not needed.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@huawei.com>
---
 .../recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc          | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc
index 197422d..854b322 100644
--- a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc
+++ b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc
@@ -54,7 +54,7 @@ SRC_URI = "\
     git://github.com/zephyrproject-rtos/tflite-micro.git;protocol=https;nobranch=1;destsuffix=git/modules/lib/tflite-micro;name=tflite-micro \
     file://0001-cmake-add-yocto-toolchain.patch \
     file://0001-x86-fix-efi-binary-generation-issue-in-cross-compila.patch \
-    file://0001-console-enable-the-USB-ACM0-console-by-default.patch \
+    ${@bb.utils.contains("ONIRO_NO_ACM0", "1", "", "file://0001-console-enable-the-USB-ACM0-console-by-default.patch", d)} \
 "
 S = "${WORKDIR}/git"
 
-- 
GitLab