forked from openkylin/platform_build
Make change and version bump to SD2A.210519.001
Change-Id: Ic2b311eece0649c26143297a27899d2a77846206
This commit is contained in:
commit
54f1768d1e
|
@ -1034,10 +1034,6 @@ endif # BUILDING_BOOT_IMAGE
|
|||
|
||||
else # TARGET_NO_KERNEL == "true"
|
||||
ifdef BOARD_PREBUILT_BOOTIMAGE
|
||||
ifneq ($(BOARD_BUILD_SYSTEM_ROOT_IMAGE),true)
|
||||
# Remove when b/63676296 is resolved.
|
||||
$(error Prebuilt bootimage is only supported for AB targets)
|
||||
endif
|
||||
INTERNAL_PREBUILT_BOOTIMAGE := $(BOARD_PREBUILT_BOOTIMAGE)
|
||||
INSTALLED_BOOTIMAGE_TARGET := $(PRODUCT_OUT)/boot.img
|
||||
$(eval $(call copy-one-file,$(INTERNAL_PREBUILT_BOOTIMAGE),$(INSTALLED_BOOTIMAGE_TARGET)))
|
||||
|
@ -5321,6 +5317,7 @@ $(APPCOMPAT_ZIP): $(SOONG_ZIP)
|
|||
|
||||
# The mac build doesn't build dex2oat, so create the zip file only if the build OS is linux.
|
||||
ifeq ($(BUILD_OS),linux)
|
||||
ifneq ($(DEX2OAT),)
|
||||
dexpreopt_tools_deps := $(DEXPREOPT_GEN_DEPS) $(DEXPREOPT_GEN) $(AAPT2)
|
||||
DEXPREOPT_TOOLS_ZIP := $(PRODUCT_OUT)/dexpreopt_tools.zip
|
||||
$(DEXPREOPT_TOOLS_ZIP): $(dexpreopt_tools_deps)
|
||||
|
@ -5328,7 +5325,8 @@ $(DEXPREOPT_TOOLS_ZIP): PRIVATE_DEXPREOPT_TOOLS_DEPS := $(dexpreopt_tools_deps)
|
|||
$(DEXPREOPT_TOOLS_ZIP): $(SOONG_ZIP)
|
||||
$(hide) mkdir -p $(dir $@)
|
||||
$(hide) $(SOONG_ZIP) -d -o $@ -j $(addprefix -f ,$(PRIVATE_DEXPREOPT_TOOLS_DEPS)) -f $$(realpath $(DEX2OAT))
|
||||
endif
|
||||
endif # DEX2OAT is set
|
||||
endif # BUILD_OS == linux
|
||||
|
||||
DEXPREOPT_CONFIG_ZIP := $(PRODUCT_OUT)/dexpreopt_config.zip
|
||||
$(DEXPREOPT_CONFIG_ZIP): $(FULL_SYSTEMIMAGE_DEPS) \
|
||||
|
|
|
@ -183,6 +183,30 @@ $(built_module) : $(LOCAL_REPLACE_PREBUILT_APK_INSTALLED)
|
|||
$(transform-prebuilt-to-target)
|
||||
|
||||
else # ! LOCAL_REPLACE_PREBUILT_APK_INSTALLED
|
||||
|
||||
# If the SDK version is 30 or higher, the apk is signed with a v2+ scheme.
|
||||
# Altering it will invalidate the signature. Just do error checks instead.
|
||||
do_not_alter_apk :=
|
||||
ifeq (PRESIGNED,$(LOCAL_CERTIFICATE))
|
||||
ifneq (,$(LOCAL_SDK_VERSION))
|
||||
ifeq ($(call math_is_number,$(LOCAL_SDK_VERSION)),true)
|
||||
ifeq ($(call math_gt,$(LOCAL_SDK_VERSION),29),true)
|
||||
do_not_alter_apk := true
|
||||
endif
|
||||
endif
|
||||
# TODO: Add system_current after fixing the existing modules.
|
||||
ifneq ($(filter current test_current core_current,$(LOCAL_SDK_VERSION)),)
|
||||
do_not_alter_apk := true
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(do_not_alter_apk),true)
|
||||
$(built_module) : $(my_prebuilt_src_file) | $(ZIPALIGN)
|
||||
$(transform-prebuilt-to-target)
|
||||
$(check-jni-dex-compression)
|
||||
$(check-package-alignment)
|
||||
else
|
||||
# Sign and align non-presigned .apks.
|
||||
# The embedded prebuilt jni to uncompress.
|
||||
ifeq ($(LOCAL_CERTIFICATE),PRESIGNED)
|
||||
|
@ -229,6 +253,7 @@ endif # LOCAL_CERTIFICATE
|
|||
ifdef LOCAL_COMPRESSED_MODULE
|
||||
$(compress-package)
|
||||
endif # LOCAL_COMPRESSED_MODULE
|
||||
endif # ! do_not_alter_apk
|
||||
endif # ! LOCAL_REPLACE_PREBUILT_APK_INSTALLED
|
||||
|
||||
|
||||
|
|
|
@ -18,4 +18,4 @@
|
|||
# (like "CRB01"). It must be a single word, and is
|
||||
# capitalized by convention.
|
||||
|
||||
BUILD_ID=SD2A.210513.001
|
||||
BUILD_ID=SD2A.210519.001
|
||||
|
|
|
@ -2380,6 +2380,15 @@ $(hide) if ! $(ZIPALIGN) -c -p 4 $@ >/dev/null ; then \
|
|||
fi
|
||||
endef
|
||||
|
||||
# Verifies ZIP alignment of a package.
|
||||
#
|
||||
define check-package-alignment
|
||||
$(hide) if ! $(ZIPALIGN) -c -p 4 $@ >/dev/null ; then \
|
||||
$(call echo-error,$@,Improper package alignment); \
|
||||
exit 1; \
|
||||
fi
|
||||
endef
|
||||
|
||||
# Compress a package using the standard gzip algorithm.
|
||||
define compress-package
|
||||
$(hide) \
|
||||
|
@ -2448,6 +2457,15 @@ define uncompress-prebuilt-embedded-jni-libs
|
|||
fi
|
||||
endef
|
||||
|
||||
# Verifies shared JNI libraries and dex files in an apk are uncompressed.
|
||||
#
|
||||
define check-jni-dex-compression
|
||||
if (zipinfo $@ 'lib/*.so' '*.dex' 2>/dev/null | grep -v ' stor ' >/dev/null) ; then \
|
||||
$(call echo-error,$@,Contains compressed JNI libraries and/or dex files); \
|
||||
exit 1; \
|
||||
fi
|
||||
endef
|
||||
|
||||
# Remove unwanted shared JNI libraries embedded in an apk.
|
||||
#
|
||||
define remove-unwanted-prebuilt-embedded-jni-libs
|
||||
|
|
|
@ -227,14 +227,9 @@ else ifeq (true,$(WITH_DEXPREOPT_BOOT_IMG_AND_SYSTEM_SERVER_ONLY))
|
|||
LOCAL_ENFORCE_USES_LIBRARIES := false
|
||||
endif
|
||||
|
||||
# Verify LOCAL_USES_LIBRARIES/LOCAL_OPTIONAL_USES_LIBRARIES
|
||||
# If LOCAL_ENFORCE_USES_LIBRARIES is not set, default to true if either of LOCAL_USES_LIBRARIES or
|
||||
# LOCAL_OPTIONAL_USES_LIBRARIES are specified.
|
||||
# Will change the default to true unconditionally in the future.
|
||||
# Verify LOCAL_USES_LIBRARIES/LOCAL_OPTIONAL_USES_LIBRARIES against the manifest.
|
||||
ifndef LOCAL_ENFORCE_USES_LIBRARIES
|
||||
ifneq (,$(strip $(LOCAL_USES_LIBRARIES)$(LOCAL_OPTIONAL_USES_LIBRARIES)))
|
||||
LOCAL_ENFORCE_USES_LIBRARIES := true
|
||||
endif
|
||||
LOCAL_ENFORCE_USES_LIBRARIES := true
|
||||
endif
|
||||
|
||||
my_enforced_uses_libraries :=
|
||||
|
|
|
@ -94,9 +94,9 @@ endif
|
|||
BOARD_USES_RECOVERY_AS_BOOT :=
|
||||
TARGET_NO_KERNEL := false
|
||||
BOARD_USES_GENERIC_KERNEL_IMAGE := true
|
||||
# TODO(b/187432172): Add 5.10-android12-unstable
|
||||
BOARD_KERNEL_MODULE_INTERFACE_VERSIONS := \
|
||||
5.4-android12-0 \
|
||||
5.4-android12-unstable \
|
||||
5.10-android12-unstable \
|
||||
|
||||
# Copy boot image in $OUT to target files. This is defined for targets where
|
||||
# the installed GKI APEXes are built from source.
|
||||
|
|
|
@ -42,9 +42,6 @@ PRODUCT_USE_DYNAMIC_PARTITIONS := true
|
|||
# Enable dynamic partition size
|
||||
PRODUCT_USE_DYNAMIC_PARTITION_SIZE := true
|
||||
|
||||
# Enable various debugfs restrictions
|
||||
PRODUCT_SET_DEBUGFS_RESTRICTIONS := true
|
||||
|
||||
# GSI targets should install "unflattened" APEXes in /system
|
||||
TARGET_FLATTEN_APEX := false
|
||||
|
||||
|
|
|
@ -1064,11 +1064,6 @@ def GenerateAbOtaPackage(target_file, output_file, source_file=None):
|
|||
# build doesn't supports it.
|
||||
if not source_info.is_vabc or not target_info.is_vabc:
|
||||
OPTIONS.disable_vabc = True
|
||||
if not OPTIONS.disable_vabc:
|
||||
# TODO(zhangkelvin) Remove this once FEC on VABC is supported
|
||||
logger.info("Virtual AB Compression enabled, disabling FEC")
|
||||
OPTIONS.disable_fec_computation = True
|
||||
OPTIONS.disable_verity_computation = True
|
||||
|
||||
else:
|
||||
assert "ab_partitions" in OPTIONS.info_dict, \
|
||||
|
|
Loading…
Reference in New Issue