From d7713ad36f1d219f6aab87ab2f5bcce2d3c2fafe Mon Sep 17 00:00:00 2001 From: Tom Rini Date: Wed, 9 Nov 2022 19:14:53 -0700 Subject: 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 Cc: Simon Glass Signed-off-by: Tom Rini Signed-off-by: Simon Glass --- tools/buildman/bsettings.py | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tools/buildman/bsettings.py') 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 -- cgit v1.1