aboutsummaryrefslogtreecommitdiff
path: root/tools/buildman/bsettings.py
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2022-11-09 19:14:53 -0700
committerSimon Glass <sjg@chromium.org>2022-11-22 15:13:35 -0700
commitd7713ad36f1d219f6aab87ab2f5bcce2d3c2fafe (patch)
tree8ce6169a620610943588b4838db07299656c7695 /tools/buildman/bsettings.py
parent5f319fa728d0693ca89da741e2f47566e97ae69b (diff)
downloadu-boot-d7713ad36f1d219f6aab87ab2f5bcce2d3c2fafe.zip
u-boot-d7713ad36f1d219f6aab87ab2f5bcce2d3c2fafe.tar.gz
u-boot-d7713ad36f1d219f6aab87ab2f5bcce2d3c2fafe.tar.bz2
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.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/buildman/bsettings.py b/tools/buildman/bsettings.py
index 9b93b7a..0eb894a 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