summaryrefslogtreecommitdiffstats
path: root/core/dex_preopt_odex_install.mk
diff options
context:
space:
mode:
authorYing Wang <wangying@google.com>2014-09-15 11:45:52 -0700
committerYing Wang <wangying@google.com>2014-09-15 11:45:52 -0700
commit7a8991991f6459945782175b0cda7d03fbf6cbde (patch)
treecd3efd64ceabdd540fcae1dff5528a42be64e165 /core/dex_preopt_odex_install.mk
parentce851e88d9b1a0d934f1a564b3a400782d12e0d3 (diff)
downloadbuild-7a8991991f6459945782175b0cda7d03fbf6cbde.zip
build-7a8991991f6459945782175b0cda7d03fbf6cbde.tar.gz
build-7a8991991f6459945782175b0cda7d03fbf6cbde.tar.bz2
Enable multilib odex only if TARGET_2ND_ARCH is defined.
Bug: 17507247 Bug: 14694978 Change-Id: I160a37bc0970315054606829aa112b67eaee7d49
Diffstat (limited to 'core/dex_preopt_odex_install.mk')
-rw-r--r--core/dex_preopt_odex_install.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/core/dex_preopt_odex_install.mk b/core/dex_preopt_odex_install.mk
index c3d47f7..28282ec 100644
--- a/core/dex_preopt_odex_install.mk
+++ b/core/dex_preopt_odex_install.mk
@@ -82,14 +82,16 @@ else # must be APPS
# The preferred arch
my_2nd_arch_prefix := $(LOCAL_2ND_ARCH_VAR_PREFIX)
include $(BUILD_SYSTEM)/setup_one_odex.mk
+ifdef TARGET_2ND_ARCH
ifeq ($(LOCAL_MULTILIB),both)
# The non-preferred arch
my_2nd_arch_prefix := $(if $(LOCAL_2ND_ARCH_VAR_PREFIX),,$(TARGET_2ND_ARCH_VAR_PREFIX))
include $(BUILD_SYSTEM)/setup_one_odex.mk
endif # LOCAL_MULTILIB is both
+endif # TARGET_2ND_ARCH
endif # LOCAL_MODULE_CLASS
-endif # libart
-endif # boot jar
+endif # libart
+endif # boot jar
ifdef built_odex
# Use pattern rule - we may have multiple installed odex files.