Skip to content

Commit

Permalink
Merge pull request andreasgal#311 from Seinlin/master
Browse files Browse the repository at this point in the history
Add nexus-5 support.
  • Loading branch information
michaelwu committed Jan 13, 2014
2 parents 4aabed6 + b967244 commit 0458ee4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@ case "$1" in
repo_sync nexus-4
;;

"nexus-5")
echo DEVICE=hammerhead >> .tmp-config &&
repo_sync nexus-5
;;

"optimus-l5")
echo DEVICE=m4 >> .tmp-config &&
repo_sync $1
Expand Down
5 changes: 3 additions & 2 deletions flash.sh
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ flash_fastboot()
"")
# helix doesn't support erase command in fastboot mode.
VERB="erase"
if [ "$DEVICE" == "mako" ] || [ "$DEVICE" == "flo" ]; then
if [ "$DEVICE" == "hammerhead" ] || [ "$DEVICE" == "mako" ] ||
[ "$DEVICE" == "flo" ]; then
VERB="format"
fi
if [ "$DEVICE" != "helix" ]; then
Expand Down Expand Up @@ -325,7 +326,7 @@ case "$DEVICE" in
flash_fastboot nounlock $PROJECT
;;

"panda"|"maguro"|"m4"|"crespo"|"crespo4g"|"mako"|"flo")
"panda"|"maguro"|"m4"|"crespo"|"crespo4g"|"mako"|"hammerhead"|"flo")
flash_fastboot unlock $PROJECT
;;

Expand Down

0 comments on commit 0458ee4

Please sign in to comment.