From a7a021ea8bd4b711f77c96e096b19efbcc2d9796 Mon Sep 17 00:00:00 2001 From: Andrei Gherzan Date: Wed, 17 Aug 2022 13:43:06 +0200 Subject: 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). Signed-off-by: Andrei Gherzan Signed-off-by: Richard Leitner --- recipes-core/classpath/classpath-features-check.inc | 6 ++++++ recipes-core/classpath/classpath_0.99.bb | 4 +--- 2 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 recipes-core/classpath/classpath-features-check.inc diff --git a/recipes-core/classpath/classpath-features-check.inc b/recipes-core/classpath/classpath-features-check.inc new file mode 100644 index 0000000..c238fc3 --- /dev/null +++ b/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/recipes-core/classpath/classpath_0.99.bb b/recipes-core/classpath/classpath_0.99.bb index 5b9d904..f18ad1d 100644 --- a/recipes-core/classpath/classpath_0.99.bb +++ b/recipes-core/classpath/classpath_0.99.bb @@ -1,8 +1,6 @@ require classpath.inc -inherit features_check - -REQUIRED_DISTRO_FEATURES = "x11" +include classpath-features-check.inc LIC_FILES_CHKSUM = "file://LICENSE;md5=92acc79f1f429143f4624d07b253702a" -- cgit v1.2.3-54-g00ecf