blob: 3a3cb990cad3d4260c48a46608f761f11e8b0bc9 [file] [log] [blame]
Brian Carlstrom16192862011-09-12 17:50:06 -07001#
2# Copyright (C) 2011 The Android Open Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
Brian Carlstrom27ec9612011-09-19 20:20:38 -070017########################################################################
Brian Carlstrom7ab763c2013-12-09 00:38:02 -080018# Rules to build a smaller "core" image to support core libraries
19# (that is, non-Android frameworks) testing on the host and target
20#
21# The main rules to build the default "boot" image are in
22# build/core/dex_preopt_libart.mk
Brian Carlstrom16192862011-09-12 17:50:06 -070023
Nicolas Geoffray611e1db2014-10-09 17:34:45 +010024include art/build/Android.common_build.mk
Dave Allison70202782013-10-22 17:52:19 -070025
Andreas Gampe4d2ef332015-08-05 09:24:45 -070026LOCAL_DEX2OAT_HOST_INSTRUCTION_SET_FEATURES_OPTION :=
Ian Rogersd582fa42014-11-05 23:46:43 -080027ifeq ($(DEX2OAT_HOST_INSTRUCTION_SET_FEATURES),)
Andreas Gampe4d2ef332015-08-05 09:24:45 -070028 LOCAL_DEX2OAT_HOST_INSTRUCTION_SET_FEATURES_OPTION := --instruction-set-features=default
29else
30 LOCAL_DEX2OAT_HOST_INSTRUCTION_SET_FEATURES_OPTION := --instruction-set-features=$(DEX2OAT_HOST_INSTRUCTION_SET_FEATURES)
Ian Rogersd582fa42014-11-05 23:46:43 -080031endif
Andreas Gampe4d2ef332015-08-05 09:24:45 -070032LOCAL_$(HOST_2ND_ARCH_VAR_PREFIX)DEX2OAT_HOST_INSTRUCTION_SET_FEATURES_OPTION :=
Ian Rogersd582fa42014-11-05 23:46:43 -080033ifeq ($($(HOST_2ND_ARCH_VAR_PREFIX)DEX2OAT_HOST_INSTRUCTION_SET_FEATURES),)
Andreas Gampe4d2ef332015-08-05 09:24:45 -070034 LOCAL_$(HOST_2ND_ARCH_VAR_PREFIX)DEX2OAT_HOST_INSTRUCTION_SET_FEATURES_OPTION := --instruction-set-features=default
35else
36 LOCAL_$(HOST_2ND_ARCH_VAR_PREFIX)DEX2OAT_HOST_INSTRUCTION_SET_FEATURES_OPTION := --instruction-set-features=$($(HOST_2ND_ARCH_VAR_PREFIX)DEX2OAT_HOST_INSTRUCTION_SET_FEATURES)
Ian Rogersd582fa42014-11-05 23:46:43 -080037endif
38
Nicolas Geoffray1db132d2014-03-26 10:56:24 +000039# Use dex2oat debug version for better error reporting
Igor Murashkin7617abd2015-07-10 18:27:47 -070040# $(1): compiler - default, optimizing, jit, interpreter or interpreter-access-checks.
Andreas Gampec23c9c92014-10-28 14:47:25 -070041# $(2): pic/no-pic
42# $(3): 2ND_ or undefined, 2ND_ for 32-bit host builds.
Andreas Gampe088b16e2014-12-03 21:59:27 -080043# $(4): wrapper, e.g., valgrind.
44# $(5): dex2oat suffix, e.g, valgrind requires 32 right now.
Alex Light1ef4ce82014-08-27 11:13:47 -070045# NB depending on HOST_CORE_DEX_LOCATIONS so we are sure to have the dex files in frameworks for
46# run-test --no-image
Ian Rogersafd9acc2014-06-17 08:21:54 -070047define create-core-oat-host-rules
Andreas Gampe63fc30e2014-10-24 21:58:16 -070048 core_compile_options :=
49 core_image_name :=
50 core_oat_name :=
51 core_infix :=
Andreas Gampec23c9c92014-10-28 14:47:25 -070052 core_pic_infix :=
Nicolas Geoffraya136ab52014-10-31 10:48:25 +000053 core_dex2oat_dependency := $(DEX2OAT_DEPENDENCY)
Andreas Gampe63fc30e2014-10-24 21:58:16 -070054
Nicolas Geoffray5d672a62014-12-04 14:39:31 +000055 # With the optimizing compiler, we want to rerun dex2oat whenever there is
56 # a dex2oat change to catch regressions early.
57 ifeq ($(ART_USE_OPTIMIZING_COMPILER), true)
58 core_dex2oat_dependency := $(DEX2OAT)
Nicolas Geoffrayc9338b92014-12-03 13:36:10 +000059 endif
Nicolas Geoffray5d672a62014-12-04 14:39:31 +000060
Nicolas Geoffray6427df12014-12-17 12:34:15 +000061 ifeq ($(1),default)
62 core_compile_options += --compiler-backend=Quick
63 endif
Andreas Gampe63fc30e2014-10-24 21:58:16 -070064 ifeq ($(1),optimizing)
Nicolas Geoffraya136ab52014-10-31 10:48:25 +000065 core_compile_options += --compiler-backend=Optimizing
Nicolas Geoffraya136ab52014-10-31 10:48:25 +000066 core_dex2oat_dependency := $(DEX2OAT)
Andreas Gampe63fc30e2014-10-24 21:58:16 -070067 core_infix := -optimizing
68 endif
69 ifeq ($(1),interpreter)
70 core_compile_options += --compiler-filter=interpret-only
71 core_infix := -interpreter
72 endif
Andreas Gampe825570c2015-07-26 10:26:03 -070073 ifeq ($(1),interp-ac)
Igor Murashkin7617abd2015-07-10 18:27:47 -070074 core_compile_options += --compiler-filter=verify-at-runtime --runtime-arg -Xverify:softfail
Andreas Gampe825570c2015-07-26 10:26:03 -070075 core_infix := -interp-ac
Igor Murashkin7617abd2015-07-10 18:27:47 -070076 endif
Andreas Gampe63fc30e2014-10-24 21:58:16 -070077 ifeq ($(1),default)
78 # Default has no infix, no compile options.
79 endif
Andreas Gampe825570c2015-07-26 10:26:03 -070080 ifneq ($(filter-out default interpreter interp-ac jit optimizing,$(1)),)
Andreas Gampe63fc30e2014-10-24 21:58:16 -070081 #Technically this test is not precise, but hopefully good enough.
Igor Murashkin7617abd2015-07-10 18:27:47 -070082 $$(error found $(1) expected default, interpreter, interpreter-access-checks, jit or optimizing)
Andreas Gampe63fc30e2014-10-24 21:58:16 -070083 endif
Andreas Gampec23c9c92014-10-28 14:47:25 -070084
85 ifeq ($(2),pic)
86 core_compile_options += --compile-pic
87 core_pic_infix := -pic
88 endif
89 ifeq ($(2),no-pic)
90 # No change for non-pic
91 endif
92 ifneq ($(filter-out pic no-pic,$(2)),)
93 # Technically this test is not precise, but hopefully good enough.
94 $$(error found $(2) expected pic or no-pic)
95 endif
96
Andreas Gampe088b16e2014-12-03 21:59:27 -080097 core_image_name := $($(3)HOST_CORE_IMG_OUT_BASE)$$(core_infix)$$(core_pic_infix)$(4)$(CORE_IMG_SUFFIX)
98 core_oat_name := $($(3)HOST_CORE_OAT_OUT_BASE)$$(core_infix)$$(core_pic_infix)$(4)$(CORE_OAT_SUFFIX)
Andreas Gampe63fc30e2014-10-24 21:58:16 -070099
100 # Using the bitness suffix makes it easier to add as a dependency for the run-test mk.
Andreas Gampec23c9c92014-10-28 14:47:25 -0700101 ifeq ($(3),)
Andreas Gampe088b16e2014-12-03 21:59:27 -0800102 $(4)HOST_CORE_IMAGE_$(1)_$(2)_64 := $$(core_image_name)
Andreas Gampe63fc30e2014-10-24 21:58:16 -0700103 else
Andreas Gampe088b16e2014-12-03 21:59:27 -0800104 $(4)HOST_CORE_IMAGE_$(1)_$(2)_32 := $$(core_image_name)
Andreas Gampe63fc30e2014-10-24 21:58:16 -0700105 endif
Andreas Gampe088b16e2014-12-03 21:59:27 -0800106 $(4)HOST_CORE_IMG_OUTS += $$(core_image_name)
107 $(4)HOST_CORE_OAT_OUTS += $$(core_oat_name)
Andreas Gampe63fc30e2014-10-24 21:58:16 -0700108
Andreas Gampe088b16e2014-12-03 21:59:27 -0800109 # If we have a wrapper, make the target phony.
110 ifneq ($(4),)
111.PHONY: $$(core_image_name)
112 endif
Andreas Gampe63fc30e2014-10-24 21:58:16 -0700113$$(core_image_name): PRIVATE_CORE_COMPILE_OPTIONS := $$(core_compile_options)
114$$(core_image_name): PRIVATE_CORE_IMG_NAME := $$(core_image_name)
115$$(core_image_name): PRIVATE_CORE_OAT_NAME := $$(core_oat_name)
Nicolas Geoffraya136ab52014-10-31 10:48:25 +0000116$$(core_image_name): $$(HOST_CORE_DEX_LOCATIONS) $$(core_dex2oat_dependency)
Ian Rogersafd9acc2014-06-17 08:21:54 -0700117 @echo "host dex2oat: $$@ ($$?)"
118 @mkdir -p $$(dir $$@)
Andreas Gampe088b16e2014-12-03 21:59:27 -0800119 $$(hide) $(4) $$(DEX2OAT)$(5) --runtime-arg -Xms$(DEX2OAT_IMAGE_XMS) \
120 --runtime-arg -Xmx$(DEX2OAT_IMAGE_XMX) \
Ian Rogersafd9acc2014-06-17 08:21:54 -0700121 --image-classes=$$(PRELOADED_CLASSES) $$(addprefix --dex-file=,$$(HOST_CORE_DEX_FILES)) \
Andreas Gampe63fc30e2014-10-24 21:58:16 -0700122 $$(addprefix --dex-location=,$$(HOST_CORE_DEX_LOCATIONS)) --oat-file=$$(PRIVATE_CORE_OAT_NAME) \
123 --oat-location=$$(PRIVATE_CORE_OAT_NAME) --image=$$(PRIVATE_CORE_IMG_NAME) \
Andreas Gampec23c9c92014-10-28 14:47:25 -0700124 --base=$$(LIBART_IMG_HOST_BASE_ADDRESS) --instruction-set=$$($(3)ART_HOST_ARCH) \
Andreas Gampe4d2ef332015-08-05 09:24:45 -0700125 $$(LOCAL_$(3)DEX2OAT_HOST_INSTRUCTION_SET_FEATURES_OPTION) \
David Srbecky461d72a2015-06-11 01:27:56 +0100126 --host --android-root=$$(HOST_OUT) --include-patch-information --generate-debug-info \
Andreas Gampe63fc30e2014-10-24 21:58:16 -0700127 $$(PRIVATE_CORE_COMPILE_OPTIONS)
Brian Carlstrom27ec9612011-09-19 20:20:38 -0700128
Andreas Gampe63fc30e2014-10-24 21:58:16 -0700129$$(core_oat_name): $$(core_image_name)
Ian Rogersafd9acc2014-06-17 08:21:54 -0700130
Andreas Gampe63fc30e2014-10-24 21:58:16 -0700131 # Clean up locally used variables.
Nicolas Geoffraya136ab52014-10-31 10:48:25 +0000132 core_dex2oat_dependency :=
Andreas Gampe63fc30e2014-10-24 21:58:16 -0700133 core_compile_options :=
134 core_image_name :=
135 core_oat_name :=
136 core_infix :=
Andreas Gampec23c9c92014-10-28 14:47:25 -0700137 core_pic_infix :=
Ian Rogersafd9acc2014-06-17 08:21:54 -0700138endef # create-core-oat-host-rules
139
Igor Murashkin7617abd2015-07-10 18:27:47 -0700140# $(1): compiler - default, optimizing, jit, interpreter or interpreter-access-checks.
Andreas Gampe088b16e2014-12-03 21:59:27 -0800141# $(2): wrapper.
142# $(3): dex2oat suffix.
Andreas Gampec23c9c92014-10-28 14:47:25 -0700143define create-core-oat-host-rule-combination
Andreas Gampe088b16e2014-12-03 21:59:27 -0800144 $(call create-core-oat-host-rules,$(1),no-pic,,$(2),$(3))
145 $(call create-core-oat-host-rules,$(1),pic,,$(2),$(3))
Andreas Gampec23c9c92014-10-28 14:47:25 -0700146
147 ifneq ($(HOST_PREFER_32_BIT),true)
Andreas Gampe088b16e2014-12-03 21:59:27 -0800148 $(call create-core-oat-host-rules,$(1),no-pic,2ND_,$(2),$(3))
149 $(call create-core-oat-host-rules,$(1),pic,2ND_,$(2),$(3))
Andreas Gampec23c9c92014-10-28 14:47:25 -0700150 endif
151endef
152
Andreas Gampe088b16e2014-12-03 21:59:27 -0800153$(eval $(call create-core-oat-host-rule-combination,default,,))
154$(eval $(call create-core-oat-host-rule-combination,optimizing,,))
155$(eval $(call create-core-oat-host-rule-combination,interpreter,,))
Andreas Gampe825570c2015-07-26 10:26:03 -0700156$(eval $(call create-core-oat-host-rule-combination,interp-ac,,))
Andreas Gampec23c9c92014-10-28 14:47:25 -0700157
Andreas Gampe088b16e2014-12-03 21:59:27 -0800158valgrindHOST_CORE_IMG_OUTS :=
159valgrindHOST_CORE_OAT_OUTS :=
160$(eval $(call create-core-oat-host-rule-combination,default,valgrind,32))
161$(eval $(call create-core-oat-host-rule-combination,optimizing,valgrind,32))
162$(eval $(call create-core-oat-host-rule-combination,interpreter,valgrind,32))
Andreas Gampe825570c2015-07-26 10:26:03 -0700163$(eval $(call create-core-oat-host-rule-combination,interp-ac,valgrind,32))
Andreas Gampe088b16e2014-12-03 21:59:27 -0800164
165valgrind-test-art-host-dex2oat-host: $(valgrindHOST_CORE_IMG_OUTS)
Brian Carlstrom2b7cdf42011-10-13 11:18:28 -0700166
Ian Rogersafd9acc2014-06-17 08:21:54 -0700167define create-core-oat-target-rules
Andreas Gampe63fc30e2014-10-24 21:58:16 -0700168 core_compile_options :=
169 core_image_name :=
170 core_oat_name :=
171 core_infix :=
Andreas Gampec23c9c92014-10-28 14:47:25 -0700172 core_pic_infix :=
Nicolas Geoffraya136ab52014-10-31 10:48:25 +0000173 core_dex2oat_dependency := $(DEX2OAT_DEPENDENCY)
Andreas Gampe63fc30e2014-10-24 21:58:16 -0700174
Nicolas Geoffray5d672a62014-12-04 14:39:31 +0000175 # With the optimizing compiler, we want to rerun dex2oat whenever there is
176 # a dex2oat change to catch regressions early.
177 ifeq ($(ART_USE_OPTIMIZING_COMPILER), true)
178 core_dex2oat_dependency := $(DEX2OAT)
Nicolas Geoffrayc9338b92014-12-03 13:36:10 +0000179 endif
Nicolas Geoffray5d672a62014-12-04 14:39:31 +0000180
Nicolas Geoffray6427df12014-12-17 12:34:15 +0000181 ifeq ($(1),default)
182 core_compile_options += --compiler-backend=Quick
183 endif
Andreas Gampe63fc30e2014-10-24 21:58:16 -0700184 ifeq ($(1),optimizing)
Serban Constantinescu010cf912014-12-04 18:12:21 +0000185 core_compile_options += --compiler-backend=Optimizing
186 core_dex2oat_dependency := $(DEX2OAT)
Andreas Gampe63fc30e2014-10-24 21:58:16 -0700187 core_infix := -optimizing
188 endif
189 ifeq ($(1),interpreter)
190 core_compile_options += --compiler-filter=interpret-only
191 core_infix := -interpreter
192 endif
Andreas Gampe825570c2015-07-26 10:26:03 -0700193 ifeq ($(1),interp-ac)
Igor Murashkin7617abd2015-07-10 18:27:47 -0700194 core_compile_options += --compiler-filter=verify-at-runtime --runtime-arg -Xverify:softfail
Andreas Gampe825570c2015-07-26 10:26:03 -0700195 core_infix := -interp-ac
Igor Murashkin7617abd2015-07-10 18:27:47 -0700196 endif
Andreas Gampe63fc30e2014-10-24 21:58:16 -0700197 ifeq ($(1),default)
198 # Default has no infix, no compile options.
199 endif
Andreas Gampe825570c2015-07-26 10:26:03 -0700200 ifneq ($(filter-out default interpreter interp-ac jit optimizing,$(1)),)
Andreas Gampec23c9c92014-10-28 14:47:25 -0700201 # Technically this test is not precise, but hopefully good enough.
Igor Murashkin7617abd2015-07-10 18:27:47 -0700202 $$(error found $(1) expected default, interpreter, interpreter-access-checks, jit or optimizing)
Andreas Gampe63fc30e2014-10-24 21:58:16 -0700203 endif
Andreas Gampec23c9c92014-10-28 14:47:25 -0700204
205 ifeq ($(2),pic)
206 core_compile_options += --compile-pic
207 core_pic_infix := -pic
208 endif
209 ifeq ($(2),no-pic)
210 # No change for non-pic
211 endif
212 ifneq ($(filter-out pic no-pic,$(2)),)
213 #Technically this test is not precise, but hopefully good enough.
214 $$(error found $(2) expected pic or no-pic)
215 endif
216
Andreas Gampe088b16e2014-12-03 21:59:27 -0800217 core_image_name := $($(3)TARGET_CORE_IMG_OUT_BASE)$$(core_infix)$$(core_pic_infix)$(4)$(CORE_IMG_SUFFIX)
218 core_oat_name := $($(3)TARGET_CORE_OAT_OUT_BASE)$$(core_infix)$$(core_pic_infix)$(4)$(CORE_OAT_SUFFIX)
Andreas Gampe63fc30e2014-10-24 21:58:16 -0700219
220 # Using the bitness suffix makes it easier to add as a dependency for the run-test mk.
Andreas Gampec23c9c92014-10-28 14:47:25 -0700221 ifeq ($(3),)
222 ifdef TARGET_2ND_ARCH
Andreas Gampe088b16e2014-12-03 21:59:27 -0800223 $(4)TARGET_CORE_IMAGE_$(1)_$(2)_64 := $$(core_image_name)
Andreas Gampec23c9c92014-10-28 14:47:25 -0700224 else
Andreas Gampe088b16e2014-12-03 21:59:27 -0800225 $(4)TARGET_CORE_IMAGE_$(1)_$(2)_32 := $$(core_image_name)
Andreas Gampec23c9c92014-10-28 14:47:25 -0700226 endif
Andreas Gampe63fc30e2014-10-24 21:58:16 -0700227 else
Andreas Gampe088b16e2014-12-03 21:59:27 -0800228 $(4)TARGET_CORE_IMAGE_$(1)_$(2)_32 := $$(core_image_name)
Andreas Gampe63fc30e2014-10-24 21:58:16 -0700229 endif
Andreas Gampe088b16e2014-12-03 21:59:27 -0800230 $(4)TARGET_CORE_IMG_OUTS += $$(core_image_name)
231 $(4)TARGET_CORE_OAT_OUTS += $$(core_oat_name)
Andreas Gampe63fc30e2014-10-24 21:58:16 -0700232
Andreas Gampe088b16e2014-12-03 21:59:27 -0800233 # If we have a wrapper, make the target phony.
234 ifneq ($(4),)
235.PHONY: $$(core_image_name)
236 endif
Andreas Gampe63fc30e2014-10-24 21:58:16 -0700237$$(core_image_name): PRIVATE_CORE_COMPILE_OPTIONS := $$(core_compile_options)
238$$(core_image_name): PRIVATE_CORE_IMG_NAME := $$(core_image_name)
239$$(core_image_name): PRIVATE_CORE_OAT_NAME := $$(core_oat_name)
Nicolas Geoffraya136ab52014-10-31 10:48:25 +0000240$$(core_image_name): $$(TARGET_CORE_DEX_FILES) $$(core_dex2oat_dependency)
Andreas Gampeafbaa1a2014-03-25 18:09:32 -0700241 @echo "target dex2oat: $$@ ($$?)"
242 @mkdir -p $$(dir $$@)
Andreas Gampe088b16e2014-12-03 21:59:27 -0800243 $$(hide) $(4) $$(DEX2OAT)$(5) --runtime-arg -Xms$(DEX2OAT_IMAGE_XMS) \
244 --runtime-arg -Xmx$(DEX2OAT_IMAGE_XMX) \
Ian Rogersafd9acc2014-06-17 08:21:54 -0700245 --image-classes=$$(PRELOADED_CLASSES) $$(addprefix --dex-file=,$$(TARGET_CORE_DEX_FILES)) \
Andreas Gampe63fc30e2014-10-24 21:58:16 -0700246 $$(addprefix --dex-location=,$$(TARGET_CORE_DEX_LOCATIONS)) --oat-file=$$(PRIVATE_CORE_OAT_NAME) \
247 --oat-location=$$(PRIVATE_CORE_OAT_NAME) --image=$$(PRIVATE_CORE_IMG_NAME) \
Andreas Gampec23c9c92014-10-28 14:47:25 -0700248 --base=$$(LIBART_IMG_TARGET_BASE_ADDRESS) --instruction-set=$$($(3)TARGET_ARCH) \
Douglas Leung3d12ead2015-03-18 11:29:14 -0700249 --instruction-set-variant=$$($(3)DEX2OAT_TARGET_CPU_VARIANT) \
Ian Rogersd582fa42014-11-05 23:46:43 -0800250 --instruction-set-features=$$($(3)DEX2OAT_TARGET_INSTRUCTION_SET_FEATURES) \
David Srbecky461d72a2015-06-11 01:27:56 +0100251 --android-root=$$(PRODUCT_OUT)/system --include-patch-information --generate-debug-info \
Nicolas Geoffray130bd1b2014-11-03 16:23:48 +0000252 $$(PRIVATE_CORE_COMPILE_OPTIONS) || (rm $$(PRIVATE_CORE_OAT_NAME); exit 1)
Andreas Gampeafbaa1a2014-03-25 18:09:32 -0700253
Andreas Gampe63fc30e2014-10-24 21:58:16 -0700254$$(core_oat_name): $$(core_image_name)
Andreas Gampe2fe07922014-04-21 07:50:39 -0700255
Andreas Gampe63fc30e2014-10-24 21:58:16 -0700256 # Clean up locally used variables.
Nicolas Geoffraya136ab52014-10-31 10:48:25 +0000257 core_dex2oat_dependency :=
Andreas Gampe63fc30e2014-10-24 21:58:16 -0700258 core_compile_options :=
259 core_image_name :=
260 core_oat_name :=
261 core_infix :=
Andreas Gampec23c9c92014-10-28 14:47:25 -0700262 core_pic_infix :=
Ian Rogersafd9acc2014-06-17 08:21:54 -0700263endef # create-core-oat-target-rules
Andreas Gampeafbaa1a2014-03-25 18:09:32 -0700264
Igor Murashkin7617abd2015-07-10 18:27:47 -0700265# $(1): compiler - default, optimizing, jit, interpreter or interpreter-access-checks.
Andreas Gampe088b16e2014-12-03 21:59:27 -0800266# $(2): wrapper.
267# $(3): dex2oat suffix.
Andreas Gampec23c9c92014-10-28 14:47:25 -0700268define create-core-oat-target-rule-combination
Andreas Gampe088b16e2014-12-03 21:59:27 -0800269 $(call create-core-oat-target-rules,$(1),no-pic,,$(2),$(3))
270 $(call create-core-oat-target-rules,$(1),pic,,$(2),$(3))
Andreas Gampec23c9c92014-10-28 14:47:25 -0700271
272 ifdef TARGET_2ND_ARCH
Andreas Gampe088b16e2014-12-03 21:59:27 -0800273 $(call create-core-oat-target-rules,$(1),no-pic,2ND_,$(2),$(3))
274 $(call create-core-oat-target-rules,$(1),pic,2ND_,$(2),$(3))
Andreas Gampec23c9c92014-10-28 14:47:25 -0700275 endif
276endef
277
Andreas Gampe088b16e2014-12-03 21:59:27 -0800278$(eval $(call create-core-oat-target-rule-combination,default,,))
279$(eval $(call create-core-oat-target-rule-combination,optimizing,,))
280$(eval $(call create-core-oat-target-rule-combination,interpreter,,))
Andreas Gampe825570c2015-07-26 10:26:03 -0700281$(eval $(call create-core-oat-target-rule-combination,interp-ac,,))
Andreas Gampe088b16e2014-12-03 21:59:27 -0800282
283valgrindTARGET_CORE_IMG_OUTS :=
284valgrindTARGET_CORE_OAT_OUTS :=
285$(eval $(call create-core-oat-target-rule-combination,default,valgrind,32))
286$(eval $(call create-core-oat-target-rule-combination,optimizing,valgrind,32))
287$(eval $(call create-core-oat-target-rule-combination,interpreter,valgrind,32))
Andreas Gampe825570c2015-07-26 10:26:03 -0700288$(eval $(call create-core-oat-target-rule-combination,interp-ac,valgrind,32))
Andreas Gampe088b16e2014-12-03 21:59:27 -0800289
290valgrind-test-art-host-dex2oat-target: $(valgrindTARGET_CORE_IMG_OUTS)
291
292valgrind-test-art-host-dex2oat: valgrind-test-art-host-dex2oat-host valgrind-test-art-host-dex2oat-target