diff options
Diffstat (limited to 'classes/sota_sanity.bbclass')
| -rw-r--r-- | classes/sota_sanity.bbclass | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/classes/sota_sanity.bbclass b/classes/sota_sanity.bbclass index e47de19..8e80acb 100644 --- a/classes/sota_sanity.bbclass +++ b/classes/sota_sanity.bbclass | |||
| @@ -1,17 +1,17 @@ | |||
| 1 | # Sanity check the sota setup for common misconfigurations | 1 | # Sanity check the sota setup for common misconfigurations |
| 2 | 2 | ||
| 3 | def sota_check_overrides(status, d): | 3 | def sota_check_overrides(status, d): |
| 4 | for var in (d.getVar('SOTA_OVERRIDES_BLACKLIST', True) or "").split(): | 4 | for var in (d.getVar('SOTA_OVERRIDES_BLACKLIST') or "").split(): |
| 5 | if var in d.getVar('OVERRIDES', True).split(':'): | 5 | if var in d.getVar('OVERRIDES').split(':'): |
| 6 | status.addresult("%s should not be a overrides, because it is a image fstype in updater layer, please check your OVERRIDES setting.\n" % var) | 6 | status.addresult("%s should not be a overrides, because it is a image fstype in updater layer, please check your OVERRIDES setting.\n" % var) |
| 7 | 7 | ||
| 8 | def sota_check_required_variables(status, d): | 8 | def sota_check_required_variables(status, d): |
| 9 | for var in (d.getVar('SOTA_REQUIRED_VARIABLES', True) or "").split(): | 9 | for var in (d.getVar('SOTA_REQUIRED_VARIABLES') or "").split(): |
| 10 | if not d.getVar(var, True): | 10 | if not d.getVar(var): |
| 11 | status.addresult("%s should be set in your local.conf.\n" % var) | 11 | status.addresult("%s should be set in your local.conf.\n" % var) |
| 12 | 12 | ||
| 13 | def sota_raise_sanity_error(msg, d): | 13 | def sota_raise_sanity_error(msg, d): |
| 14 | if d.getVar("SANITY_USE_EVENTS", True) == "1": | 14 | if d.getVar("SANITY_USE_EVENTS") == "1": |
| 15 | bb.event.fire(bb.event.SanityCheckFailed(msg), d) | 15 | bb.event.fire(bb.event.SanityCheckFailed(msg), d) |
| 16 | return | 16 | return |
| 17 | 17 | ||
