summaryrefslogtreecommitdiff
path: root/classes/toradex-sanity.bbclass
AgeCommit message (Collapse)Author
2022-11-17toradex-sanity.bbclass: follow upstream changeMax Krummenacher
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>
2022-09-24toradex-sanity.bbclass: drop toradex-fitimage sanity checkMing Liu
We have dropped toradex-fitimage.bbclass, also drop its sanity check. Related-to: ELB-4700 Signed-off-by: Ming Liu <ming.liu@toradex.com> (cherry picked from commit e70eba7f03a8fd82a508d91d76f4553639863abc)
2021-05-24toradex-sanity.bbclass: introduce bbclass fileMing Liu
I have observed a following OE build issue with the latest dunfell-5.x.y, as follows: ``` ERROR: OE-core's config sanity checker detected a potential misconfiguration. Either fix the cause of this error or at your own risk disable the checker (see sanity.conf). Following is the list of potential problems / advisories: TMPDIR changed to include path filtering from the pseudo database. It is recommended to use a clean TMPDIR with the new pseudo path filtering so TMPDIR would need to be removed to continue. ``` this is due to the ABI VERSION changed in OE, usually we should remove the TMPDIR and rebuild when seeing this error, but it's not enough for Toradex builds, since we have split DEPLOY_DIR out of TMPDIR, so we should also check the ABI VERSION change in DEPLOY_DIR, or else it might not comply the OE layer. We should warn the end users about this risk, let's add a toradex sanity check bbclass for that. We can also add some other basic Toradex specific sanity checks, for instance, for fitimage, the end users must inherit toradex-fitimage rather than kernel-fitimage. Related-to: ELB-3944 Signed-off-by: Ming Liu <ming.liu@toradex.com> (cherry picked from commit 943f7da5a1cbbf695c3385b59e33aaea0c87904c)