Fix LOCAL_PATH in mm builds so that overlays work

LOCAL_PATH is a relative path from TOP when making a full build.
This change makes that true for mm builds too.
This commit is contained in:
Robert Greenwalt 2009-07-15 15:07:44 -07:00
parent b606925ef9
commit 3c794d71b9
1 changed files with 2 additions and 0 deletions

View File

@ -596,6 +596,8 @@ function mm()
# Find the closest Android.mk file.
T=$(gettop)
local M=$(findmakefile)
# Remove the path to top as the makefilepath needs to be relative
local M=`echo $M|sed 's:'$T'/::'`
if [ ! "$T" ]; then
echo "Couldn't locate the top of the tree. Try setting TOP."
elif [ ! "$M" ]; then