引用第1楼hacker于2011-03-25 20:06发表的 :
在ANDROID根目录执行
. setenv
再到bluetoothd的目录执行
mmm ./
謝謝您的指點,我看了一下 setenv
會執行 build/envsetup.sh
這個 sh 會加入一些 function :
e ". build/envsetup.sh" from your shell to add the following functions to your environment:
- croot: Changes directory to the top of the tree.
- 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.
- cgrep: Greps on all local C/C++ files.
- jgrep: Greps on all local Java files.
- resgrep: Greps on all local res/*.xml files.
- godir: Go to the directory containing a file.
function mmm()
{
T=$(gettop)
if [ "$T" ]; then
local MAKEFILE=
local ARGS=
local DIR TO_CHOP
local DASH_ARGS=$(echo "$@" | awk -v RS=" " -v ORS=" " '/^-.*$/')
...
目前我的 root fs 還在編譯中,還沒有完成。因為我使用 VMWare, 所以比較慢。稍晚我在試試看您的方法。看看能不能成功。
謝謝您。