OSDN Git Service

fix problems with new image size calculations
authorDoug Zongker <dougz@android.com>
Wed, 8 Jul 2009 19:09:04 +0000 (12:09 -0700)
committerDoug Zongker <dougz@android.com>
Wed, 8 Jul 2009 19:09:04 +0000 (12:09 -0700)
commit742fa575d09272f1e06616fc208a1e08830c8f82
treeb27b065ef96ebcec8322b13893f8ad3a808fc33e
parent8cebf1ff7836a5dc365e49f7a14d7546a651d9c7
fix problems with new image size calculations

The build servers have GNU coreutils 5.93, where stat does not output
a newline.  Ubuntu hardy has GNU coreutils 6.10, where it does.
Lacking a newline messes up the summing of the sizes.  Fix
get-file-size to remove the newline if present, and make the total
calculation in assert-max-file-size more robust.

Also, if the image was too big, it was not actually making the build
fail (because /bin/false was not the last thing called).  Fix that so
it does.
core/combo/linux-x86.mk
core/definitions.mk