diff options
author | Tom Rini <trini@konsulko.com> | 2022-11-09 19:14:53 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2022-11-22 15:13:35 -0700 |
commit | d7713ad36f1d219f6aab87ab2f5bcce2d3c2fafe (patch) | |
tree | 8ce6169a620610943588b4838db07299656c7695 /tools/buildman/bsettings.py | |
parent | 5f319fa728d0693ca89da741e2f47566e97ae69b (diff) |
buildman: Add --allow-missing flag to allow missing blobs
Add a new flag to buildman so that we will in turn pass
BINMAN_ALLOW_MISSING=1 to 'make'. Make use of this flag in CI.
Allow the settings file to control this.
Cc: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Cc: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/buildman/bsettings.py')
-rw-r--r-- | tools/buildman/bsettings.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/buildman/bsettings.py b/tools/buildman/bsettings.py index 9b93b7a51e..0eb894a558 100644 --- a/tools/buildman/bsettings.py +++ b/tools/buildman/bsettings.py @@ -47,6 +47,17 @@ def GetItems(section): except: raise +def GetGlobalItemValue(name): + """Get an item from the 'global' section of the config. + + Args: + name: name of item to retrieve + + Returns: + str: Value of item, or None if not present + """ + return settings.get('global', name, fallback=None) + def SetItem(section, tag, value): """Set an item and write it back to the settings file""" global settings |