After the "Avoid multiple definitions of sigaction." change in bionic,
we ought to modify our kernel headers to make sure that sigaction struct
is not present in uapi headers.
Change-Id: I15645480e013e79cbcafaac99253368b646b6b11
As we later do literal matches against the lines XML parsing is the
wrong approach as e.g. XML excapes will not be found which causes custom
APNs with e.g. `&` to be ignored, i.e. they will not overwrite the
default ones and will be fully missing from the output file.
Change-Id: I2bc575d4bbdc5d802c5d5b3420ee6b536a5a18fc
Removing an element from the list that is currently iterated does not
work. At least it may skip the next element.
Also the handling of duplicate APN names was broken: It would output the
lines containing duplicate APN names times the number of the
duplication, i.e. the exact same line would be duplicated.
So use a `set` for storing apn names.
Change-Id: Id54d245dc935117cd4640ae0f1f30b8608c87459
* This fixes the case of have having APNs with same the name,
such as:
“Sprint EHRPD”
"Sprint EHRPD ota"
“Sprint EHRPD internet”
* But we want to replace only “Sprint EHRPD”, not all matches.
Change-Id: Ic3139c5d73a8c3c8667ac2bc527abc1a85541361
For Example new devices need the new Sprint APNs, so add a new board flag for
them to set that will make the build system add the new APNs to
the APN config XML. If the flag is not set, continue to use the
old APNs.
To add or replace APNs, the custom_apns.py script has been
added. If CUSTOM_APNS_FILE is defined, custom_apns.py
is run and generates a new version of apns-conf.xml.
Change-Id: I7ff12a4342de2a7663b2b66fd627244214a8dc71
- remove SpareParts: it's disabled and broken, the options it provides
are either useless/broken or available in development settings
- remove modelid_cfg.sh: no devices are using this any more
- remove opticharger: it's not used any more
Change-Id: I68c86b2407486c4b40998288cf1f70b7cb8170f4
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
- 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
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
pngcrush is currently storing the optimized png in <pngname>.out.
If optimizing the png fails, e.g. on palette errors, mv can't
overwrite the original file with the nonexisting .out file and prints
out an error like this:
mv: cannot stat `./foo/bar/baz.png.out': No such file or directory
Writing stderr to /dev/null will suppress that message.
Change-Id: I0b7339392545e98586d66cc8ff8abf52c443f66f
Android does not compress resources.arsc allowing it to be
read directly without uncompressing. When opticharger runs,
it compresses it breaking the optimization.
Change-Id: I9c9b9971a3fe4a21be5a633274832041ca9a33c1
This fixes market updates and redundant
*.old files from being packaged- looks to
save about 10MB on the zip.
Change-Id: I82266204de3a04f71b24e4183672185d6b2da8d9
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
Now uses $OUT/../../../host instead of $ANDROID_BUILD_TOP/out/host
fixes build when used with OUT_DIR_COMMON_BASE
Change-Id: Ib1934b57f3e94a3c3af10189c803fc494438a4a4
* 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
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
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.
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>
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
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>
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
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
Before
real 1m25.583s
user 1m14.101s
sys 0m21.717s
After
real 0m47.257s
user 1m46.123s
sys 0m23.453s
Change-Id: I1ca0013f8dec9175027f2e9bed93786cfe3804d5