prepare_for_emerge: Add --jobs flag and by default use half of the CPUs

My machine has 80 processing units and this is the reason why I put 40
here. This patch dynamically selects half of the processing units on the
system by default, and allow the user to pass a preferred number.

BUG=b:343292240
TEST=None

Change-Id: I13265427956c82cc1e197f67568d03fc9c279b4d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/bluetooth/+/5545486
Commit-Queue: Hsin-chen Chuang <chharry@google.com>
Reviewed-by: Dean Liao <deanliao@chromium.org>
Tested-by: Hsin-chen Chuang <chharry@google.com>
1 file changed
tree: 49957aeec71043dd205d36e185aabcb82b7aebc2
  1. testing/
  2. tools/
  3. .gitignore
  4. DIR_METADATA
  5. OWNERS
  6. PRESUBMIT.cfg