Commit Graph

274 Commits

Author SHA1 Message Date
Android (Google) Code Review
ccf9c1da86 Merge change 7479 into donut
* changes:
  handle identical gzip chunks better
2009-07-16 13:30:16 -07:00
Doug Zongker
3b72436dbe handle identical gzip chunks better
Improve the speed of incremental OTA install by treating unchanging
gzip chunks as normal chunks, avoiding a decompress/recompress cycle.
This reduces the time needed to apply a patch to a boot image where
the kernel has not changed from ~30 seconds to ~2 seconds, on an opal.
2009-07-15 17:54:30 -07:00
Doug Zongker
a237874ccf fix the modtime of files in the apk when signing
SignApk fixes the timestamp of the signature files it adds.  Use that
same timestamp for all the files, so that the modtime doesn't vary
from build to build.  (Incremental OTAs currently spend significant
time rewriting every .apk to do nothing but patch in timestamp
changes.)
2009-07-15 15:43:39 -07:00
Doug Zongker
030614740c in auto mode, generate both edify and amend scripts for full OTAs
Generate packages that can be installed by either amend or edify, so
we can remove amend support from donut.
2009-07-14 12:40:26 -07:00
Android (Google) Code Review
e41accf68e Merge change 6412 into donut
* changes:
  Pass compiler flags for C++ too, and add a flag that enables warnings about missing virtual destructors
2009-07-08 13:01:22 -07:00
Doug Zongker
742fa575d0 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.
2009-07-08 12:09:04 -07:00
Doug Zongker
8cebf1ff78 fix mislaid 'if' in recovery
When I moved the building of the recovery image upwards in the file, I
moved an 'endif' surrounding it but not the matching 'if'.  How did
this ever work?
2009-07-07 17:14:25 -07:00
Marco Nelissen
79005e03cc Pass compiler flags for C++ too, and add a flag that enables warnings about missing virtual destructors 2009-07-07 13:59:38 -07:00
Doug Zongker
4647f12a4f fix image size tests
There are currently two errors in the way we test the size of built
images against the size of the partition on the hardware:

- the limits in BoardConfig.mk are set with the data size only, but
  images contain an extra 64 bytes per 2048-byte page.  This means we
  think the partition is about 1/32 smaller than it really is.

- when we deliver a build via OTA, the system partition ends up with
  one more file than when it's flashed via fastboot.  That file is a
  copy of the recovery image.  In order to be able to OTA a build, we
  need to make sure the system partition has enough room for all the
  system files plus the recovery image as well.

For the kila system partition, these errors are roughly the same order
of magnitude -- about 2MB, one in the "safe" direction, one in the
"unsafe" direction.  This change fixes both to give us a more accurate
notion of how close we are to the limit.

Make the build emit a warning (but not fail) when the size is within
32kb of the limit.

Also, include the values of the partition size limits in an info file
in the target-files package, so post-processing tools can use them
without parsing the BoardConfig.mk file.
2009-07-02 12:21:43 -07:00
Android (Google) Code Review
bd1ee348a1 Merge change 6059 into donut
* changes:
  Also look in vendor/*/build for vendorsetup.sh
2009-07-02 05:43:46 -07:00
Joe Onorato
a8c14e8c33 Also look in vendor/*/build for vendorsetup.sh 2009-07-02 08:43:00 -04:00
Android (Google) Code Review
92c8ecbf99 Merge change 5929 into donut
* changes:
  Add the JNI library of CertTool for handling certificates.
2009-07-02 00:28:16 -07:00
Doug Zongker
6e9c1a6dd0 remove some accidentally-submitted debug logging 2009-07-01 14:18:59 -07:00
Chung-yih Wang
c74bbeecd0 Add the JNI library of CertTool for handling certificates. 2009-07-02 00:36:44 +08:00
Android (Google) Code Review
a2bd9af947 Merge change 4759 into donut
* changes:
  	Removing top tabs from PDK navigation because right now we only have one section.
2009-06-30 13:53:47 -07:00
Doug Zongker
0f3298a497 delete source files not in target
Incremental OTAs were not removing files from the old build that don't
exist in the new build.  Fix.
2009-06-30 08:16:58 -07:00
Android (Google) Code Review
c898974bcc Merge change 5553 into donut
* changes:
  Change cts makefile to bundle junit.jar.
2009-06-29 09:16:49 -07:00
Brett Chabot
67bae7fc68 Change cts makefile to bundle junit.jar. 2009-06-27 13:30:38 -07:00
Doug Zongker
e1c31bacae make building recovery and boot images optional
If the source target-files zip omits files needed to build the
recovery and/or boot images, leave them out instead of dying with an
error.  This lets build like "generic-userdebug" work.
2009-06-23 17:40:35 -07:00
Android (Google) Code Review
55766e47aa Merge change 5150 into donut
* changes:
  don't fail if no required bootloaders are defined
2009-06-23 16:32:18 -07:00
Doug Zongker
9fc74c7823 don't fail if no required bootloaders are defined
Generic targets don't have a list of defined bootloaders.  Instead of
failing to build an OTA package, just omit the constraint.

Fix bad references to ExternalError.
2009-06-23 16:29:13 -07:00
Android (Google) Code Review
bf8a59aa12 Merge change 5017 into donut
* changes:
  Don't install afar and dexpreopt-wrapper on system while building tests.
