From 52ee1749dc494616b1102f47ac003fa38a63cd57 Mon Sep 17 00:00:00 2001
From: Esben Haabendal <esben.haabendal@huawei.com>
Date: Thu, 19 May 2022 15:45:02 +0200
Subject: [PATCH] busybox: Make various commands more compatible

With OpenHarmony tests using some of our busybox commands, this should help us
not having to fight quite as much fallout from busybox CLI being different
from normal (and/or toybox) CLI.

Signed-off-by: Esben Haabendal <esben.haabendal@huawei.com>
---
 recipes-core/busybox/busybox/openharmony.cfg | 1 +
 recipes-core/busybox/busybox_%.bbappend      | 8 ++++++++
 2 files changed, 9 insertions(+)
 create mode 100644 recipes-core/busybox/busybox/openharmony.cfg
 create mode 100644 recipes-core/busybox/busybox_%.bbappend

diff --git a/recipes-core/busybox/busybox/openharmony.cfg b/recipes-core/busybox/busybox/openharmony.cfg
new file mode 100644
index 00000000..c9e92595
--- /dev/null
+++ b/recipes-core/busybox/busybox/openharmony.cfg
@@ -0,0 +1 @@
+CONFIG_DESKTOP=y
diff --git a/recipes-core/busybox/busybox_%.bbappend b/recipes-core/busybox/busybox_%.bbappend
new file mode 100644
index 00000000..9b638362
--- /dev/null
+++ b/recipes-core/busybox/busybox_%.bbappend
@@ -0,0 +1,8 @@
+# SPDX-FileCopyrightText: Huawei Inc.
+#
+# SPDX-License-Identifier: Apache-2.0
+
+FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
+SRC_URI += " \
+	file://openharmony.cfg \
+"
-- 
GitLab