blob: a3ced65d2c1891c63843c1786b6dbe1a99799bc9 [file] [log] [blame]
Ying Wang34d5f1b2014-05-16 10:38:43 -07001# Translate LOCAL_32_BIT_ONLY to LOCAL_MULTILIB,
Colin Crosse6e48f62014-03-21 12:29:32 -07002# and check LOCAL_MULTILIB is a valid value. Returns module's multilib
3# setting in my_module_multilib, or empty if not set.
4
5my_module_multilib := $(strip $(LOCAL_MULTILIB))
Colin Cross149d65b2014-04-11 16:00:23 -07006
Colin Crosse6e48f62014-03-21 12:29:32 -07007ifndef my_module_multilib
Colin Cross149d65b2014-04-11 16:00:23 -07008ifeq ($(LOCAL_32_BIT_ONLY),true)
Colin Crosse6e48f62014-03-21 12:29:32 -07009my_module_multilib := 32
10endif
Colin Crosse6e48f62014-03-21 12:29:32 -070011else # my_module_multilib defined
Colin Crossdc1c95a2014-04-10 11:28:04 -070012ifeq (,$(filter 32 64 first both none,$(my_module_multilib)))
Colin Crosse6e48f62014-03-21 12:29:32 -070013$(error $(LOCAL_PATH): Invalid LOCAL_MULTILIB specified for module $(LOCAL_MODULE))
14endif
15endif # my_module_multilib defined