1# LOCAL_USE_VNDK is not the variable which set by module directly, but there are some modules do so. 2# Set those as LOCAL_IN_VENDOR to make those modules work as expected. 3ifeq (true,$(LOCAL_USE_VNDK)) 4 $(warning LOCAL_USE_VNDK must not be used. Please use LOCAL_VENDOR_MODULE or LOCAL_PRODUCT_MODULE instead.) 5 LOCAL_IN_VENDOR:=true 6endif 7 8# Set LOCAL_IN_VENDOR for modules going into vendor or odm partition and LOCAL_IN_PRODUCT for product 9# except for host modules. If LOCAL_SDK_VERSION is set, thats a more restrictive set, so they don't need 10# LOCAL_IN_VENDOR or LOCAL_IN_PRODUCT 11ifndef LOCAL_IS_HOST_MODULE 12ifndef LOCAL_SDK_VERSION 13 ifneq (,$(filter true,$(LOCAL_VENDOR_MODULE) $(LOCAL_ODM_MODULE) $(LOCAL_OEM_MODULE) $(LOCAL_PROPRIETARY_MODULE))) 14 LOCAL_IN_VENDOR:=true 15 # Note: no need to check LOCAL_MODULE_PATH* since LOCAL_[VENDOR|ODM|OEM]_MODULE is already 16 # set correctly before this is included. 17 endif 18 ifeq (true,$(LOCAL_PRODUCT_MODULE)) 19 LOCAL_IN_PRODUCT:=true 20 endif 21endif 22endif 23