diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2017-09-21 21:53:10 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2017-09-21 22:00:00 +0000 |
commit | 868a473f86c74fa0f9b3c09dfa17f58446f61b55 (patch) | |
tree | 524b02d034164b224f138fe6157144197f47ebba | |
parent | 981e874dd162b46fbc91e26a368cf4b65d5f7706 (diff) | |
parent | c9336baf94b091388ec7b8fb74622779901ae5eb (diff) | |
download | platform_build-868a473f86c74fa0f9b3c09dfa17f58446f61b55.tar.gz platform_build-868a473f86c74fa0f9b3c09dfa17f58446f61b55.tar.bz2 platform_build-868a473f86c74fa0f9b3c09dfa17f58446f61b55.zip |
Make change and version bump to OPM2.170921.001
Change-Id: Ia1cb5a08ccea4d86b470649f4b096f8ed4606fde
-rw-r--r-- | core/build_id.mk | 2 | ||||
-rw-r--r-- | core/dex_preopt_odex_install.mk | 6 | ||||
-rw-r--r-- | core/prebuilt_internal.mk | 6 | ||||
-rw-r--r-- | core/product.mk | 1 | ||||
-rw-r--r-- | core/product_config.mk | 3 | ||||
-rw-r--r-- | core/version_defaults.mk | 2 | ||||
-rw-r--r-- | target/board/generic_arm64_a/BoardConfig.mk | 2 | ||||
-rw-r--r-- | target/board/generic_arm_a/BoardConfig.mk | 3 | ||||
-rw-r--r-- | target/board/treble_common.mk | 1 | ||||
-rw-r--r-- | target/board/treble_common_32.mk | 5 | ||||
-rw-r--r-- | target/product/runtime_libart.mk | 3 | ||||
-rw-r--r-- | target/product/vndk/Android.mk | 4 | ||||
-rwxr-xr-x | tools/releasetools/add_img_to_target_files.py | 8 |
13 files changed, 37 insertions, 9 deletions
diff --git a/core/build_id.mk b/core/build_id.mk index 8981868c7d..c5d7b92ad0 100644 --- a/core/build_id.mk +++ b/core/build_id.mk @@ -18,4 +18,4 @@ # (like "CRB01"). It must be a single word, and is # capitalized by convention. -export BUILD_ID=OPM2.170911.004 +export BUILD_ID=OPM2.170921.001 diff --git a/core/dex_preopt_odex_install.mk b/core/dex_preopt_odex_install.mk index cfcfca5021..4ff6c8d965 100644 --- a/core/dex_preopt_odex_install.mk +++ b/core/dex_preopt_odex_install.mk @@ -36,12 +36,16 @@ endif # if WITH_DEXPREOPT_BOOT_IMG_AND_SYSTEM_SERVER_ONLY=true and module is not in boot class path skip # Also preopt system server jars since selinux prevents system server from loading anything from # /data. If we don't do this they will need to be extracted which is not favorable for RAM usage -# or performance. +# or performance. If my_preopt_for_extracted_apk is true, we ignore the only preopt boot image +# options. +ifneq (true,$(my_preopt_for_extracted_apk)) ifeq (true,$(WITH_DEXPREOPT_BOOT_IMG_AND_SYSTEM_SERVER_ONLY)) ifeq ($(filter $(PRODUCT_SYSTEM_SERVER_JARS) $(DEXPREOPT_BOOT_JARS_MODULES),$(LOCAL_MODULE)),) LOCAL_DEX_PREOPT := endif endif +endif + # if installing into system, and odex are being installed into system_other, don't strip ifeq ($(BOARD_USES_SYSTEM_OTHER_ODEX),true) ifeq ($(LOCAL_DEX_PREOPT),true) diff --git a/core/prebuilt_internal.mk b/core/prebuilt_internal.mk index a9c0bc2bfe..620c22cf5f 100644 --- a/core/prebuilt_internal.mk +++ b/core/prebuilt_internal.mk @@ -281,6 +281,11 @@ $(my_extracted_apk): $(my_prebuilt_src_file) my_prebuilt_src_file := $(my_extracted_apk) my_extracted_apk := my_extract_apk := +ifeq ($(PRODUCT_ALWAYS_PREOPT_EXTRACTED_APK),true) +# If the product property is set, always preopt for extracted modules to prevent executing out of +# the APK. +my_preopt_for_extracted_apk := true +endif endif dex_preopt_profile_src_file := $(my_prebuilt_src_file) @@ -641,3 +646,4 @@ endif # JAVA_LIBRARIES $(built_module) : $(LOCAL_ADDITIONAL_DEPENDENCIES) my_prebuilt_src_file := +my_preopt_for_extracted_apk := diff --git a/core/product.mk b/core/product.mk index c955ccc061..4682dac992 100644 --- a/core/product.mk +++ b/core/product.mk @@ -115,6 +115,7 @@ _product_var_list := \ PRODUCT_SYSTEM_PROPERTY_BLACKLIST \ PRODUCT_SYSTEM_SERVER_APPS \ PRODUCT_SYSTEM_SERVER_JARS \ + PRODUCT_ALWAYS_PREOPT_EXTRACTED_APK \ PRODUCT_DEXPREOPT_SPEED_APPS \ PRODUCT_VBOOT_SIGNING_KEY \ PRODUCT_VBOOT_SIGNING_SUBKEY \ diff --git a/core/product_config.mk b/core/product_config.mk index cd62fb2e41..f7ae834fbc 100644 --- a/core/product_config.mk +++ b/core/product_config.mk @@ -260,6 +260,9 @@ PRODUCT_SYSTEM_SERVER_JARS := $(strip $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_SYS PRODUCT_SYSTEM_SERVER_APPS := $(strip $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_SYSTEM_SERVER_APPS)) PRODUCT_DEXPREOPT_SPEED_APPS := $(strip $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_DEXPREOPT_SPEED_APPS)) +# All of the apps that we force preopt, this overrides WITH_DEXPREOPT. +PRODUCT_ALWAYS_PREOPT_EXTRACTED_APK := $(strip $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_ALWAYS_PREOPT_EXTRACTED_APK)) + # Find the device that this product maps to. TARGET_DEVICE := $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_DEVICE) diff --git a/core/version_defaults.mk b/core/version_defaults.mk index 8a3eef85f0..7b45d2812e 100644 --- a/core/version_defaults.mk +++ b/core/version_defaults.mk @@ -181,7 +181,7 @@ ifndef PLATFORM_SECURITY_PATCH # It must be of the form "YYYY-MM-DD" on production devices. # It must match one of the Android Security Patch Level strings of the Public Security Bulletins. # If there is no $PLATFORM_SECURITY_PATCH set, keep it empty. - PLATFORM_SECURITY_PATCH := 2017-10-05 + PLATFORM_SECURITY_PATCH := 2017-11-05 endif ifndef PLATFORM_BASE_OS diff --git a/target/board/generic_arm64_a/BoardConfig.mk b/target/board/generic_arm64_a/BoardConfig.mk index 4729744736..8f4043f162 100644 --- a/target/board/generic_arm64_a/BoardConfig.mk +++ b/target/board/generic_arm64_a/BoardConfig.mk @@ -26,4 +26,4 @@ TARGET_2ND_ARCH := arm TARGET_2ND_ARCH_VARIANT := armv7-a-neon TARGET_2ND_CPU_ABI := armeabi-v7a TARGET_2ND_CPU_ABI2 := armeabi -TARGET_2ND_CPU_VARIANT := generic +TARGET_2ND_CPU_VARIANT := cortex-a15 diff --git a/target/board/generic_arm_a/BoardConfig.mk b/target/board/generic_arm_a/BoardConfig.mk index 57a5196a96..e3a670784d 100644 --- a/target/board/generic_arm_a/BoardConfig.mk +++ b/target/board/generic_arm_a/BoardConfig.mk @@ -16,6 +16,9 @@ include build/make/target/board/treble_common_32.mk +# Overwrite the setting in treble_common_32.mk for non-A/B arm GSI +BOARD_SYSTEMIMAGE_PARTITION_SIZE := 950009856 + TARGET_ARCH := arm TARGET_ARCH_VARIANT := armv7-a-neon TARGET_CPU_ABI := armeabi-v7a diff --git a/target/board/treble_common.mk b/target/board/treble_common.mk index 8637235a03..ec711c256a 100644 --- a/target/board/treble_common.mk +++ b/target/board/treble_common.mk @@ -19,6 +19,7 @@ # VNDK BOARD_VNDK_VERSION := current +BOARD_VNDK_RUNTIME_DISABLE := true # Properties TARGET_SYSTEM_PROP := build/make/target/board/treble_system.prop diff --git a/target/board/treble_common_32.mk b/target/board/treble_common_32.mk index 2c3447b4cf..dbe0899488 100644 --- a/target/board/treble_common_32.mk +++ b/target/board/treble_common_32.mk @@ -16,5 +16,6 @@ include build/make/target/board/treble_common.mk -# Partition size is default 906MB for 32 bits projects -BOARD_SYSTEMIMAGE_PARTITION_SIZE := 950009856 +# Partition size defaults to 1 GB (1024 MB) for 32-bit products. It can +# be overwritten in specific BoardConfig.mk, if so desired. +BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1073741824 diff --git a/target/product/runtime_libart.mk b/target/product/runtime_libart.mk index ed68c7838f..8aedee79cd 100644 --- a/target/product/runtime_libart.mk +++ b/target/product/runtime_libart.mk @@ -83,4 +83,5 @@ PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ pm.dexopt.install=quicken \ pm.dexopt.bg-dexopt=speed-profile \ pm.dexopt.ab-ota=speed-profile \ - pm.dexopt.inactive=verify + pm.dexopt.inactive=verify \ + pm.dexopt.shared=speed diff --git a/target/product/vndk/Android.mk b/target/product/vndk/Android.mk index 20e8436697..c8ed8736a0 100644 --- a/target/product/vndk/Android.mk +++ b/target/product/vndk/Android.mk @@ -6,6 +6,8 @@ LOCAL_MODULE := vndk_package LOCAL_REQUIRED_MODULES := \ $(addsuffix .vendor,$(VNDK_CORE_LIBRARIES)) \ $(addsuffix .vendor,$(VNDK_SAMEPROCESS_LIBRARIES)) \ - $(LLNDK_LIBRARIES) + $(LLNDK_LIBRARIES) \ + llndk.libraries.txt \ + vndksp.libraries.txt include $(BUILD_PHONY_PACKAGE) diff --git a/tools/releasetools/add_img_to_target_files.py b/tools/releasetools/add_img_to_target_files.py index 1ce22e7ea3..52d3918926 100755 --- a/tools/releasetools/add_img_to_target_files.py +++ b/tools/releasetools/add_img_to_target_files.py @@ -505,7 +505,13 @@ def AddImagesToTargetFiles(filename): print("target_files appears to already contain images.") sys.exit(1) - has_vendor = os.path.isdir(os.path.join(OPTIONS.input_tmp, "VENDOR")) + # vendor.img is unlike system.img or system_other.img. Because it could be + # built from source, or dropped into target_files.zip as a prebuilt blob. We + # consider either of them as vendor.img being available, which could be used + # when generating vbmeta.img for AVB. + has_vendor = (os.path.isdir(os.path.join(OPTIONS.input_tmp, "VENDOR")) or + os.path.exists(os.path.join(OPTIONS.input_tmp, "IMAGES", + "vendor.img"))) has_system_other = os.path.isdir(os.path.join(OPTIONS.input_tmp, "SYSTEM_OTHER")) |