diff options
Diffstat (limited to 'meta/classes/nativesdk.bbclass')
-rw-r--r-- | meta/classes/nativesdk.bbclass | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/classes/nativesdk.bbclass b/meta/classes/nativesdk.bbclass index ebcfb2df24..655b4560e7 100644 --- a/meta/classes/nativesdk.bbclass +++ b/meta/classes/nativesdk.bbclass | |||
@@ -70,6 +70,12 @@ python nativesdk_virtclass_handler () { | |||
70 | if not (pn.endswith("-nativesdk") or pn.startswith("nativesdk-")): | 70 | if not (pn.endswith("-nativesdk") or pn.startswith("nativesdk-")): |
71 | return | 71 | return |
72 | 72 | ||
73 | # Set features here to prevent appends and distro features backfill | ||
74 | # from modifying nativesdk distro features | ||
75 | features = set(d.getVar("DISTRO_FEATURES_NATIVESDK").split()) | ||
76 | filtered = set(bb.utils.filter("DISTRO_FEATURES", d.getVar("DISTRO_FEATURES_FILTER_NATIVESDK"), d).split()) | ||
77 | d.setVar("DISTRO_FEATURES", " ".join(features | filtered)) | ||
78 | |||
73 | e.data.setVar("MLPREFIX", "nativesdk-") | 79 | e.data.setVar("MLPREFIX", "nativesdk-") |
74 | e.data.setVar("PN", "nativesdk-" + e.data.getVar("PN").replace("-nativesdk", "").replace("nativesdk-", "")) | 80 | e.data.setVar("PN", "nativesdk-" + e.data.getVar("PN").replace("-nativesdk", "").replace("nativesdk-", "")) |
75 | e.data.setVar("OVERRIDES", e.data.getVar("OVERRIDES", False) + ":virtclass-nativesdk") | 81 | e.data.setVar("OVERRIDES", e.data.getVar("OVERRIDES", False) + ":virtclass-nativesdk") |