diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-01-20 18:39:00 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-01-20 18:39:00 +0000 |
commit | 1bfd6edef9db9c9175058ae801d1b601e4f15263 (patch) | |
tree | 899bc6771c9def07be628ba735c6bad158f7363e /bitbake-dev/lib/bb/parse | |
parent | d6c7a44b94aa0f871d3ad1a2097a4a8d773eabf5 (diff) | |
download | poky-1bfd6edef9db9c9175058ae801d1b601e4f15263.tar.gz |
bitbake-dev: Sync with bitbake upstream
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake-dev/lib/bb/parse')
-rw-r--r-- | bitbake-dev/lib/bb/parse/parse_py/BBHandler.py | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/bitbake-dev/lib/bb/parse/parse_py/BBHandler.py b/bitbake-dev/lib/bb/parse/parse_py/BBHandler.py index 9b353634ed..86fa18ebd2 100644 --- a/bitbake-dev/lib/bb/parse/parse_py/BBHandler.py +++ b/bitbake-dev/lib/bb/parse/parse_py/BBHandler.py | |||
@@ -185,18 +185,26 @@ def handle(fn, d, include = 0): | |||
185 | multi = data.getVar('BBCLASSEXTEND', d, 1) | 185 | multi = data.getVar('BBCLASSEXTEND', d, 1) |
186 | if multi: | 186 | if multi: |
187 | based = bb.data.createCopy(d) | 187 | based = bb.data.createCopy(d) |
188 | else: | ||
189 | based = d | ||
190 | try: | ||
188 | finalise(fn, based) | 191 | finalise(fn, based) |
189 | darray = {"": based} | 192 | except bb.parse.SkipPackage: |
190 | for cls in multi.split(): | 193 | bb.data.setVar("__SKIPPED", True, based) |
191 | pn = data.getVar('PN', d, True) | 194 | darray = {"": based} |
192 | based = bb.data.createCopy(d) | 195 | |
193 | data.setVar('PN', pn + '-' + cls, based) | 196 | for cls in (multi or "").split(): |
194 | inherit([cls], based) | 197 | pn = data.getVar('PN', d, True) |
198 | based = bb.data.createCopy(d) | ||
199 | data.setVar('PN', pn + '-' + cls, based) | ||
200 | inherit([cls], based) | ||
201 | try: | ||
195 | finalise(fn, based) | 202 | finalise(fn, based) |
196 | darray[cls] = based | 203 | except bb.parse.SkipPackage: |
197 | return darray | 204 | bb.data.setVar("__SKIPPED", True, based) |
198 | else: | 205 | darray[cls] = based |
199 | finalise(fn, d) | 206 | return darray |
207 | |||
200 | bbpath.pop(0) | 208 | bbpath.pop(0) |
201 | if oldfile: | 209 | if oldfile: |
202 | bb.data.setVar("FILE", oldfile, d) | 210 | bb.data.setVar("FILE", oldfile, d) |