summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Kohen <kohen.d@gmail.com>2011-02-06 20:29:33 +0200
committerDavid Kohen <kohen.d@gmail.com>2011-02-06 20:29:33 +0200
commit61848e4fbe8319229670c36b1315c0a879898361 (patch)
treed34977b01c03a84c22dd4ab3fa240b63a44525da
parentf63e0a5828b34ffc098dba8c796873f0e8631397 (diff)
downloadvendor_replicant-61848e4fbe8319229670c36b1315c0a879898361.zip
vendor_replicant-61848e4fbe8319229670c36b1315c0a879898361.tar.gz
vendor_replicant-61848e4fbe8319229670c36b1315c0a879898361.tar.bz2
Enable the creation of a debug bacon
Change-Id: I509e279a6bf31fd9749ccc6eb2a71b4312d7e764
-rwxr-xr-xtools/squisher6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/squisher b/tools/squisher
index d59b4bc..3e7b058 100755
--- a/tools/squisher
+++ b/tools/squisher
@@ -23,7 +23,11 @@ if [ -z "$OUT" -o ! -d "$OUT" ]; then
exit 1
fi
-OTAPACKAGE=$OUT/$TARGET_PRODUCT-ota-$TARGET_BUILD_VARIANT.$LOGNAME.zip
+if [ "$TARGET_BUILD_TYPE" = "debug" ]; then
+ OTAPACKAGE=$OUT/${TARGET_PRODUCT}_debug-ota-$TARGET_BUILD_VARIANT.$LOGNAME.zip
+else
+ OTAPACKAGE=$OUT/$TARGET_PRODUCT-ota-$TARGET_BUILD_VARIANT.$LOGNAME.zip
+fi
if [ ! -f "$OTAPACKAGE" ]; then
echo "$OTAPACKAGE doesn't exist!";
exit 1