summaryrefslogtreecommitdiffstats
path: root/core/tasks/tools
Commit message (Collapse)AuthorAgeFilesLines
* oem_image/custom_image: fix missing new parameter to build_image.pyThierry Strudel2015-07-131-1/+1
| | | | | | Bug: 22441494 Change-Id: I0baa4db67ab7a17dc89193511702ed98e7515318 Signed-off-by: Thierry Strudel <tstrudel@google.com>
* Add BUILD NUMBER into oem image.leozwang2015-06-201-0/+2
| | | | Change-Id: If2e1903a44fc033eecb1564aa423cd60b3c86fcb
* Fix Mac build.Ying Wang2015-05-071-2/+2
| | | | | | Mac doesn't like "cp -r -L", but "cp -R -L". Change-Id: I32bd8e5171db4ed811e158d91482671b14622825
* Deference symlinks when copying LOCAL_PICKUP_FILES.Ying Wang2015-04-301-1/+1
| | | | Change-Id: I2399529ee9168bb93a4cad5daa61cd2ea500df04
* Add selinux and verity support to custom image generation.Ying Wang2015-03-231-2/+12
| | | | | | | | | | | | | New custom image configuration variables: - CUSTOM_IMAGE_SELINUX, set to "true" if the image supports selinux. - CUSTOM_IMAGE_SUPPORT_VERITY, set to "true" if the product supports verity. - CUSTOM_IMAGE_VERITY_BLOCK_DEVICE Also changed the staging directory name to the mount point, like we do for other images built by the build system. Bug: 19609718 Change-Id: I6bbf06b79eee63e4c77834f2e6f1d5a7f7e00a12
* Support to configure and build multiple custom images.Ying Wang2015-03-131-0/+105
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Build additional images requested by the product makefile. This script gives the ability to build multiple additional images and you can configure what modules/files to include in each image. 1. Define PRODUCT_CUSTOM_IMAGE_MAKEFILES in your product makefile. PRODUCT_CUSTOM_IMAGE_MAKEFILES is a list of makefiles. Each makefile configures an image. For image configuration makefile foo/bar/xyz.mk, the built image file name will be xyz.img. So make sure they won't conflict. 2. In each image's configuration makefile, you can define variables: - CUSTOM_IMAGE_MOUNT_POINT, the mount point, such as "oem", "odm" etc. - CUSTOM_IMAGE_PARTITION_SIZE - CUSTOM_IMAGE_FILE_SYSTEM_TYPE - CUSTOM_IMAGE_DICT_FILE, a text file defining a dictionary accepted by BuildImage() in tools/releasetools/build_image.py. - CUSTOM_IMAGE_MODULES, a list of module names you want to include in the image; Not only the module itself will be installed to proper path in the image, you can also piggyback additional files/directories with the module's LOCAL_PICKUP_FILES. - CUSTOM_IMAGE_COPY_FILES, a list of "<src>:<dest>" to be copied to the image. <dest> is relativ to the root of the image. To build all those images, run "make custom_images". Bug: 19609718 Change-Id: Ic73587e08503a251be27797c7b00329716051927
* Break package-modules build recipe to mutliple linesYing Wang2014-09-241-5/+15
| | | | | | To fix "Argument list too long" error seen on some machines. Change-Id: I6f34668e938412751e257b4b543358e1fc0809a1
* Also include the binaries for the 2nd arch.Ying Wang2014-06-161-3/+7
| | | | | | | Also include the binaries for the 2nd arch when building module packages. Change-Id: I50d2c7451a77cbccdb365c8efea6c77f5147fde6
* Explicit record the modules' built-file:installed-fileYing Wang2014-05-191-15/+11
| | | | | | | | | | - This simplifies the logic to get the mapping of built-file to installed-file. Previously we used file suffix matching which is error prone and not scalable. - With this change the .odex files will be included automatically. Bug: 13585955 Change-Id: I4599abf93b9d501bac7aca7758d7f3aee21b3e36
* Put modules with install path to system/ to DATA/ in the zip file.Ying Wang2014-05-151-1/+1
| | | | Change-Id: I3948c28bb3f988d57da41d6eb8f97da4e20b0e86
* Target "tests" now only builds the modules tagged as "tests"Ying Wang2014-05-081-3/+12
| | | | | | | | | | | | But not install them. This prevents "make tests" polluting system.img or userdata.img. We have new mechanism to build and package up modules into zip file in build/core/tasks/tools. Change package-modules.mk to install DATA/ instead of data/ in the zip file; Better handle of module name conflicting. Bug: 13585955 Change-Id: I7586a8c7995b984c9ead0ba2fa84dd5d2dd20bd1
* Add tool to package up built modules.Ying Wang2014-05-051-0/+43
With this change, you can package up modules while avoiding installing them to the system.img or userdata.img. - build/core/tasks/tools/package-modules.mk You can use this template to package up modules into a zip file and preserve the installed file paths. - LOCAL_PICKUP_FILES, you can use this variable to package up extra files/directories. Bug: 13585955 Change-Id: I103042b24ccf17cf5dc90c016d97ed1dd293e50b