diff options
Diffstat (limited to 'meta/classes/native.bbclass')
-rw-r--r-- | meta/classes/native.bbclass | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/meta/classes/native.bbclass b/meta/classes/native.bbclass index 1919fbcdbd..aec1087af5 100644 --- a/meta/classes/native.bbclass +++ b/meta/classes/native.bbclass | |||
@@ -121,14 +121,20 @@ PATH_prepend = "${COREBASE}/scripts/native-intercept:" | |||
121 | SSTATE_SCAN_CMD ?= "${SSTATE_SCAN_CMD_NATIVE}" | 121 | SSTATE_SCAN_CMD ?= "${SSTATE_SCAN_CMD_NATIVE}" |
122 | 122 | ||
123 | python native_virtclass_handler () { | 123 | python native_virtclass_handler () { |
124 | classextend = e.data.getVar('BBCLASSEXTEND') or "" | ||
125 | if "native" not in classextend: | ||
126 | return | ||
127 | |||
128 | pn = e.data.getVar("PN") | 124 | pn = e.data.getVar("PN") |
129 | if not pn.endswith("-native"): | 125 | if not pn.endswith("-native"): |
130 | return | 126 | return |
131 | 127 | ||
128 | # Set features here to prevent appends and distro features backfill | ||
129 | # from modifying native distro features | ||
130 | features = set(d.getVar("DISTRO_FEATURES_NATIVE").split()) | ||
131 | filtered = set(bb.utils.filter("DISTRO_FEATURES", d.getVar("DISTRO_FEATURES_FILTER_NATIVE"), d).split()) | ||
132 | d.setVar("DISTRO_FEATURES", " ".join(features | filtered)) | ||
133 | |||
134 | classextend = e.data.getVar('BBCLASSEXTEND') or "" | ||
135 | if "native" not in classextend: | ||
136 | return | ||
137 | |||
132 | def map_dependencies(varname, d, suffix = ""): | 138 | def map_dependencies(varname, d, suffix = ""): |
133 | if suffix: | 139 | if suffix: |
134 | varname = varname + "_" + suffix | 140 | varname = varname + "_" + suffix |