2014-05-16 19:38:43 +02:00
|
|
|
# Translate LOCAL_32_BIT_ONLY to LOCAL_MULTILIB,
|
2014-03-21 20:29:32 +01:00
|
|
|
# and check LOCAL_MULTILIB is a valid value. Returns module's multilib
|
|
|
|
# setting in my_module_multilib, or empty if not set.
|
|
|
|
|
|
|
|
my_module_multilib := $(strip $(LOCAL_MULTILIB))
|
2014-04-12 01:00:23 +02:00
|
|
|
|
2014-03-21 20:29:32 +01:00
|
|
|
ifndef my_module_multilib
|
2014-04-12 01:00:23 +02:00
|
|
|
ifeq ($(LOCAL_32_BIT_ONLY),true)
|
2014-03-21 20:29:32 +01:00
|
|
|
my_module_multilib := 32
|
|
|
|
endif
|
|
|
|
else # my_module_multilib defined
|
2014-04-10 20:28:04 +02:00
|
|
|
ifeq (,$(filter 32 64 first both none,$(my_module_multilib)))
|
2014-03-21 20:29:32 +01:00
|
|
|
$(error $(LOCAL_PATH): Invalid LOCAL_MULTILIB specified for module $(LOCAL_MODULE))
|
|
|
|
endif
|
|
|
|
endif # my_module_multilib defined
|