1 # Translate LOCAL_32_BIT_ONLY to LOCAL_MULTILIB, 2 # and check LOCAL_MULTILIB is a valid value. Returns module's multilib 3 # setting in my_module_multilib, or empty if not set. 4 5 my_module_multilib := $(strip $(LOCAL_MULTILIB)) 6 7 ifndef my_module_multilib 8 ifeq ($(LOCAL_32_BIT_ONLY),true) 9 my_module_multilib := 32 10 endif 11 else # my_module_multilib defined 12 ifeq (,$(filter 32 64 first both none,$(my_module_multilib))) 13 $(error $(LOCAL_PATH): Invalid LOCAL_MULTILIB specified for module $(LOCAL_MODULE)) 14 endif 15 endif # my_module_multilib defined 16