ae61f50a68
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
(cherry picked from commit
|
||
---|---|---|
.. | ||
clang | ||
combo | ||
tasks | ||
android_manifest.mk | ||
apicheck_msg_current.txt | ||
apicheck_msg_last.txt | ||
base_rules.mk | ||
binary.mk | ||
build-system.html | ||
build_id.mk | ||
checktree | ||
cleanbuild.mk | ||
cleanspec.mk | ||
clear_vars.mk | ||
config.mk | ||
configure_module_stem.mk | ||
copy_headers.mk | ||
definitions.mk | ||
device.mk | ||
dex_preopt.mk | ||
dex_preopt_libart.mk | ||
dex_preopt_libart_boot.mk | ||
dex_preopt_libdvm.mk | ||
dex_preopt_odex_install.mk | ||
distdir.mk | ||
dpi_specific_apk.mk | ||
droiddoc.mk | ||
dumpvar.mk | ||
dynamic_binary.mk | ||
envsetup.mk | ||
executable.mk | ||
executable_internal.mk | ||
executable_prefer_symlink.mk | ||
filter_symbols.sh | ||
find-jdk-tools-jar.sh | ||
help.mk | ||
host_dalvik_java_library.mk | ||
host_dalvik_static_java_library.mk | ||
host_executable.mk | ||
host_executable_internal.mk | ||
host_java_library.mk | ||
host_java_library_common.mk | ||
host_native_test.mk | ||
host_prebuilt.mk | ||
host_shared_library.mk | ||
host_shared_library_internal.mk | ||
host_shared_test_lib.mk | ||
host_static_library.mk | ||
host_static_library_internal.mk | ||
host_static_test_lib.mk | ||
host_test_internal.mk | ||
install_jni_libs.mk | ||
install_jni_libs_internal.mk | ||
java.mk | ||
java_library.mk | ||
legacy_prebuilts.mk | ||
main.mk | ||
Makefile | ||
module_arch_supported.mk | ||
multi_prebuilt.mk | ||
multilib.mk | ||
native_test.mk | ||
node_fns.mk | ||
notice_files.mk | ||
package.mk | ||
package_internal.mk | ||
pathmap.mk | ||
pdk_config.mk | ||
phony_package.mk | ||
post_clean.mk | ||
prebuilt.mk | ||
prebuilt_internal.mk | ||
process_wrapper.sh | ||
process_wrapper_gdb.cmds | ||
process_wrapper_gdb.sh | ||
product.mk | ||
product_config.mk | ||
proguard.emma.flags | ||
proguard.flags | ||
proguard_basic_keeps.flags | ||
proguard_tests.flags | ||
raw_executable.mk | ||
raw_static_library.mk | ||
root.mk | ||
sdk_font.mk | ||
setup_one_odex.mk | ||
shared_library.mk | ||
shared_library_internal.mk | ||
shared_test_lib.mk | ||
static_java_library.mk | ||
static_library.mk | ||
static_library_internal.mk | ||
static_test_lib.mk | ||
target_test_internal.mk | ||
version_defaults.mk |