Enable the creation of a debug bacon
Change-Id: I509e279a6bf31fd9749ccc6eb2a71b4312d7e764
diff --git a/tools/squisher b/tools/squisher
index d59b4bc..3e7b058 100755
--- a/tools/squisher
+++ b/tools/squisher
@@ -23,7 +23,11 @@
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