Commit graph

46 commits

Author SHA1 Message Date
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
Evan McClain
f199486460 Use pngcrush -brute by default.
But fallback to optipng -o7 and then pngout.

This saves ~2M in final .zip size at a cost of ~5 min of build time on
my laptop.

Change-Id: Ic56f677bdc8250f4088f4dbfbfd555ceed5616c2
Signed-off-by: Evan McClain <aeroevan@gmail.com>
2011-10-29 15:17:52 -04:00
Arif Ali
d6c5eba1f9 leo: removed leoupdate
Change-Id: I96fca75ffda26a7795ccf820c4c837980c444edd
2011-10-03 22:34:49 +01:00
Arif Ali
c5217ce25f leo: update leoupdate
Change the script to include the main ramdisk that is created by the compilation, unless if someone has their own initrd.gz in the repo, it will ignore it

Change-Id: I8847c0890124d64e1de98f02f39f38f3a3062c43
2011-09-28 01:05:04 +01: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
charansingh
5ef680426e Fix LeoUpdate script so that only one boot folder is present
Change-Id: I0124aaaabf4e8583b011e87c9c17de36ba05a979
2011-03-27 17:23:20 +05:30
Steve Kondik
1b766f7cf9 Merge "Enable the creation of a debug bacon" into gingerbread 2011-02-06 20:34:07 +00:00
David Kohen
61848e4fbe Enable the creation of a debug bacon
Change-Id: I509e279a6bf31fd9749ccc6eb2a71b4312d7e764
2011-02-06 20:29:33 +02:00
charansingh
d204b68f86 Add leo related vendor files in Cyanogen Vendor
Change-Id: Idb55f5a74dd07a2964fbc87d98f522bb1d921947
2011-02-05 17:04:52 -05:00
Christopher Lais
c557d07d8d opticharger: fix PinyinIME
aapt's -0 option is for extensions only, not directories, and PinyinIME
needs .dat to be excluded.  Nothing else in CM7 uses a .dat file, so
this shouldn't increase the .apk size more than is needed.

Also adding .dict, which isn't strictly required, but LatinIME wants it.
Nothing in CM7 but LatinIME uses .dict.

Change-Id: I7ce1b2cbc2b32c734978488aac2f4f6c43562cc1
2011-01-05 15:14:21 -06: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
Steve Kondik
47ce7ecc75 Use unique temporary directories in opticharger 2010-08-22 00:08:06 -04: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
Wes Garner
903162408f cmgerrit: remove from vendor, now merged into envsetup 2010-08-19 14:56:24 -05:00
Wes Garner
75c82dda5c cmgerrit: if command line input is null, prompt user for the variables
cmgerrit: cleanup wording to make it easier to understand
2010-08-18 19:33:06 -05:00
Jonas Larsson
d37c230b2f +x on cmgerrit 2010-08-18 22:35:22 +02:00
Wes Garner
1ab85770e6 vendorsetup: add vendor/cyanogen/tools to PATH 2010-08-18 14:04:07 -05:00
Wes Garner
30f4635075 CM Gerrit tool to make submissions easier
cmgerrit: fix typo

cmgerrit: add pref for branch or change-id

cmgerrit: fix a #blamewes
2010-08-18 13:17:20 -05: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
Pat Thoyts
0e7f64ef60 Make opticharger less verbose and clean up after itself.
The verbose output of opticharger can obscure warning messages about missing
tools so this patch reduces the noise.
The script leaves droppings in /tmp so clean this up on exit using a trap.

Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
2010-07-11 02:37:52 -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