diff options
author | JustArchi <JustArchi@JustArchi.net> | 2014-06-22 14:37:30 +0200 |
---|---|---|
committer | Adnan Begovic <adnan@cyngn.com> | 2015-10-06 16:34:17 -0700 |
commit | f70c7e6a13b9e936989e5112146a82c1487aa1ba (patch) | |
tree | 230045f819d1f364ec7e3c406180886e794e222e /envsetup.sh | |
parent | 78202d93cb0691f8adabfef967c4c38be01ed2ed (diff) | |
download | build-f70c7e6a13b9e936989e5112146a82c1487aa1ba.zip build-f70c7e6a13b9e936989e5112146a82c1487aa1ba.tar.gz build-f70c7e6a13b9e936989e5112146a82c1487aa1ba.tar.bz2 |
Build: Add support for specifying build variant in brunch/breakfast
This little modification allows specifying build variant in brunch/
breakfast commands. For example we can use "brunch i9300 user" to build
user variant instead of default userdebug.
When no extra argument is given, userdebug is default.
Change-Id: I935327252098ee74b34a815a023d2ac6b9a53a30
Diffstat (limited to 'envsetup.sh')
-rw-r--r-- | envsetup.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/envsetup.sh b/envsetup.sh index 29b69ab..cc41c2d 100644 --- a/envsetup.sh +++ b/envsetup.sh @@ -551,6 +551,7 @@ function brunch() function breakfast() { target=$1 + local variant=$2 CM_DEVICES_ONLY="true" unset LUNCH_MENU_CHOICES add_lunch_combo full-eng @@ -571,7 +572,10 @@ function breakfast() lunch $target else # This is probably just the CM model name - lunch cm_$target-userdebug + if [ -z "$variant" ]; then + variant="userdebug" + fi + lunch cm_$target-$variant fi fi return $? |