diff options
author | Brian Carlstrom <bdc@google.com> | 2014-05-19 16:50:20 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2014-05-19 16:50:21 +0000 |
commit | 84e524207b23d58a1b1e5f4443000ccac97c4184 (patch) | |
tree | 6eb6204994d342a653fba4eea275a536a720b036 /build | |
parent | f04544ffdb801946d087ae1322c890e34e185156 (diff) | |
parent | 0e12bdc49744eb6d5c29b9611a8dbe10bac4cd53 (diff) | |
download | art-84e524207b23d58a1b1e5f4443000ccac97c4184.tar.gz art-84e524207b23d58a1b1e5f4443000ccac97c4184.tar.bz2 art-84e524207b23d58a1b1e5f4443000ccac97c4184.zip |
Merge "Add ISA directory to image and odex pathnames."
Diffstat (limited to 'build')
-rw-r--r-- | build/Android.common.mk | 29 | ||||
-rw-r--r-- | build/Android.gtest.mk | 20 | ||||
-rw-r--r-- | build/Android.libarttest.mk | 9 | ||||
-rw-r--r-- | build/Android.oat.mk | 26 |
4 files changed, 43 insertions, 41 deletions
diff --git a/build/Android.common.mk b/build/Android.common.mk index cc600bd092..53411360ba 100644 --- a/build/Android.common.mk +++ b/build/Android.common.mk @@ -136,12 +136,12 @@ endif ART_DALVIK_CACHE_DIR := /data/dalvik-cache # directory used for gtests on device -ART_BASE_NATIVETEST_DIR := /data/nativetest/art -ART_BASE_NATIVETEST_OUT := $(TARGET_OUT_DATA_NATIVE_TESTS)/art +ART_NATIVETEST_DIR := /data/nativetest/art +ART_NATIVETEST_OUT := $(TARGET_OUT_DATA_NATIVE_TESTS)/art -# directory used for tests on device -ART_BASE_TEST_DIR := /data/art-test -ART_BASE_TEST_OUT := $(TARGET_OUT_DATA)/art-test +# directory used for oat tests on device +ART_TEST_DIR := /data/art-test +ART_TEST_OUT := $(TARGET_OUT_DATA)/art-test # Primary vs. secondary 2ND_TARGET_ARCH := $(TARGET_2ND_ARCH) @@ -157,26 +157,15 @@ ifdef TARGET_2ND_ARCH ART_PHONY_TEST_TARGET_SUFFIX := 64 2ND_ART_PHONY_TEST_TARGET_SUFFIX := 32 ART_TARGET_BINARY_SUFFIX := 64 + ART_TARGET_ARCH_32 := $(TARGET_2ND_ARCH) + ART_TARGET_ARCH_64 := $(TARGET_ARCH) else # TODO: ??? $(error Do not know what to do with this multi-target configuration!) endif - # Primary with primary suffix - ART_NATIVETEST_DIR := $(ART_BASE_NATIVETEST_DIR)$(art_test_primary_suffix) - ART_NATIVETEST_OUT := $(ART_BASE_NATIVETEST_OUT)$(art_test_primary_suffix) - ART_TEST_DIR := $(ART_BASE_TEST_DIR)$(art_test_primary_suffix) - ART_TEST_OUT := $(ART_BASE_TEST_OUT)$(art_test_primary_suffix) - # Secondary with 2ND_ prefix and secondary suffix - 2ND_ART_NATIVETEST_DIR := $(ART_BASE_NATIVETEST_DIR)$(art_test_secondary_suffix) - 2ND_ART_NATIVETEST_OUT := $(ART_BASE_NATIVETEST_OUT)$(art_test_secondary_suffix) - 2ND_ART_TEST_DIR := $(ART_BASE_TEST_DIR)$(art_test_secondary_suffix) - 2ND_ART_TEST_OUT := $(ART_BASE_TEST_OUT)$(art_test_secondary_suffix) else - ART_NATIVETEST_DIR := $(ART_BASE_NATIVETEST_DIR) - ART_NATIVETEST_OUT := $(ART_BASE_NATIVETEST_OUT) - ART_TEST_DIR := $(ART_BASE_TEST_DIR) - ART_TEST_OUT := $(ART_BASE_TEST_OUT) - # No secondary + ART_TARGET_ARCH_32 := $(TARGET_ARCH) + ART_TARGET_ARCH_64 := endif ART_CPP_EXTENSION := .cc diff --git a/build/Android.gtest.mk b/build/Android.gtest.mk index 226df986bb..1cd528be60 100644 --- a/build/Android.gtest.mk +++ b/build/Android.gtest.mk @@ -130,12 +130,12 @@ endif # (1) Prefix for variables define build-art-test-make-target .PHONY: $$(art_gtest_target)$($(1)ART_PHONY_TEST_TARGET_SUFFIX) -$$(art_gtest_target)$($(1)ART_PHONY_TEST_TARGET_SUFFIX): $($(1)ART_NATIVETEST_OUT)/$$(LOCAL_MODULE) test-art-target-sync - adb shell touch $($(1)ART_TEST_DIR)/$$@ - adb shell rm $($(1)ART_TEST_DIR)/$$@ - adb shell chmod 755 $($(1)ART_NATIVETEST_DIR)/$$(notdir $$<) - adb shell sh -c "$($(1)ART_NATIVETEST_DIR)/$$(notdir $$<) && touch $($(1)ART_TEST_DIR)/$$@" - $(hide) (adb pull $($(1)ART_TEST_DIR)/$$@ /tmp/ && echo $$@ PASSED) || (echo $$@ FAILED && exit 1) +$$(art_gtest_target)$($(1)ART_PHONY_TEST_TARGET_SUFFIX): $(ART_NATIVETEST_OUT)/$(TARGET_$(1)ARCH)/$$(LOCAL_MODULE) test-art-target-sync + adb shell touch $(ART_TEST_DIR)/$(TARGET_$(1)ARCH)/$$@ + adb shell rm $(ART_TEST_DIR)/$(TARGET_$(1)ARCH)/$$@ + adb shell chmod 755 $(ART_NATIVETEST_DIR)/$(TARGET_$(1)ARCH)/$$(notdir $$<) + adb shell sh -c "$(ART_NATIVETEST_DIR)/$(TARGET_$(1)ARCH)/$$(notdir $$<) && touch $(ART_TEST_DIR)/$(TARGET_$(1)ARCH)/$$@" + $(hide) (adb pull $(ART_TEST_DIR)/$(TARGET_$(1)ARCH)/$$@ /tmp/ && echo $$@ PASSED) || (echo $$@ FAILED && exit 1) $(hide) rm /tmp/$$@ ART_TARGET_GTEST_TARGETS$($(1)ART_PHONY_TEST_TARGET_SUFFIX) += $$(art_gtest_target)$($(1)ART_PHONY_TEST_TARGET_SUFFIX) @@ -188,19 +188,19 @@ define build-art-test LOCAL_CFLAGS_x86 := $(ART_TARGET_CFLAGS_x86) LOCAL_SHARED_LIBRARIES += libdl libicuuc libicui18n libnativehelper libz libcutils libvixl LOCAL_STATIC_LIBRARIES += libgtest - LOCAL_MODULE_PATH_32 := $(ART_BASE_NATIVETEST_OUT) - LOCAL_MODULE_PATH_64 := $(ART_BASE_NATIVETEST_OUT)64 + LOCAL_MODULE_PATH_32 := $(ART_NATIVETEST_OUT)/$(ART_TARGET_ARCH_32) + LOCAL_MODULE_PATH_64 := $(ART_NATIVETEST_OUT)/$(ART_TARGET_ARCH_64) LOCAL_MULTILIB := both include art/build/Android.libcxx.mk include $(BUILD_EXECUTABLE) - ART_TARGET_GTEST_EXECUTABLES$(ART_PHONY_TEST_TARGET_SUFFIX) += $(ART_NATIVETEST_OUT)/$$(LOCAL_MODULE) + ART_TARGET_GTEST_EXECUTABLES$(ART_PHONY_TEST_TARGET_SUFFIX) += $(ART_NATIVETEST_OUT)/$(TARGET_ARCH)/$$(LOCAL_MODULE) art_gtest_target := test-art-$$(art_target_or_host)-gtest-$$(art_gtest_name) ifdef TARGET_2ND_ARCH $(call build-art-test-make-target,2ND_) - ART_TARGET_GTEST_EXECUTABLES$(2ND_ART_PHONY_TEST_TARGET_SUFFIX) += $(2ND_ART_NATIVETEST_OUT)/$$(LOCAL_MODULE) + ART_TARGET_GTEST_EXECUTABLES$(2ND_ART_PHONY_TEST_TARGET_SUFFIX) += $(ART_NATIVETEST_OUT)/$(TARGET_2ND_ARCH)/$$(LOCAL_MODULE) # Bind the primary to the non-suffix rule ifneq ($(ART_PHONY_TEST_TARGET_SUFFIX),) diff --git a/build/Android.libarttest.mk b/build/Android.libarttest.mk index 18d321a154..e2c9864285 100644 --- a/build/Android.libarttest.mk +++ b/build/Android.libarttest.mk @@ -20,6 +20,11 @@ LIBARTTEST_COMMON_SRC_FILES := \ test/StackWalk/stack_walk_jni.cc \ test/UnsafeTest/unsafe_test.cc +ART_TARGET_LIBARTTEST_$(ART_PHONY_TEST_TARGET_SUFFIX) += $(ART_TEST_OUT)/$(TARGET_ARCH)/libarttest.so +ifdef TARGET_2ND_ARCH + ART_TARGET_LIBARTTEST_$(2ND_ART_PHONY_TEST_TARGET_SUFFIX) += $(ART_TEST_OUT)/$(TARGET_2ND_ARCH)/libarttest.so +endif + # $(1): target or host define build-libarttest ifneq ($(1),target) @@ -48,8 +53,8 @@ define build-libarttest LOCAL_SHARED_LIBRARIES += libdl libcutils LOCAL_STATIC_LIBRARIES := libgtest LOCAL_MULTILIB := both - LOCAL_MODULE_PATH_32 := $(ART_BASE_TEST_OUT) - LOCAL_MODULE_PATH_64 := $(ART_BASE_TEST_OUT)64 + LOCAL_MODULE_PATH_32 := $(ART_TEST_OUT)/$(ART_TARGET_ARCH_32) + LOCAL_MODULE_PATH_64 := $(ART_TEST_OUT)/$(ART_TARGET_ARCH_64) LOCAL_MODULE_TARGET_ARCH := $(ART_SUPPORTED_ARCH) include art/build/Android.libcxx.mk include $(BUILD_SHARED_LIBRARY) diff --git a/build/Android.oat.mk b/build/Android.oat.mk index 9d7579de93..8240ece586 100644 --- a/build/Android.oat.mk +++ b/build/Android.oat.mk @@ -29,17 +29,25 @@ TARGET_CORE_DEX_LOCATIONS := $(foreach jar,$(TARGET_CORE_JARS),/$(DEXPREOPT_BOOT HOST_CORE_DEX_FILES := $(foreach jar,$(HOST_CORE_JARS), $(call intermediates-dir-for,JAVA_LIBRARIES,$(jar),t,COMMON)/javalib.jar) TARGET_CORE_DEX_FILES := $(foreach jar,$(TARGET_CORE_JARS),$(call intermediates-dir-for,JAVA_LIBRARIES,$(jar), ,COMMON)/javalib.jar) -HOST_CORE_OAT := $(HOST_OUT_JAVA_LIBRARIES)/core.oat -TARGET_CORE_OAT := $(ART_TEST_DIR)/core.oat -2ND_TARGET_CORE_OAT := $(2ND_ART_TEST_DIR)/core.oat +HOST_CORE_OAT := $(HOST_OUT_JAVA_LIBRARIES)/$(ART_HOST_ARCH)/core.oat +TARGET_CORE_OAT := $(ART_TEST_DIR)/$(DEX2OAT_TARGET_ARCH)/core.oat +ifdef TARGET_2ND_ARCH +2ND_TARGET_CORE_OAT := $(2ND_ART_TEST_DIR)/$($(TARGET_2ND_ARCH_VAR_PREFIX)DEX2OAT_TARGET_ARCH)/core.oat +endif -HOST_CORE_OAT_OUT := $(HOST_OUT_JAVA_LIBRARIES)/core.oat -TARGET_CORE_OAT_OUT := $(ART_TEST_OUT)/core.oat -2ND_TARGET_CORE_OAT_OUT := $(2ND_ART_TEST_OUT)/core.oat +HOST_CORE_OAT_OUT := $(HOST_OUT_JAVA_LIBRARIES)/$(ART_HOST_ARCH)/core.oat +TARGET_CORE_OAT_OUT := $(ART_TEST_OUT)/$(DEX2OAT_TARGET_ARCH)/core.oat +ifdef TARGET_2ND_ARCH +2ND_TARGET_CORE_OAT_OUT := $(ART_TEST_OUT)/$($(TARGET_2ND_ARCH_VAR_PREFIX)DEX2OAT_TARGET_ARCH)/core.oat +endif + +HOST_CORE_IMG_OUT := $(HOST_OUT_JAVA_LIBRARIES)/$(ART_HOST_ARCH)/core.art +TARGET_CORE_IMG_OUT := $(ART_TEST_OUT)/$(DEX2OAT_TARGET_ARCH)/core.art +ifdef TARGET_2ND_ARCH +2ND_TARGET_CORE_IMG_OUT := $(ART_TEST_OUT)/$($(TARGET_2ND_ARCH_VAR_PREFIX)DEX2OAT_TARGET_ARCH)/core.art +endif -HOST_CORE_IMG_OUT := $(HOST_OUT_JAVA_LIBRARIES)/core.art -TARGET_CORE_IMG_OUT := $(ART_TEST_OUT)/core.art -2ND_TARGET_CORE_IMG_OUT := $(2ND_ART_TEST_OUT)/core.art +HOST_CORE_IMG_LOCATION := $(realpath $(HOST_OUT_JAVA_LIBRARIES))/core.art TARGET_INSTRUCTION_SET_FEATURES := $(DEX2OAT_TARGET_INSTRUCTION_SET_FEATURES) |