summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason M. Bills <jason.m.bills@linux.intel.com>2023-08-01 18:57:20 +0300
committerPatrick Williams <patrick@stwcx.xyz>2023-08-02 04:33:03 +0300
commit8b167cd73a0a02102cd3ac64866e1a6e93356d8f (patch)
treeb7230c624fdbe237bf58ea7b197f9aa344f96001
parentf61a5bf90f94eb3effd1124f558e9d8cf0dc2fc4 (diff)
downloadopenbmc-8b167cd73a0a02102cd3ac64866e1a6e93356d8f.tar.xz
meta-phosphor: logging: use minimum ERR_INFO_CAP if FLASH_SIZE is undefined
In case FLASH_SIZE is undefined, default to the minimum value of ERR_INFO_CAP instead of failing the build. Tested: With FLASH_SIZE undefined, confirmed that the build succeeds and ERR_INFO_CAP is set to the minimum value of "10". Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com> Change-Id: I03942ffcb3d238f5231c312e418b4f35079da6b6
-rw-r--r--meta-phosphor/recipes-phosphor/logging/phosphor-logging_git.bb2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta-phosphor/recipes-phosphor/logging/phosphor-logging_git.bb b/meta-phosphor/recipes-phosphor/logging/phosphor-logging_git.bb
index f0c007db92..2391c18e47 100644
--- a/meta-phosphor/recipes-phosphor/logging/phosphor-logging_git.bb
+++ b/meta-phosphor/recipes-phosphor/logging/phosphor-logging_git.bb
@@ -39,7 +39,7 @@ inherit phosphor-logging
inherit phosphor-dbus-yaml
def get_info_cap(d):
- flash_size = int(d.getVar('FLASH_SIZE'))
+ flash_size = int(d.getVar('FLASH_SIZE') or 0)
if flash_size <= 32768:
return "10"
elif flash_size <= 65536: