From b40d9ece5fd468c7d867b3fb776ecfb5c5cbdd03 Mon Sep 17 00:00:00 2001 From: Dan Willemsen Date: Tue, 31 May 2016 13:59:38 -0700 Subject: [PATCH] Allow arm prebuilts for x86_arm builds But only for static and shared libraries -- we disable building other types of modules for arm, so don't support the prebuilts for them either. This is needed so that we can build these libraries under Soong, and expose them to Make using BUILD_PREBUILT. Bug: 27526885 Change-Id: I4f6ec922aed37591b6257b7022b81fb65d05b0fe --- core/prebuilt.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/prebuilt.mk b/core/prebuilt.mk index f1edc8ac0..7b8346795 100644 --- a/core/prebuilt.mk +++ b/core/prebuilt.mk @@ -13,7 +13,10 @@ else my_prefix := TARGET_ ifeq ($(TARGET_TRANSLATE_2ND_ARCH),true) - LOCAL_MULTILIB := first + # Only support prebuilt shared and static libraries for translated arch + ifeq ($(filter SHARED_LIBRARIES STATIC_LIBRARIES,$(LOCAL_MODULE_CLASS)),) + LOCAL_MULTILIB := first + endif endif endif