Merge changes from topics "rbe-deps-dexpreopt-images", "rbe-deps-system-modules"
* changes: Use dexpreopt image deps from Soong Depend on all the files from system modules
This commit is contained in:
commit
e346d8c25e
2 changed files with 10 additions and 3 deletions
|
@ -105,6 +105,7 @@ endif
|
|||
|
||||
my_dexpreopt_archs :=
|
||||
my_dexpreopt_images :=
|
||||
my_dexpreopt_images_deps :=
|
||||
my_dexpreopt_infix := boot
|
||||
ifeq (true, $(DEXPREOPT_USE_APEX_IMAGE))
|
||||
my_dexpreopt_infix := apex
|
||||
|
@ -143,12 +144,14 @@ ifdef LOCAL_DEX_PREOPT
|
|||
# Odex for the 1st arch
|
||||
my_dexpreopt_archs += $(TARGET_ARCH)
|
||||
my_dexpreopt_images += $(DEXPREOPT_IMAGE_$(my_dexpreopt_infix)_$(TARGET_ARCH))
|
||||
my_dexpreopt_images_deps += $(DEXPREOPT_IMAGE_DEPS_$(my_dexpreopt_infix)_$(TARGET_ARCH))
|
||||
# Odex for the 2nd arch
|
||||
ifdef TARGET_2ND_ARCH
|
||||
ifneq ($(TARGET_TRANSLATE_2ND_ARCH),true)
|
||||
ifneq (first,$(my_module_multilib))
|
||||
my_dexpreopt_archs += $(TARGET_2ND_ARCH)
|
||||
my_dexpreopt_images += $(DEXPREOPT_IMAGE_$(my_dexpreopt_infix)_$(TARGET_2ND_ARCH))
|
||||
my_dexpreopt_images_deps += $(DEXPREOPT_IMAGE_DEPS_$(my_dexpreopt_infix)_$(TARGET_2ND_ARCH))
|
||||
endif # my_module_multilib is not first.
|
||||
endif # TARGET_TRANSLATE_2ND_ARCH not true
|
||||
endif # TARGET_2ND_ARCH
|
||||
|
@ -160,6 +163,8 @@ ifdef LOCAL_DEX_PREOPT
|
|||
my_dexpreopt_archs += $(TARGET_$(my_2nd_arch_prefix)ARCH)
|
||||
my_dexpreopt_images += \
|
||||
$(DEXPREOPT_IMAGE_$(my_dexpreopt_infix)_$(TARGET_$(my_2nd_arch_prefix)ARCH))
|
||||
my_dexpreopt_images_deps += \
|
||||
$(DEXPREOPT_IMAGE_DEPS_$(my_dexpreopt_infix)_$(TARGET_$(my_2nd_arch_prefix)ARCH))
|
||||
ifdef TARGET_2ND_ARCH
|
||||
ifeq ($(my_module_multilib),both)
|
||||
# The non-preferred arch
|
||||
|
@ -167,6 +172,8 @@ ifdef LOCAL_DEX_PREOPT
|
|||
my_dexpreopt_archs += $(TARGET_$(my_2nd_arch_prefix)ARCH)
|
||||
my_dexpreopt_images += \
|
||||
$(DEXPREOPT_IMAGE_$(my_dexpreopt_infix)_$(TARGET_$(my_2nd_arch_prefix)ARCH))
|
||||
my_dexpreopt_images_deps += \
|
||||
$(DEXPREOPT_IMAGE_DEPS_$(my_dexpreopt_infix)_$(TARGET_$(my_2nd_arch_prefix)ARCH))
|
||||
endif # LOCAL_MULTILIB is both
|
||||
endif # TARGET_2ND_ARCH
|
||||
endif # LOCAL_MODULE_CLASS
|
||||
|
@ -263,7 +270,7 @@ ifdef LOCAL_DEX_PREOPT
|
|||
my_dexpreopt_deps += \
|
||||
$(foreach lib, $(my_dexpreopt_libs), \
|
||||
$(call intermediates-dir-for,JAVA_LIBRARIES,$(lib),,COMMON)/javalib.jar)
|
||||
my_dexpreopt_deps += $(my_dexpreopt_images)
|
||||
my_dexpreopt_deps += $(my_dexpreopt_images_deps)
|
||||
my_dexpreopt_deps += $(DEXPREOPT_BOOTCLASSPATH_DEX_FILES)
|
||||
|
||||
$(my_dexpreopt_zip): PRIVATE_MODULE := $(LOCAL_MODULE)
|
||||
|
|
|
@ -416,8 +416,8 @@ ifeq ($(LOCAL_JAVA_LANGUAGE_VERSION),1.9)
|
|||
ifndef SOONG_SYSTEM_MODULES_$(my_system_modules)
|
||||
$(call pretty-error, Invalid system modules $(my_system_modules))
|
||||
endif
|
||||
full_java_system_modules_deps := $(SOONG_SYSTEM_MODULES_$(my_system_modules))
|
||||
my_system_modules_dir := $(patsubst %/lib/modules,%,$(SOONG_SYSTEM_MODULES_$(my_system_modules)))
|
||||
full_java_system_modules_deps := $(SOONG_SYSTEM_MODULES_DEPS_$(my_system_modules))
|
||||
my_system_modules_dir := $(SOONG_SYSTEM_MODULES_$(my_system_modules))
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
|
Loading…
Reference in a new issue