build-setup: reduce cpu usage by bitbake

It turns out the --cpus option to the docker command line does not make
it appear like there are less CPU's in the docker container, it simply
reduces the time slice docker gets on each CPU. Reducing the num_cpu
value actually can cause more issues because it makes each bitbake
operation take longer to run, thus prolonging how much memory each
operation is taking.

Move the num_cpu parameter to the bitbake conf file so it reduces the
number or bitbake operations and amount of cpu's each operation gets.

Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Change-Id: Ib242ed3bc88ac55b31bc8ff6c05d4eab8fe84d08
1 file changed