diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2016-02-19 00:48:35 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-02-21 09:31:59 +0000 |
commit | 9979f8ad588564cd9d177e24a28ceefefec4df7d (patch) | |
tree | 9921a005391f1ac0d5da8bd716b04ec52ec0cb78 /meta/classes | |
parent | 9b48bfbc2f60bdaa792a98485db68699e0635cbe (diff) | |
download | openembedded-core-9979f8ad588564cd9d177e24a28ceefefec4df7d.tar.gz openembedded-core-9979f8ad588564cd9d177e24a28ceefefec4df7d.tar.bz2 openembedded-core-9979f8ad588564cd9d177e24a28ceefefec4df7d.zip |
recipe_sanity.bbclass: skip DataSmart in recipe_sanity_eh()
Fixed:
$ bitbake quilt -crecipe_sanity
File "/path/to/poky/bitbake/lib/bb/siggen.py", line 261, in dump_sigtask
p = pickle.dump(data, stream, -1)
PicklingError: Can't pickle <COWDict Level: 1 Current Keys: 0>:
attribute lookup bb.COW.C failed
This is because of:
cfgdata[k] = d.getVar(k, 0)
If d.getVar(k, 0) is a DataSmart (for example, BB_ORIGENV), it won't
have the attribute of bb.COW.C, so the error happend.
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/recipe_sanity.bbclass | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/meta/classes/recipe_sanity.bbclass b/meta/classes/recipe_sanity.bbclass index ee04e333db..295611f0f8 100644 --- a/meta/classes/recipe_sanity.bbclass +++ b/meta/classes/recipe_sanity.bbclass @@ -143,9 +143,8 @@ python recipe_sanity_eh () { cfgdata = {} for k in d.keys(): - #for k in ["S", "PR", "PV", "PN", "DESCRIPTION", "LICENSE", "DEPENDS", - # "SECTION"]: - cfgdata[k] = d.getVar(k, 0) + if not isinstance(d.getVar(k, 0), bb.data_smart.DataSmart): + cfgdata[k] = d.getVar(k, 0) d.setVar("__recipe_sanity_cfgdata", cfgdata) #d.setVar("__recipe_sanity_cfgdata", d) |