platform_build/core
Ying Wang ae61f50a68 Support to configure and build multiple custom images.
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 5fcf1094f9)
2015-03-14 00:06:54 +00:00
..
clang Switch TBLGEN-related executables to use "BUILD_" instead of "HOST_". 2014-09-30 02:37:20 -07:00
combo Add -DWIN32_LEAN_AND_MEAN build flag to get rid of winsock2.h warnings 2014-10-27 14:26:35 -07:00
tasks Support to configure and build multiple custom images. 2015-03-14 00:06:54 +00:00
android_manifest.mk Add support for prebuilt AARs. 2014-12-17 22:27:26 +00:00
apicheck_msg_current.txt Let apicheck check both the public API and system API. 2015-01-09 14:23:16 -08:00
apicheck_msg_last.txt
base_rules.mk Support to configure and build multiple custom images. 2015-03-14 00:06:54 +00:00
binary.mk Add global option filtering for FDO builds. 2014-10-01 22:10:21 +00:00
build-system.html
build_id.mk DO NOT MERGE: Change build id to LMP 2014-07-15 02:45:43 +00:00
checktree
cleanbuild.mk Remove ancient SDK cleanbuild rule 2015-01-06 16:49:20 -08:00
cleanspec.mk
clear_vars.mk Support to configure and build multiple custom images. 2015-03-14 00:06:54 +00:00
config.mk Add two useful character constants. 2014-10-03 11:36:27 -07:00
configure_module_stem.mk Add HOST_PREFER_32_BIT to support 32-bit-by-default multilib build 2014-05-20 18:03:21 -07:00
copy_headers.mk
definitions.mk Use ALL_MODULES.$(m).INSTALLED in modules-for-tag-list 2015-02-26 14:12:25 -08:00
device.mk
dex_preopt.mk Remove services, wifi, ethernet from BOOTCLASSPATH. 2014-08-12 10:25:19 +01:00
dex_preopt_libart.mk Build: Support for compiled-classes file 2014-11-18 14:41:26 -08:00
dex_preopt_libart_boot.mk Build: Support for compiled-classes file 2014-11-18 14:41:26 -08:00
dex_preopt_libdvm.mk
dex_preopt_odex_install.mk core: Use WITH_DEXPREOPT_PIC=true to have dex2oat build pic oat files 2014-10-31 14:30:42 -07:00
distdir.mk
dpi_specific_apk.mk Support dpi specific aapt flags. 2015-01-30 02:17:52 +00:00
droiddoc.mk Remove framework2 2014-07-21 14:42:29 -07:00
dumpvar.mk Print all 2ND variables. 2014-05-14 19:16:25 -07:00
dynamic_binary.mk Fix using variable intermediates.COMMON before defining. 2014-12-18 15:13:04 -08:00
envsetup.mk Support to configure and build multiple custom images. 2015-03-14 00:06:54 +00:00
executable.mk Support host multilib build 2014-05-14 16:55:04 -07:00
executable_internal.mk Add compile time check for statically linked libc 2014-08-15 14:52:42 -07:00
executable_prefer_symlink.mk Fix broken comparison in executable_prefer_symlink.mk 2014-08-14 15:28:48 +01:00
filter_symbols.sh
find-jdk-tools-jar.sh
help.mk
host_dalvik_java_library.mk resolved conflicts for merge of 8fd9944e to master 2014-06-18 19:25:30 -07:00
host_dalvik_static_java_library.mk Switch from core to core-libart 2014-06-18 17:42:32 -07:00
host_executable.mk Set default LOCAL_MULTILIB only if LOCAL_MODULE_HOST_ARCH isn't restricted 2014-06-10 16:24:31 -07:00
host_executable_internal.mk Support host multilib build 2014-05-14 16:55:04 -07:00
host_java_library.mk Support more precise package exclusion from JAR files. 2014-05-23 18:41:19 -07:00
host_java_library_common.mk
host_native_test.mk Add library test makefile solutions. 2014-02-05 16:36:42 -08:00
host_prebuilt.mk
host_shared_library.mk Revert "Don't rename host libraries if only one arch is build." 2014-06-11 01:12:18 +00:00
host_shared_library_internal.mk Support host multilib build 2014-05-14 16:55:04 -07:00
host_shared_test_lib.mk Add library test makefile solutions. 2014-02-05 16:36:42 -08:00
host_static_library.mk Revert "Don't rename host libraries if only one arch is build." 2014-06-11 01:12:18 +00:00
host_static_library_internal.mk Support host multilib build 2014-05-14 16:55:04 -07:00
host_static_test_lib.mk Add library test makefile solutions. 2014-02-05 16:36:42 -08:00
host_test_internal.mk Enable building of gtest for Windows 2014-10-20 16:06:44 -07:00
install_jni_libs.mk Fix missing rs_compatibility_jni_libs. 2014-06-30 11:20:41 -07:00
install_jni_libs_internal.mk Support LOCAL_PREBUILT_JNI_LIBS in unbundled build. 2015-02-12 22:40:24 +00:00
java.mk Add support for prebuilt AARs. 2014-12-17 22:27:26 +00:00
java_library.mk Multilib support for odex 2014-05-18 22:04:58 -07:00
legacy_prebuilts.mk
main.mk Store symbols.zip in apps_only build. 2014-10-27 17:57:11 +00:00
Makefile Add system propery ro.build.flavor. 2014-12-04 15:19:08 -08:00
module_arch_supported.mk build: delete 64-bit blacklist 2014-06-17 21:35:44 -07:00
multi_prebuilt.mk
multilib.mk Real "LOCAL_MULTILIB := both" for prebuilts 2014-05-16 10:49:57 -07:00
native_test.mk Allow to opt out both multilib in native test. 2014-06-10 17:52:20 -07:00
node_fns.mk
notice_files.mk
package.mk Real "LOCAL_MULTILIB := both" for prebuilts 2014-05-16 10:49:57 -07:00
package_internal.mk Fix using variable intermediates.COMMON before defining. 2014-12-18 15:13:04 -08:00
pathmap.mk Add docs for Palette and CardView 2014-09-28 16:13:19 +00:00
pdk_config.mk Remove framework2 2014-07-21 14:42:29 -07:00
phony_package.mk
post_clean.mk Fix aidl post clean bug. 2014-08-23 09:45:31 -07:00
prebuilt.mk Reset LOCAL_2ND_ARCH_VAR_PREFIX before referencing it. 2014-10-21 18:34:30 -07:00
prebuilt_internal.mk Add support for prebuilt AARs. 2014-12-17 22:27:26 +00:00
process_wrapper.sh
process_wrapper_gdb.cmds
process_wrapper_gdb.sh
product.mk Add product variable PRODUCT_AAPT_PREBUILT_DPI 2014-12-10 12:40:09 -08:00
product_config.mk Add product variable PRODUCT_AAPT_PREBUILT_DPI 2014-12-10 12:40:09 -08:00
proguard.emma.flags
proguard.flags
proguard_basic_keeps.flags Less spammy ProGuard. 2014-06-17 11:53:31 -07:00
proguard_tests.flags Allow for opt-in of proguard shrinking of tests with new flag 2014-09-09 20:42:48 -04:00
raw_executable.mk
raw_static_library.mk
root.mk
sdk_font.mk Fix sdk_font build warning. 2014-09-04 18:59:05 -07:00
setup_one_odex.mk Support to build apk odex for both arch. 2014-09-13 18:14:15 -07:00
shared_library.mk Clarify multiarch warnings 2014-05-21 16:40:35 -07:00
shared_library_internal.mk Update the FDO support: 2014-07-30 16:54:55 -07:00
shared_test_lib.mk Add library test makefile solutions. 2014-02-05 16:36:42 -08:00
static_java_library.mk Support "LOCAL_SDK_VERSION := system_current" 2014-07-19 17:00:50 -07:00
static_library.mk Support host multilib build 2014-05-14 16:55:04 -07:00
static_library_internal.mk Support host multilib build 2014-05-14 16:55:04 -07:00
static_test_lib.mk Add library test makefile solutions. 2014-02-05 16:36:42 -08:00
target_test_internal.mk More consistent use of 64-bit build variable. 2014-07-08 18:04:17 -07:00
version_defaults.mk Fix issue #18368417: 5.0 -> 5.1. 2014-12-04 12:10:32 -08:00