summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2022-11-17 15:35:14 +0100
committerMax Krummenacher <max.krummenacher@toradex.com>2022-11-17 15:46:38 +0100
commit706a6f65b6dfc01f18fca1161498467cafa47822 (patch)
treea4bd7af2606e37a97cd63b7078567283effc241e
parentcd87d6dcd5fc7ab8d81f14a0c1563a277dd15b15 (diff)
toradex-sanity.bbclass: follow upstream changeHEADmaster
openembedded-core commit d3eb4531aa ("sanity: Drop data finalize call") dropped a python function. Replace it with its aquivalent. Fixes: | ERROR: Execution of event handler 'defaulttoradex_check_sanity_eventhandler' failed | Traceback (most recent call last): | File ".../meta-toradex-bsp-common/classes/toradex-sanity.bbclass", line 57, in defaulttoradex_check_sanity_eventhandler(e=<bb.event.SanityCheck object at 0x7f50de8bb3c8>): | if bb.event.getName(e) == "SanityCheck": | > sanity_data = copy_data(e) | if e.generateevents: | NameError: name 'copy_data' is not defined Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
-rw-r--r--classes/toradex-sanity.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/toradex-sanity.bbclass b/classes/toradex-sanity.bbclass
index 19a38cd..bfb95f3 100644
--- a/classes/toradex-sanity.bbclass
+++ b/classes/toradex-sanity.bbclass
@@ -54,7 +54,7 @@ toradex_check_sanity_eventhandler[eventmask] = "bb.event.SanityCheck"
python toradex_check_sanity_eventhandler() {
if bb.event.getName(e) == "SanityCheck":
- sanity_data = copy_data(e)
+ sanity_data = bb.data.createCopy(e.data)
if e.generateevents:
sanity_data.setVar("SANITY_USE_EVENTS", "1")
reparse = toradex_check_sanity(sanity_data)