machine_features_check: functionality has been upstreamed into features_check.bbclass
PATCH 1/1 machine_features_check: functionality has been upstreamed into features_check.bbclass
From: Denys Dmytriyenko <[email protected]>
Signed-off-by Denys Dmytriyenko <[email protected]>
--- .../recipes-apps/voxelsdk/voxelsdk_%.bbappend | 2 +- .../packagegroup-arago-tisdk-graphics-sdk-host.bb | 2 +- ...packagegroup-arago-tisdk-graphics-sdk-target.bb | 2 +- .../packagegroup-arago-tisdk-graphics.bb | 2 +- .../packagegroup-arago-tisdk-gtk-sdk-target.bb | 2 +- .../packagegroups/packagegroup-arago-tisdk-gtk.bb | 2 +- .../recipes-support/armnn/armnn_%.bbappend | 2 +- .../classes/machine_features_check.bbclass | 31 ---------------------- .../recipes-apps/barcode-demo/barcode-roi_git.bb | 2 +- 9 files changed, 8 insertions(+), 39 deletions(-) delete mode 100644 meta-arago-extras/classes/machine_features_check.bbclass
meta-arago-distro/recipes-apps/voxelsdk/voxelsdk_%.bbappend +1 -1
@@ -1,3 +1,3 @@ -inherit machine_features_check +inherit features_check REQUIRED_MACHINE_FEATURES = "dsp"
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-graphics-sdk-host.bb +1 -1
@@ -4,7 +4,7 @@ PR = "r8" PACKAGE_ARCH = "${MACHINE_ARCH}" -inherit packagegroup machine_features_check +inherit packagegroup features_check REQUIRED_MACHINE_FEATURES = "gpu"
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-graphics-sdk-target.bb +1 -1
@@ -4,7 +4,7 @@ PR = "r10" PACKAGE_ARCH = "${MACHINE_ARCH}" -inherit packagegroup machine_features_check +inherit packagegroup features_check REQUIRED_MACHINE_FEATURES = "gpu"
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-graphics.bb +1 -1
@@ -4,7 +4,7 @@ PR = "r26" PACKAGE_ARCH = "${MACHINE_ARCH}" -inherit packagegroup machine_features_check +inherit packagegroup features_check REQUIRED_MACHINE_FEATURES = "gpu"
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-gtk-sdk-target.bb +1 -1
@@ -4,7 +4,7 @@ PR = "r2" PACKAGE_ARCH = "${MACHINE_ARCH}" -inherit packagegroup machine_features_check +inherit packagegroup features_check REQUIRED_MACHINE_FEATURES = "gpu"
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-gtk.bb +1 -1
@@ -4,7 +4,7 @@ PR = "r2" PACKAGE_ARCH = "${MACHINE_ARCH}" -inherit packagegroup machine_features_check +inherit packagegroup features_check REQUIRED_MACHINE_FEATURES = "gpu"
meta-arago-distro/recipes-support/armnn/armnn_%.bbappend +1 -1
@@ -1,3 +1,3 @@ -inherit machine_features_check +inherit features_check REQUIRED_MACHINE_FEATURES = "dsp"
meta-arago-extras/classes/machine_features_check.bbclass deleted +0 -31
@@ -1,31 +0,0 @@ -# Allow checking of required and conflicting MACHINE_FEATURES -# -# ANY_OF_MACHINE_FEATURES: ensure at least one item on this list is included -# in MACHINE_FEATURES. -# REQUIRED_MACHINE_FEATURES: ensure every item on this list is included -# in MACHINE_FEATURES. -# CONFLICT_MACHINE_FEATURES: ensure no item in this list is included in -# MACHINE_FEATURES. -# Derived from OE-Core distro_features_check.bbclass - -python () { - # Assume at least one var is set. - machine_features = set((d.getVar('MACHINE_FEATURES') or '').split()) - - any_of_machine_features = set((d.getVar('ANY_OF_MACHINE_FEATURES') or '').split()) - if any_of_machine_features: - if set.isdisjoint(any_of_machine_features, machine_features): - raise bb.parse.SkipRecipe("one of '%s' needs to be in MACHINE_FEATURES" % ' '.join(any_of_machine_features)) - - required_machine_features = set((d.getVar('REQUIRED_MACHINE_FEATURES') or '').split()) - if required_machine_features: - missing = set.difference(required_machine_features, machine_features) - if missing: - raise bb.parse.SkipRecipe("missing required machine feature%s '%s' (not in MACHINE_FEATURES)" % ('s' if len(missing) > 1 else '', ' '.join(missing))) - - conflict_machine_features = set((d.getVar('CONFLICT_MACHINE_FEATURES') or '').split()) - if conflict_machine_features: - conflicts = set.intersection(conflict_machine_features, machine_features) - if conflicts: - raise bb.parse.SkipRecipe("conflicting machine feature%s '%s' (in MACHINE_FEATURES)" % ('s' if len(conflicts) > 1 else '', ' '.join(conflicts))) -}
meta-arago-extras/recipes-apps/barcode-demo/barcode-roi_git.bb +1 -1
@@ -2,7 +2,7 @@ DESCRIPTION = "Barcode demo to detect region of interest" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://detect_barcode.cpp;beginline=1;endline=25;md5=babab64d39715b3671dd16bcb4f4917b" -inherit machine_features_check +inherit features_check REQUIRED_MACHINE_FEATURES = "dsp"
Signature · 1 line
2.7.4