forked from openkylin/platform_build
Merge "Walk up tree to find makefiles in mma" am: 5ccafd0f29
am: 8ff4ea8ada
Change-Id: Ic6b1fbdc277ea4776e75d2de83152c57161278bb
This commit is contained in:
commit
890ccba0c3
|
@ -886,8 +886,10 @@ function mma()
|
||||||
echo "Couldn't locate the top of the tree. Try setting TOP."
|
echo "Couldn't locate the top of the tree. Try setting TOP."
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
local MY_PWD=`PWD= /bin/pwd|sed 's:'$T'/::'`
|
local M=$(findmakefile)
|
||||||
local MODULES_IN_PATHS=MODULES-IN-$MY_PWD
|
# Remove the path to top as the makefilepath needs to be relative
|
||||||
|
local M=`echo $M|sed 's:'$T'/::'`
|
||||||
|
local MODULES_IN_PATHS=MODULES-IN-$(dirname ${M})
|
||||||
# Convert "/" to "-".
|
# Convert "/" to "-".
|
||||||
MODULES_IN_PATHS=${MODULES_IN_PATHS//\//-}
|
MODULES_IN_PATHS=${MODULES_IN_PATHS//\//-}
|
||||||
$DRV make -C $T -f build/core/main.mk $@ $MODULES_IN_PATHS
|
$DRV make -C $T -f build/core/main.mk $@ $MODULES_IN_PATHS
|
||||||
|
|
Loading…
Reference in New Issue