[blissify_cmd] Expand to allow variant
-u = userdebug (default)
-U = user
-e = eng
Change-Id: I2f14d8dd30b3bb0fd20f7c02868ed2f6c4b64d2a
diff --git a/build/envsetup.sh b/build/envsetup.sh
index 0a3b697..4df40b6 100644
--- a/build/envsetup.sh
+++ b/build/envsetup.sh
@@ -989,6 +989,19 @@
bash update.sh 1
cd $abt
;;
+ -u | --userdebug)
+ echo "Building userdebug variant"
+ TARGET_BUILD_VARIANT=userdebug
+ ;;
+ -U | --user)
+ echo "Building user variant"
+ TARGET_BUILD_VARIANT=user
+ ;;
+ -e | --eng)
+ echo "Building eng variant"
+ TARGET_BUILD_VARIANT=eng
+ ;;
+
# ...
@@ -1042,7 +1055,15 @@
return 0
fi
- breakfast $*
+ # Breakfast extension
+ if [ $TARGET_BUILD_VARIANT == "user" ];then
+ breakfast $* user
+ elif [ $TARGET_BUILD_VARIANT == "eng" ];then
+ breakfast $* eng
+ else
+ breakfast $*
+ fi
+
if [ $? -eq 0 ]; then
mka blissify
else