command.py: add new API to get the cpu count on the server
authorShane Wang <shane.wang@intel.com>
Thu, 23 Feb 2012 13:47:19 +0000 (21:47 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 23 Feb 2012 22:52:16 +0000 (22:52 +0000)
commit0fd4d9f0daacd7f0508585101baf634bdf083d41
tree7e75a9d02b3c4988d4f31dd267cf3aff81035d09
parentedcd4b6eabff962425536200d8412200f2eea4ff
command.py: add new API to get the cpu count on the server

Add a new API in command.py to get the cpu count in order to set the appropriate default BB_NUMBER_THREADS and PARALLEL_MAKE variables.

(Bitbake rev: 335047b2e440e65713e88fabb24b47a9c82f939b)

Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/command.py
bitbake/lib/bb/utils.py