Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Add emulator-10 and remove all unused targets. (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
seinlin authored Apr 9, 2020
1 parent 7771750 commit 6c235f1
Showing 1 changed file with 4 additions and 216 deletions.
220 changes: 4 additions & 216 deletions config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ case `uname` in
exit -1
esac

GITREPO=${GITREPO:-"git://github.com/mozilla-b2g/b2g-manifest"}
GITREPO=${GITREPO:-"git://github.com/kaiostech/manifests"}
BRANCH=${BRANCH:-master}

while [ $# -ge 1 ]; do
Expand Down Expand Up @@ -75,228 +75,16 @@ echo GECKO_OBJDIR=$PWD/objdir-gecko >> .tmp-config
echo DEVICE_NAME=$1 >> .tmp-config

case "$1" in
"galaxy-s2")
echo DEVICE=galaxys2 >> .tmp-config &&
"emulator-10")
echo PRODUCT_NAME=aosp_arm >> .tmp-config &&
repo_sync $1
;;

"galaxy-nexus")
echo DEVICE=maguro >> .tmp-config &&
repo_sync $1
;;

"nexus-4")
echo DEVICE=mako >> .tmp-config &&
repo_sync nexus-4
;;

"nexus-4-kk")
echo DEVICE=mako >> .tmp-config &&
repo_sync nexus-4-kk
;;

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

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

"nexus-6-l")
echo DEVICE=shamu >> .tmp-config &&
echo PRODUCT_NAME=aosp_shamu >> .tmp-config &&
repo_sync nexus-6-l
;;

"nexusplayer-l")
echo DEVICE=fugu >> .tmp-config &&
echo PRODUCT_NAME=aosp_fugu >> .tmp-config &&
repo_sync nexusplayer-l
;;

"nexus-s")
echo DEVICE=crespo >> .tmp-config &&
repo_sync $1
;;

"nexus-s-4g")
echo DEVICE=crespo4g >> .tmp-config &&
repo_sync $1
;;

"otoro"|"unagi"|"keon"|"inari"|"hamachi"|"peak"|"helix"|"wasabi"|"flatfish")
echo DEVICE=$1 >> .tmp-config &&
repo_sync $1
;;

"flame"|"flame-kk"|"flame-l")
echo PRODUCT_NAME=flame >> .tmp-config &&
repo_sync $1
;;

"tarako")
echo DEVICE=sp6821a_gonk >> .tmp-config &&
echo PRODUCT_NAME=sp6821a_gonk >> .tmp-config &&
repo_sync $1
;;

"dolphin")
echo DEVICE=scx15_sp7715ga >> .tmp-config &&
echo PRODUCT_NAME=scx15_sp7715gaplus >> .tmp-config &&
repo_sync $1
;;

"dolphin-512")
echo DEVICE=scx15_sp7715ea >> .tmp-config &&
echo PRODUCT_NAME=scx15_sp7715eaplus >> .tmp-config &&
repo_sync $1
;;

"pandaboard")
echo DEVICE=panda >> .tmp-config &&
repo_sync $1
;;

"vixen")
echo DEVICE=vixen >> .tmp-config &&
echo PRODUCT_NAME=vixen >> .tmp-config &&
repo_sync $1
;;

"emulator"|"emulator-jb"|"emulator-kk"|"emulator-l")
echo DEVICE=generic >> .tmp-config &&
echo LUNCH=full-eng >> .tmp-config &&
repo_sync $1
;;

"emulator-x86"|"emulator-x86-jb"|"emulator-x86-kk"|"emulator-x86-l")
echo DEVICE=generic_x86 >> .tmp-config &&
echo LUNCH=full_x86-eng >> .tmp-config &&
repo_sync $1
;;

"flo")
echo DEVICE=flo >> .tmp-config &&
repo_sync $1
;;

"rpi")
echo PRODUCT_NAME=rpi >> .tmp-config &&
repo_sync $1
;;

"rpi2b-l")
echo PRODUCT_NAME=rpi2b >> .tmp-config &&
repo_sync $1
;;

"leo-kk")
echo PRODUCT_NAME=leo >> .tmp-config &&
repo_sync $1
;;

# We need aries-l with repo_sync $1 for using manifest symlink for releng stuff
"aries"|"aries-l")
echo PRODUCT_NAME=aries >> .tmp-config &&
repo_sync $1
;;

"fairphone2")
echo PRODUCT_NAME=FP2 >> .tmp-config &&
repo_sync $1
;;

"openc-fr")
echo DEVICE=zte_p821a10 >> .tmp-config &&
echo PRODUCT_NAME=zte_openc_fr >> .tmp-config &&
repo_sync $1
;;

"openc-ebay")
echo DEVICE=zte_p821a10 >> .tmp-config &&
echo PRODUCT_NAME=zte_openc_eu >> .tmp-config &&
repo_sync $1
;;

"leo-l"|"scorpion-l"|"sirius-l"|"castor-l"|"castor_windy-l"|"honami-l"|"amami-l"|"tianchi-l"|"flamingo-l"|"eagle-l"|"seagull-l")
echo PRODUCT_NAME=$1 | sed 's/..$//' >> .tmp-config &&
repo_sync sony-aosp-l
;;

"project-tablet")
echo PRODUCT_NAME=castor_windy >> .tmp-config &&
repo_sync project-tablet
;;

"project-tablet-lte")
echo PRODUCT_NAME=castor >> .tmp-config &&
repo_sync project-tablet
;;

*)
echo "Usage: $0 [-cdflnq] [-j <jobs>] [--force-sync] (device name)"
echo "Flags are passed through to |./repo sync|."
echo
echo Valid devices to configure are:
echo - galaxy-s2
echo - galaxy-nexus
echo - nexus-4
echo - nexus-4-kk
echo - nexus-5
echo - nexus-5-l
echo - nexus-6-l
echo - nexusplayer-l
echo - nexus-s
echo - nexus-s-4g
echo - flo "(Nexus 7 2013)"
echo - otoro
echo - unagi
echo - inari
echo - keon
echo - peak
echo - hamachi
echo - helix
echo - tarako
echo - dolphin
echo - dolphin-512
echo - pandaboard
echo - vixen
echo - fairphone2
echo - flatfish
echo - flame
echo - flame-kk
echo - flame-l
echo - openc-fr
echo - openc-ebay
echo - "> Raspberry Pi boards"
echo - rpi "(Revision B)"
echo - rpi2b-l
echo - emulator
echo - emulator-jb
echo - emulator-kk
echo - emulator-l
echo - emulator-x86
echo - emulator-x86-jb
echo - emulator-x86-kk
echo - emulator-x86-l
echo "> Sony Xperia devices"
echo - aries "(Z3 Compact KK)"
echo - aries-l "(Z3 Compact L)"
echo - leo-kk "(Z3 KK)"
echo - leo-l "(Z3 L)"
echo - scorpion-l "(Z3 Tablet Compact L)"
echo - sirius-l "(Z2 L)"
echo - castor-l "(Z2 L Tablet LTE/WiFi)"
echo - castor_windy-l "(Z2 L Tablet WiFi only)"
echo - honami-l "(Z1 L)"
echo - amami-l "(Z1 Compact L)"
echo - tianchi-l "(T2U L)"
echo - flamingo-l "(E3 L)"
echo - eagle-l "(M2 L)"
echo - seagull-l "(T3 L)"
echo - emulator-10
exit -1
;;
esac
Expand Down

0 comments on commit 6c235f1

Please sign in to comment.