2009-06-22 18:24:30 -07:00
Joe Onorato
9d9f367895 Java 1.5 is required. Enforce it. 2009-06-22 18:15:38 -07:00
Sriram Raman
802965380c Don't install afar and dexpreopt-wrapper on system while building tests. 2009-06-22 17:16:37 -07:00
David Warren
66b14d8646 Removing top tabs from PDK navigation because right now we only have one section. 2009-06-19 10:14:37 -07:00
Android (Google) Code Review
edb6829f83 Merge change 4654 into donut
* changes:
  Put the java source file list files somewhere where they don't conflict with the .class files that are getting zipped up, and delete them when we're done with them.
2009-06-18 13:52:57 -07:00
Doug Zongker
c494d7cee8 generate OTA packages that use edify
Split the details of generating script syntax into a generator class:
one for amend (whose output should be equivalent to the current
output), and one for edify.

Fix 'otatools' build rule to build imgdiff.
2009-06-18 13:19:07 -07:00
Joe Onorato
483d92412f Put the java source file list files somewhere where they don't
conflict with the .class files that are getting zipped up, and
delete them when we're done with them.
2009-06-18 13:16:52 -07:00
Doug Zongker
602a84e0bb fix releasetools for non-linux architectures
The ota and img building scripts contained some hardcoded 'linux-x86'
paths.  Remove and replace with a slightly redefined -p option.
Modify Makefile to pass correct -p when building.
2009-06-18 10:43:55 -07:00
Sriram Raman
1bc6248b35 Fix the build name. Previously "DONUT-BURGER"; Now "Donut" 2009-06-17 17:56:33 -07:00
Android (Google) Code Review
3450f44932 Merge change 4549 into donut
* changes:
  Merge commit 'b610c08b9605c31c1e5b851009104972e3822a3c' into Donut
2009-06-17 17:50:52 -07:00
Xavier Ducrohet
6f4a0f4f89 Merge commit 'b610c08b9605c31c1e5b851009104972e3822a3c' into Donut
Add OpenWnn to the SDk builds.
2009-06-17 17:40:27 -07:00
Android (Google) Code Review
1a28c1a4c1 Merge change 4541 into donut
* changes:
  remember in the target-files package what version of the API recovery uses
2009-06-17 17:22:15 -07:00
Doug Zongker
b1134dd049 remember in the target-files package what version of the API recovery uses 2009-06-17 17:09:40 -07:00
Xavier Ducrohet
b610c08b96 AI 149924: Add OpenWnn to the SDK builds.
Automated import of CL 149924
2009-06-17 16:59:26 -07:00
Android (Google) Code Review
9454b1c8b6 Merge change 4089 into donut
* changes:
  - Changed page title to show "Android open source" - Changed Tab name to "Dev Guide"
2009-06-17 10:00:30 -07:00
Doug Zongker
dddd957c74 explicitly list SDK image dependencies
The SDK build used to have the update package as a dependency, in
order to force various image files to be built.  Now the the update
package can't be built for sdk-eng, list the individual images needed
instead.
2009-06-15 21:25:32 -07:00
Doug Zongker
367910fc6d don't build ota or update packages for sdk or sim 2009-06-15 18:56:51 -07:00
Doug Zongker
37c0e274d1 fix building of otacerts.zip
Was using a variable which was only defined inside the rule, outside
the rule.  Change to use the correct variable.
2009-06-15 15:36:16 -07:00
Android (Google) Code Review
cf348b97bd Merge change 4232 into donut
* changes:
  use releasetools scripts to build update and OTA packages
2009-06-15 15:08:35 -07:00
Doug Zongker
048e7ca15f fix archive files being created with perms 000
In python 2.5 and earlier, ZipFile.writestr(filename, data) results in
the file being added to the archive with permissions 000.  (See
http://svn.python.org/view?view=rev&revision=65235.)  Work around this
by creating a ZipInfo object and setting the permissions explicitly.
2009-06-15 14:31:53 -07:00
Doug Zongker
8678df4c06 use releasetools scripts to build update and OTA packages
Use the python scripts in build/tools/releasetools (that are used to
build signed releases) to build packages within the Makefile as well.
2009-06-15 14:30:14 -07:00
Scott Main
398814fa75 am 5eb58327: AI 149839: make the home page\'s announcement block expandable... primarily, this is to handle various lengths of text due to translations, but also allows us to be more flexible WRT the content for the top section.
Merge commit '5eb5832751cad87021b9f1ad77f1c26952030884' into donut

* commit '5eb5832751cad87021b9f1ad77f1c26952030884':
  AI 149839: make the home page's announcement block expandable...
2009-06-14 20:45:16 -07:00
Android (Google) Code Review
0347423753 Merge change 4054 into donut
* changes:
  Add VpnServices to PRODUCT_PACKAGES.
2009-06-13 01:43:22 -07:00
Doug Zongker
a406c1e7a1 build 'updater' binary for use in OTA packages 2009-06-12 16:57:08 -07:00
Scott Main
5eb5832751 AI 149839: make the home page's announcement block expandable...
primarily, this is to handle various lengths of text due to translations,
  but also allows us to be more flexible WRT the content for the top section.

Automated import of CL 149839
2009-06-12 14:02:40 -07:00
Gaurav Mathur
a0deb0fb7f - Changed page title to show "Android open source"
- Changed Tab name to "Dev Guide"
2009-06-12 13:47:16 -07:00
Jason Sams
e3eb0fae99 joeo here. This localize command is unused and causes that execve error. 2009-06-12 11:23:19 -07:00
Android (Google) Code Review
e05806cc15 Merge change 4057 into donut
* changes:
  make applypatch into a static library
2009-06-12 09:45:14 -07:00
Doug Zongker
5a79087638 make applypatch into a static library
Turn the bulk of applypatch into a static library so it can be used
from the updater.  Also build it as a standalone executable for use by
the existing OTA mechanism.
2009-06-12 09:42:43 -07:00