aboutsummaryrefslogtreecommitdiffstats
path: root/envsetup.sh
diff options
context:
space:
mode:
authorYing Wang <wangying@google.com>2015-09-23 19:31:44 -0700
committerYing Wang <wangying@google.com>2015-09-23 19:31:44 -0700
commit2f9f1fb32f8e2320cbb515c82a3b471da4b6e848 (patch)
tree4ffe1e833fa4990efb71383cbe2c66dbeb0878a0 /envsetup.sh
parenta0af56f6989d250f290257967f64f640531472f5 (diff)
parent964f06b1782da73150d2f8953a41208898580061 (diff)
downloadplatform_build-2f9f1fb32f8e2320cbb515c82a3b471da4b6e848.tar.gz
platform_build-2f9f1fb32f8e2320cbb515c82a3b471da4b6e848.tar.bz2
platform_build-2f9f1fb32f8e2320cbb515c82a3b471da4b6e848.zip
resolved conflicts for 964f06b1 to stage-aosp-master
Change-Id: I0cebad2e440ec7d605afafac893352f06ca2f419
Diffstat (limited to 'envsetup.sh')
-rw-r--r--envsetup.sh20
1 files changed, 11 insertions, 9 deletions
diff --git a/envsetup.sh b/envsetup.sh
index 67b5229596..0f78786575 100644
--- a/envsetup.sh
+++ b/envsetup.sh
@@ -751,7 +751,7 @@ function mmm()
MAKEFILE="$MAKEFILE $MFILE"
else
case $DIR in
- showcommands | snod | dist | incrementaljavac | *=*) ARGS="$ARGS $DIR";;
+ showcommands | snod | dist | *=*) ARGS="$ARGS $DIR";;
GET-INSTALL-PATH) GET_INSTALL_PATH=$DIR;;
*) echo "No Android.mk in $DIR."; return 1;;
esac
@@ -780,7 +780,7 @@ function mma()
return 1
fi
local MY_PWD=`PWD= /bin/pwd|sed 's:'$T'/::'`
- $DRV make -C $T -f build/core/main.mk $@ all_modules BUILD_MODULES_IN_PATHS="$MY_PWD"
+ $DRV make -C $T -f build/core/main.mk $@ MODULES-IN/$MY_PWD
fi
}
@@ -798,23 +798,25 @@ function mmma()
MY_PWD=`echo $MY_PWD|sed 's:'$T'/::'`
fi
local DIR=
- local MODULE_PATHS=
+ local MODULES_IN_PATHS=
local ARGS=
for DIR in $DIRS ; do
if [ -d $DIR ]; then
- if [ "$MY_PWD" = "" ]; then
- MODULE_PATHS="$MODULE_PATHS $DIR"
- else
- MODULE_PATHS="$MODULE_PATHS $MY_PWD/$DIR"
+ # Remove the leading ./ and trailing / if any exists.
+ DIR=${DIR#./}
+ DIR=${DIR%/}
+ if [ "$MY_PWD" != "" ]; then
+ DIR=$MY_PWD/$DIR
fi
+ MODULES_IN_PATHS="$MODULES_IN_PATHS MODULES-IN/$DIR"
else
case $DIR in
- showcommands | snod | dist | incrementaljavac | *=*) ARGS="$ARGS $DIR";;
+ showcommands | snod | dist | *=*) ARGS="$ARGS $DIR";;
*) echo "Couldn't find directory $DIR"; return 1;;
esac
fi
done
- $DRV make -C $T -f build/core/main.mk $DASH_ARGS $ARGS all_modules BUILD_MODULES_IN_PATHS="$MODULE_PATHS"
+ $DRV make -C $T -f build/core/main.mk $DASH_ARGS $ARGS $MODULES_IN_PATHS
else
echo "Couldn't locate the top of the tree. Try setting TOP."
return 1