aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitry Ivanov <dimitry@google.com>2016-08-22 13:17:03 -0700
committerDimitry Ivanov <dimitry@google.com>2016-08-25 15:30:58 -0700
commitff3686f90702377744f2ebb887cd34363f03a665 (patch)
treeb947ea0135ff9af769c66ab8ab7bc57ee04d1a0c
parent232946f5a985c6a615d64f6bb4adee2c14adf46b (diff)
downloadvalgrind-ff3686f90702377744f2ebb887cd34363f03a665.tar.gz
Use correct LOCAL_MODULE_TARGET_ARCH for x86_64
valgrind uses amd64 arch name where android build system uses x86_64. The build file has a substitute for that but that substitute was mistakenly used for LOCAL_MODULE_TARGET_ARCH which lead to omitted x86_64 binaries for target builds. Bug: http://b/30964325 Test: Build aosp_x86_64 and make sure amd64 binaries are present in Test: out/target/product/generic_x86_64/system/lib64/valgrind/ Change-Id: I6ede1948aaadeea6f01329cd007bcd62e5a4d19f
-rw-r--r--Android.build_one.mk4
-rw-r--r--Android.clean.mk3
2 files changed, 5 insertions, 2 deletions
diff --git a/Android.build_one.mk b/Android.build_one.mk
index cb5de0748..9ab3a2b60 100644
--- a/Android.build_one.mk
+++ b/Android.build_one.mk
@@ -18,9 +18,11 @@ LOCAL_ARM_MODE := arm
ifeq ($(vg_build_second_arch),true)
LOCAL_MULTILIB := 32
vg_local_arch := $(TARGET_2ND_ARCH)
+vg_local_android_arch := $(TARGET_2ND_ARCH)
else
LOCAL_MULTILIB := first
vg_local_arch := $(vg_arch)
+vg_local_android_arch := $(TARGET_ARCH)
endif
# TODO: This workaround is to avoid calling memset from VG(memset)
@@ -32,7 +34,7 @@ endif
LOCAL_MODULE := $(vg_local_module)-$(vg_local_arch)-linux
-LOCAL_MODULE_TARGET_ARCH := $(vg_local_arch)
+LOCAL_MODULE_TARGET_ARCH := $(vg_local_android_arch)
LOCAL_SRC_FILES := $(vg_local_src_files)
diff --git a/Android.clean.mk b/Android.clean.mk
index 31ae7f46e..ed0a053ce 100644
--- a/Android.clean.mk
+++ b/Android.clean.mk
@@ -12,7 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-
+vg_local_android_arch :=
+vg_local_arch :=
vg_local_module :=
vg_local_target :=
vg_local_module_class :=