aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZach Pfeffer <zach.pfeffer@linaro.org>2013-01-24 13:16:59 -0600
committerZach Pfeffer <zach.pfeffer@linaro.org>2013-01-24 13:16:59 -0600
commit5ec684db74cc09946aa8058372931ab9f71c1848 (patch)
tree6997e683be946cd1e484f22100747c7e8e023e98
parent827f9be52a2fdb96a1742d2548a6db4c52feff52 (diff)
downloadat-5ec684db74cc09946aa8058372931ab9f71c1848.tar.gz
tools: add an optional param to build to target a project
Signed-off-by: Zach Pfeffer <zach.pfeffer@linaro.org>
-rwxr-xr-xtools.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools.sh b/tools.sh
index ebb5966..5fbf937 100755
--- a/tools.sh
+++ b/tools.sh
@@ -143,7 +143,12 @@ function build() {
export ANDROID_64=true
. build/envsetup.sh
- make -j${CPUS} boottarball systemtarball userdatatarball
+
+ if [ -z "$1" ]; then
+ make -j${CPUS} boottarball systemtarball userdatatarball showcommands 2>&1 | tee build_log.txt
+ else
+ make -j${CPUS} $1 showcommands 2>&1 | tee build_log.txt
+ fi
}
export BUILD_DOC="just make boot stuff (rebuilds ramdisk.img)"