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:
@@ -596,6 +596,8 @@ function mm()
|
|||||||
# Find the closest Android.mk file.
|
# Find the closest Android.mk file.
|
||||||
T=$(gettop)
|
T=$(gettop)
|
||||||
local M=$(findmakefile)
|
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
|
if [ ! "$T" ]; then
|
||||||
echo "Couldn't locate the top of the tree. Try setting TOP."
|
echo "Couldn't locate the top of the tree. Try setting TOP."
|
||||||
elif [ ! "$M" ]; then
|
elif [ ! "$M" ]; then
|
||||||
|
Reference in New Issue
Block a user