From 7f11c25d5f492a647da36d9c163e0ac7625823bd Mon Sep 17 00:00:00 2001
From: Andrei Gherzan <andrei.gherzan@huawei.com>
Date: Wed, 7 Apr 2021 13:38:40 +0100
Subject: [PATCH] openharmony-linux.conf: Inherit the ohos-sanity bbclass

As the ohos-sanity bbclass is not kernel-specific, the inclusion is done
through an include file.

Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com>
---
 meta-ohos-core/conf/distro/include/openharmony.inc | 5 +++++
 meta-ohos-core/conf/distro/openharmony-linux.conf  | 1 +
 2 files changed, 6 insertions(+)
 create mode 100644 meta-ohos-core/conf/distro/include/openharmony.inc

diff --git a/meta-ohos-core/conf/distro/include/openharmony.inc b/meta-ohos-core/conf/distro/include/openharmony.inc
new file mode 100644
index 00000000..dbfa8d54
--- /dev/null
+++ b/meta-ohos-core/conf/distro/include/openharmony.inc
@@ -0,0 +1,5 @@
+# SPDX-FileCopyrightText: Huawei Inc.
+#
+# SPDX-License-Identifier: Apache-2.0
+
+INHERIT += "ohos-sanity"
diff --git a/meta-ohos-core/conf/distro/openharmony-linux.conf b/meta-ohos-core/conf/distro/openharmony-linux.conf
index 4178a602..a3eb513b 100644
--- a/meta-ohos-core/conf/distro/openharmony-linux.conf
+++ b/meta-ohos-core/conf/distro/openharmony-linux.conf
@@ -2,6 +2,7 @@
 #
 # SPDX-License-Identifier: Apache-2.0
 
+require conf/distro/include/openharmony.inc
 require conf/distro/poky.conf
 
 DISTRO = "openharmony-linux"
-- 
GitLab