Commit Graph

37 Commits

Author SHA1 Message Date
Koushik Dutta
47a84b28df squisher: link the target $OUTFILE.
Change-Id: I5d905fb12e7d5f5cbae0af85f229b29becaf33ef
2012-12-22 11:59:46 -08:00
Koushik Dutta
6ed2e1b1cd squisher: Get rid of it.
The pngcrush tool does not add any noticeable value any more, such that it justifies the extra build time: 240MB vs 238MB.
The build.prop changes are now no ops, since the key for ro.kernel.android.checkjni no longer exists.
Changing the ro.build.type from eng to user is also a no op, since CM is now userdebug.
Deleting bins is also unncessary now.
Stripping modules is also unnecessary now. (plenty of space)

At this point, I think we can just symlink $OUTFILE to $OTAPACKAGE, and not even bother
with a copy.

Change-Id: I431ac6425dedb6cd02eb2d31fc9ff82b49df9f50
2012-12-22 11:39:28 -08:00
Chirayu Desai
39cb878292 otatools: build-with-colors
- add new file for common functions and stuff
 - though it doesn't contain any function now ;)
- red color for errors
- yellow color for "Optimizing: *"
- cyan color for modversion :)
- green color for "package complete"
- and some general cleanup

Change-Id: I83b2e352580e99b1766c5e63821281224cde5c49
2012-10-14 14:25:53 +05:30
Brint E. Kriebel
5ed21af23a squisher: Don't set the OTAPACKAGE name
Instead of setting the OTAPACKAGE name here, expect
OTAPACKAGE will be passed to us. This fixes an issue when
BUILD_NUMBER is defined in an environment with automated
builds.

Change-Id: I0634416e5332790d314f6a70313ea67821fd1331
2012-09-20 16:11:12 -04:00
Erez A. Korn
8e8a67896d Allow buildtype user
The tools scripts did not handle buildtype user correctly.

Change-Id: Ie4f98dbab7e97a8244ee1d9b4d995673e0aac930
2012-08-19 14:07:44 +04:00
Jorge Ruesga
547bd46507 Vendor CM Build: Allow parallelize the optimization of framework-res.apk
from: http://review.cyanogenmod.com/#/c/19170/

This change enhancement the optimization of cm ota package, allowing do the optimization of
framework-res.apk in a parallel way. The current script optimize first the
framework-res package and then the rest of packages with xargs in parallel. The framework-res
package can be processed with xargs in parallel copying all the packages to a temporally folder
to apply xargs (because opticharged need that the package is the current directory).
This shortens the time of optimization process, because while framework-res package is
optimized, the rest of processor cores can be optimizing other packages.

Change-Id: I047f8c01b066db99e4dcc8bcb2f30c72492e1af8
2012-08-15 01:22:22 +04:00
Chirayu Desai
c10f6d5638 squisher: replace $ANDROID_BUILD_TOP
Now uses $OUT/../../../host instead of $ANDROID_BUILD_TOP/out/host
fixes build when used with OUT_DIR_COMMON_BASE

Change-Id: Ib1934b57f3e94a3c3af10189c803fc494438a4a4
2012-08-12 09:10:36 +04:00
Warren Togami
2128e2f956 Simplify ROM filename, s/SNAPSHOT/EXPERIMENTAL/, other cleanups
* Remove "update-" prefix and "-signed" suffix.
* Replace SNAPSHOT with EXPERIMENTAL (arcee).
* If CM_EXTRAVERSION, force to type EXPERIMENTAL.
* UNOFFICIAL builds now with datestamp in the same manner as NIGHTLY.
* date -u uses UTC timezone for consistency.
* Remove some CM7 dead code.

