Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f70c7e6a authored by JustArchi's avatar JustArchi Committed by Adnan Begovic
Browse files

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
parent 78202d93
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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 $?