2014-05-17 01:38:43 +08:00
|
|
|
# Translate LOCAL_32_BIT_ONLY to LOCAL_MULTILIB,
|
2014-03-22 03:29:32 +08: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 07:00:23 +08:00
|
|
|
|
2014-03-22 03:29:32 +08:00
|
|
|
ifndef my_module_multilib
|
2014-04-12 07:00:23 +08:00
|
|
|
ifeq ($(LOCAL_32_BIT_ONLY),true)
|
2014-03-22 03:29:32 +08:00
|
|
|
my_module_multilib := 32
|
|
|
|
endif
|
|
|
|
else # my_module_multilib defined
|
2014-04-11 02:28:04 +08:00
|
|
|
ifeq (,$(filter 32 64 first both none,$(my_module_multilib)))
|
2014-03-22 03:29:32 +08:00
|
|
|
$(error $(LOCAL_PATH): Invalid LOCAL_MULTILIB specified for module $(LOCAL_MODULE))
|
|
|
|
endif
|
|
|
|
endif # my_module_multilib defined
|