From 069b14bbafeb18e202912d0f4bdb8bdba1d9198e Mon Sep 17 00:00:00 2001
From: Andrei Gherzan <andrei.gherzan@huawei.com>
Date: Tue, 30 Aug 2022 17:07:29 +0200
Subject: [PATCH] classpath: Use an include file for x11 feature check

This will make it easier to maintain reflecting the same distro check on
packages depending on classpath (in the dependency chain)

The patch is waiting upstream inclusion in the kirkstone branch:
https://lists.openembedded.org/g/openembedded-devel/message/98292

Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com>
---
 .../recipes-core/classpath/classpath-features-check.inc     | 6 ++++++
 .../recipes-core/classpath/classpath_0.99.bbappend          | 5 +++++
 2 files changed, 11 insertions(+)
 create mode 100644 meta-oniro-staging/recipes-core/classpath/classpath-features-check.inc
 create mode 100644 meta-oniro-staging/recipes-core/classpath/classpath_0.99.bbappend

diff --git a/meta-oniro-staging/recipes-core/classpath/classpath-features-check.inc b/meta-oniro-staging/recipes-core/classpath/classpath-features-check.inc
new file mode 100644
index 00000000..c238fc3f
--- /dev/null
+++ b/meta-oniro-staging/recipes-core/classpath/classpath-features-check.inc
@@ -0,0 +1,6 @@
+# SPDX-FileCopyrightText: Huawei Inc.
+#
+# SPDX-License-Identifier: Apache-2.0
+
+inherit features_check
+REQUIRED_DISTRO_FEATURES = "x11"
diff --git a/meta-oniro-staging/recipes-core/classpath/classpath_0.99.bbappend b/meta-oniro-staging/recipes-core/classpath/classpath_0.99.bbappend
new file mode 100644
index 00000000..06e82bec
--- /dev/null
+++ b/meta-oniro-staging/recipes-core/classpath/classpath_0.99.bbappend
@@ -0,0 +1,5 @@
+# SPDX-FileCopyrightText: Huawei Inc.
+#
+# SPDX-License-Identifier: Apache-2.0
+
+include classpath-features-check.inc
-- 
GitLab