Change-Id: I681fd92e27aaf62c50eae20265ce07c67d477bca
2012-06-07 13:44:06 -10:00
Chirayu Desai
1870cc6ab5 cm vendor : cleanup
removed functions for working with a squashfs image if target was dream
removed a useless comment (deleting wifi module, it's device specific)

Change-Id: I3d634f572bc3bf975441dd562f6e8111c0e60764
2012-05-12 11:29:36 +05:30
Pavel Valenta
1af866c239 Increase Java VM maximum heap size to 1024MB
I got "java.lang.OutOfMemoryError: Java heap space" error when I'm building own Kang (galaxys2 for example) with Gapps included.
Increase maximum heap size to 1024MB will solve it.
2012-04-18 01:06:51 +08:00
Koushik Dutta
45130b4332 fix buikld
Change-Id: Id6fb8c83566aa678bb90ebb85bad4d06b2559916
2012-02-23 16:05:14 -08:00
Robert Burns
181457ebae Fix squisher for cm.version
Change-Id: I9ba2cc1ef1a60d83752140c926cbdf00337c7cd6
2011-12-29 22:57:04 -05:00
Steve Kondik
25d7ca1628 cm: Rename modversion to cm.version
Change-Id: I73da7816fec34e892ee54e1782a18ec1c42863b4
2011-12-29 15:29:34 -08:00
Ricardo Cerqueira
e1f3738e7c CM9: initial CM vendor setup for Android 4 2011-11-27 20:15:37 +00:00
Ladios Jonquil
1f76513897 tools: Fix for $LOGNAME missing in Ubuntu 11.10, using $USER instead
Change-Id: I824fc6ca27c2a2308e977a14585afc6dd4996f56
2011-09-25 02:16:41 +08:00
Pat Thoyts
8ed18b5776 Avoid running strip on modules if there is no modules directory.
This avoids printing an error message and usage statement when using squisher if no modules
have been produced.

Change-Id: Iadd38518e64f7edf2d4da345143a44970c6f383a
Signed-off-by: Pat Thoyts <patthoyts@gmail.com>
2011-08-03 16:14:31 +01:00
David Kohen
61848e4fbe Enable the creation of a debug bacon
Change-Id: I509e279a6bf31fd9749ccc6eb2a71b4312d7e764
2011-02-06 20:29:33 +02:00
Chris Soyars
88f9e3941f harmony: disable phone intent, override default ADW columns/rows. 2010-11-26 23:20:08 -05:00
Takuo Kitame
9db7666bf4 squisher: fix OS X darwin compatibility
Number of processors: use sysctl on darwin.
xargs: fix incompatible arguments.
sed: use gsed on darwin because -i option is not compatible.

Change-Id: Ic3885db592e9588f01b69843add0e287ad35d4e9
2010-10-29 09:55:59 +09:00
garth
c0d71e3766 parallelize the launching of $OPTICHARGER form squiasher script
Before

real    1m25.583s
user    1m14.101s
sys     0m21.717s

After

real    0m47.257s
user    1m46.123s
sys     0m23.453s

Change-Id: I1ca0013f8dec9175027f2e9bed93786cfe3804d5
2010-10-16 22:39:03 +01:00
Chris Soyars
44226331a6 Move squisher heapspace up to 512m, having problems on my box and buildbot. Others have reported issues as well.
Change-Id: I38e4113591e052b73f72c8e22699c41e8fd0c322
2010-08-21 00:30:40 -04:00
Steve Kondik
6eb6163f1f Squisher does not need 2GB to run.
Setting a limit this high causes the JVM to crash on certain systems.
2010-08-20 13:27:39 -04:00
Steve Kondik
d5f3e15093 Revert "Define the use of SquashFS for xbin via the product"
This reverts commit fb778f809f5203abe86f88c011c641e841b84095.
2010-07-24 18:33:52 -04:00
Wes Garner
a5982b2e30 Define the use of SquashFS for xbin via the product 2010-07-20 13:39:05 -05:00
Steve Kondik
cee37ef25e Fix error when checking CYANOGEN_NIGHTLY. 2010-07-16 18:03:19 -04:00
Chris Cosby
2d0feb5853 Make squisher create the squashfs correctly for Dream/Sapphire devices. 2010-07-16 16:38:37 -04:00
Chris Cosby
972e003ea1 Rework squisher to be more maintainer friendly 2010-07-16 16:38:37 -04:00
Chris Cosby
5bebc22a83 Force mksquasfs to version 4 (required for kernel-of-the-moment).
squisher will now fail the build instead of failing runtime on
Dream/Sapphire.
2010-07-16 16:38:37 -04:00
Steve Kondik
008c06543a Clean up kernel modules. 2010-07-11 04:34:44 -04:00
Pat Thoyts
304457f096 Make squisher less verbose and check for mksquashfs.
If mksquashfs is unavailable then set NO_SQUASHFS true so that a valid
OTA package is created.
Reduces the amount of output by (optionally) using quite zip/unzip
Make better use of sed (we don't need grep|sed as sed can match input).
2010-07-11 02:42:36 -04:00
Steve Kondik
7cfb49fcbd Fix squisher's modification to updater-script. 2010-07-09 01:34:30 -04:00
Chris Soyars
be30c574cf Remove Welcome ui_print from squisher as it is now in the build. 2010-07-09 03:01:47 +00:00
Steve Kondik
c47804f717 Fix bashisms 2010-07-07 09:06:39 -04:00
ctso
f095b8a85f Fix squisher on ArchLinux 32-bit chroot.
Something isn't setting the path correctly when running in a 32-bit
chroot environment in ArchLinux.  This causes the script to cd into
$WORK/xbin.  The PATH incorrectly contains ".", so all attempted
commands (rm, mv, cp) fail to execute as it is trying to execute
$WORK/xbin/{rm, mv, cp}.
2010-07-03 08:16:59 +00:00
ctso
7e2391ad25 Fix error thrown by missing md5sum when building a nightly. 2010-07-03 06:31:37 +00:00
ctso
cff00cd108 Allow buildbot to use squisher without overcomplicating things. 2010-07-03 06:15:31 +00:00
Steve Kondik
ae76c84593 Add CM tools. 2010-06-28 11:47:56 -04:00