bitbake: build: Add BB_TASK_NICE_LEVEL to task code
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 20 Sep 2013 09:54:40 +0000 (09:54 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 22 Sep 2013 11:19:44 +0000 (12:19 +0100)
commite3ffb340e5aa6ef15a0f745d64e515d25c680939
tree29e43f346371ea05c3c0af12f0abfa8a8c1a1ec6
parent95b652e08b1d47179d65d18b0fdf2fd218c05ee4
bitbake: build: Add BB_TASK_NICE_LEVEL to task code

On Linux its not possible for processes to regain a previous nice level after
it has changed. Its therefore not possible to have a core low priority and
then raise the priorities of individual tasks.

This variable allows us to do something like:

BB_TASK_NICE_LEVEL = "5"
BB_TASK_NICE_LEVEL_task-testimage = "0"

to give priority to specific tasks which the BB_NICE_LEVEL functionality
doesn't give us the option of.

(Bitbake rev: 94d82997220c6cfc7028f76719df028ba8254a5c)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/build.py