diff options
author | Andrei Gherzan <andrei.gherzan@huawei.com> | 2022-08-17 13:43:06 +0200 |
---|---|---|
committer | Richard Leitner <richard.leitner@skidata.com> | 2022-08-22 09:35:52 +0200 |
commit | a7a021ea8bd4b711f77c96e096b19efbcc2d9796 (patch) | |
tree | 2ab34a18ecfc2e29cd90dcf963645ff229e3e5c9 /recipes-core/classpath | |
parent | 3191173e9bb3fd13bb3830e8f2c1c5bfddbfc8d3 (diff) | |
download | meta-java-a7a021ea8bd4b711f77c96e096b19efbcc2d9796.tar.gz |
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 <andrei.gherzan@huawei.com>
Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
Diffstat (limited to 'recipes-core/classpath')
-rw-r--r-- | recipes-core/classpath/classpath-features-check.inc | 6 | ||||
-rw-r--r-- | recipes-core/classpath/classpath_0.99.bb | 4 |
2 files changed, 7 insertions, 3 deletions
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 @@ | |||
1 | # SPDX-FileCopyrightText: Huawei Inc. | ||
2 | # | ||
3 | # SPDX-License-Identifier: Apache-2.0 | ||
4 | |||
5 | inherit features_check | ||
6 | 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 @@ | |||
1 | require classpath.inc | 1 | require classpath.inc |
2 | 2 | ||
3 | inherit features_check | 3 | include classpath-features-check.inc |
4 | |||
5 | REQUIRED_DISTRO_FEATURES = "x11" | ||
6 | 4 | ||
7 | LIC_FILES_CHKSUM = "file://LICENSE;md5=92acc79f1f429143f4624d07b253702a" | 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=92acc79f1f429143f4624d07b253702a" |
8 | 6 | ||