android的m mm mmm編譯命令的使用

2021-08-16 09:34:03 字數 677 閱讀 1041

android原始碼目錄下的build/envsetup.sh檔案,描述編譯的命令

- m:       makes from the top of the tree. 

- mm:      builds all of the modules in the current directory. 

- mmm:     builds all of the modules in the supplied directories. 

要想使用這些命令,首先需要在android原始碼根目錄執行. build/envsetup.sh 指令碼設定環境

m:編譯所有的模組 

mm:編譯當前目錄下的模組,當前目錄下要有android.mk檔案 

mmm:編譯指定路徑下的模組,指定路徑下要有android.mk檔案 

下面舉個例子說明,假設我要編譯android下的\hardware\libhardware_legacy\power模組,當前目錄為原始碼根目錄,方法如下: 

1、. build/envsetup.sh 

2、mmm hardware/libhardware_legacy/power/ 

或者 : 

1、. build/envsetup.sh 

2、cd hardware/libhardware_legacy/power/ 

3、mm 

android的m mm mmm編譯命令的使用

android原始碼目錄下的build envsetup.sh檔案,描述編譯的命令 m makes from the top of the tree.mm builds all of the modules in the current directory.mmm builds all of the...

android的m mm mmm編譯命令的使用

android原始碼目錄下的build envsetup.sh檔案,描述編譯的命令 m makes from the top of the tree.mm builds all of the modules in the current directory.mmm builds all of the...

android的m mm mmm編譯命令的使用

android原始碼目錄下的build envsetup.sh檔案,描述編譯的命令 m makes from the top of the tree.mm builds all of the modules in the current directory.mmm builds all of the...