The path where Local_module_class is used to make local_module_path. If the android.mk does not have a direct explicit local_module_path, the following rules are required to generate the BASE_RULES.MK automatically:
154 Local_module_path: = $ (Strip $ (local_module_path)) 155 ifeq ($ (Local_module_path),) 156 #LOCAL_MODULE_CLASS: = 157 Local_module_path: = $ ($ (My_prefix) out$ (Partition_tag) _$ (local_module_class)) 158 $ (Info *******////// $ (Local_module_path)) 159 ifeq ($ (Strip $ (Local_module_path)),) $ (Error $ (local_path): unhandled Local_ Module_class "$ (local_module_class)") 161 endif162 endif
In different android.mk files, for the module include () different compilation type options, such as the library or app,execut in the call to the corresponding processing of the Mk file, the default is to specify the value of the current Local_module_class, such as executables, shared_libraries and so on. So the android.mk you write does not show the value of the specified local_module_class.However, when you encounter a precompiled option that include $ (build_prebuilt), you do not specify the type class for the module module's compiled output, and you need to explicitly specify Local_module_class values in the android.mk you write, such as etc/ App, so that its value is non-null, which helps the system determine the path to the Local_module_path, such as the final compiled output Local_module_path: = $ (TARGRT_OUT_ETC).
Effect of Local_module_class on Local_module_path in android.mk