From: Tomasz Dziendzielski Date: Fri, 15 Jan 2021 13:42:31 +0000 (+0100) Subject: lib/oe/utils: Return empty string in parallel_make X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~9093 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f790ded554a52ac18d1c28002142f9c62abec8b;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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." Signed-off-by: Tomasz Dziendzielski Signed-off-by: Richard Purdie --- diff --git a/meta/lib/oe/utils.py b/meta/lib/oe/utils.py index 468c76f30f2..9a2187e36f8 100644 --- a/meta/lib/oe/utils.py +++ b/meta/lib/oe/utils.py @@ -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): """