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