Skip to content

Commit

Permalink
data_smart: Handle hashing of datastores within datastores correctly
Browse files Browse the repository at this point in the history
If there is a datastore within a datastore (e.g. BB_ORIGENV) then
get-hash() doesn;t correclty handle the contents using the memory
address instead of the contents.

This is a patch from dominik.jaeger@nokia.com which addresses
this problem. Its been low priority since we don't include
BB_ORIGENV anywhere this would cause an issue as standard.

[YOCTO #12473]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
  • Loading branch information
rpurdie committed Apr 24, 2020
1 parent c07f374 commit 1a8bcfc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/bb/data_smart.py
Expand Up @@ -1000,7 +1000,10 @@ def get_hash(self):
continue

value = d.getVar(key, False) or ""
data.update({key:value})
if type(value) is type(self):
data.update({key:value.get_hash()})
else:
data.update({key:value})

varflags = d.getVarFlags(key, internalflags = True)
if not varflags:
Expand Down

0 comments on commit 1a8bcfc

Please sign in to comment.