fatal: Not a git repository (or any of the parent directories): .git
make[1]: *** [stamp-commit-hash] Error 128
make[1]: Leaving directory `/android_source/gaia'
make: *** [gaia/profile.tar.gz] Error 2
make: *** Waiting for unfinished jobs.... android
緣由: 代碼目錄裏含有.git目錄 git
Solution: 既然source code是從其餘地方拷貝過來的完整代碼(非本身透過git下載),那就直接刪除source code下隱藏的.git 目錄(可能有多個)。 刪除.git目錄後,上述錯誤消失。 code