Improve parsing of --cpu parameter in abuild script.
commitc95da25ac6993a4cbccb23e60576ce0c0f350af1
authorRaymond Danks <ray.danks@se-eng.com>
Wed, 30 May 2012 22:03:48 +0000 (30 16:03 -0600)
committerPatrick Georgi <patrick@georgi-clan.de>
Mon, 4 Jun 2012 14:19:45 +0000 (4 16:19 +0200)
treef9406eb0a638a4d0cae268c857c47bc9c72c5529
parentbdca15337bc9337f399b43290dc74cb598c5ec4d
Improve parsing of --cpu parameter in abuild script.

* -c "" need never be tested if getopt params are handled; fail abuild script when getopt parsing fails
* use expr to resolve numeric test fails with -c max
* cpus variable may be being passed in the environment.  Don't overwrite MAKEFLAGS if it is not.

Change-Id: I96236ef719a1a9f942b8e15bfcf015d60068e58a
Signed-off-by: Raymond Danks <ray.danks@se-eng.com>
Reviewed-on: http://review.coreboot.org/1068
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
util/abuild/abuild