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."

(From OE-Core rev: 7ee65c50f7a38c22e3fb43b0c89e81aff24a2b7f)

Signed-off-by: Tomasz Dziendzielski <tomasz.dziendzielski@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 2f790ded554a52ac18d1c28002142f9c62abec8b)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Tomasz Dziendzielski
2021-01-15 14:42:31 +01:00
committed by Richard Purdie
parent 12d5688120
commit a54010ae2e

View File

@@ -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):
"""