summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/build.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py
index 8aec699e79..2e49a09365 100644
--- a/bitbake/lib/bb/build.py
+++ b/bitbake/lib/bb/build.py
@@ -346,6 +346,14 @@ def _exec_task(fn, task, d, quieterr):
346 if not tempdir: 346 if not tempdir:
347 bb.fatal("T variable not set, unable to build") 347 bb.fatal("T variable not set, unable to build")
348 348
349 # Change nice level if we're asked to
350 nice = localdata.getVar("BB_TASK_NICE_LEVEL", True)
351 if nice:
352 curnice = os.nice(0)
353 nice = int(nice) - curnice
354 newnice = os.nice(nice)
355 logger.debug(1, "Renice to %s " % newnice)
356
349 bb.utils.mkdirhier(tempdir) 357 bb.utils.mkdirhier(tempdir)
350 358
351 # Determine the logfile to generate 359 # Determine the logfile to generate