Skip to contentSkip to conversation

lib/oe/utils: Return empty string in parallel_make

PATCH New Tomasz Dziendzielski 1 participant 1 message Jan 15, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lib/oe/utils: Return empty string in parallel_make

In cmake.bbclass we set CMAKE_BUILD_PARALLEL_LEVEL using parallel_make function and if PARALLEL_MAKE is set to empty string then this variable is exported as "None" causing cmake to fail with:
"'CMAKE_BUILD_PARALLEL_LEVEL' environment variable
invalid number 'None' given."

---
 meta/lib/oe/utils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/lib/oe/utils.py +1 -1
index 468c76f30f..9a2187e36f 100644
@@ -193,7 +193,7 @@ def parallel_make(d, makeinst=False):
 
         return int(v)
 
-    return None
+    return ''
 
 def parallel_make_argument(d, fmt, limit=None, makeinst=False):
     """
Signature · 1 line
2.29.2