Clarify multiarch warnings
* Show multiarch related warnings only if my_module_multilib is both Change-Id: If0c467c1d9b953bd3f40949ab4b97d9329ec021f
This commit is contained in:
parent
90a0edbc0b
commit
38bba065e0
|
@ -1,3 +1,12 @@
|
|||
my_prefix := TARGET_
|
||||
include $(BUILD_SYSTEM)/multilib.mk
|
||||
|
||||
ifndef my_module_multilib
|
||||
# libraries default to building for both architecturess
|
||||
my_module_multilib := both
|
||||
endif
|
||||
|
||||
ifeq ($(my_module_multilib),both)
|
||||
ifneq ($(LOCAL_MODULE_PATH),)
|
||||
ifneq ($(TARGET_2ND_ARCH),)
|
||||
$(warning $(LOCAL_MODULE): LOCAL_MODULE_PATH for shared libraries is unsupported in multiarch builds, use LOCAL_MODULE_RELATIVE_PATH instead)
|
||||
|
@ -9,14 +18,8 @@ ifneq ($(TARGET_2ND_ARCH),)
|
|||
$(warning $(LOCAL_MODULE): LOCAL_UNSTRIPPED_PATH for shared libraries is unsupported in multiarch builds)
|
||||
endif
|
||||
endif
|
||||
endif # my_module_multilib == both
|
||||
|
||||
my_prefix := TARGET_
|
||||
include $(BUILD_SYSTEM)/multilib.mk
|
||||
|
||||
ifndef my_module_multilib
|
||||
# libraries default to building for both architecturess
|
||||
my_module_multilib := both
|
||||
endif
|
||||
|
||||
LOCAL_2ND_ARCH_VAR_PREFIX :=
|
||||
include $(BUILD_SYSTEM)/module_arch_supported.mk
|
||||
|
|
Loading…
Reference in New Issue