-
-
Notifications
You must be signed in to change notification settings - Fork 53
Expand file tree
/
Copy pathbuild-releases
More file actions
executable file
·28 lines (25 loc) · 868 Bytes
/
build-releases
File metadata and controls
executable file
·28 lines (25 loc) · 868 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
source build/envsetup.sh
if [[ $HOSTNAME == granite ]]; then
readonly devices=(stallion frankel caiman shiba cheetah oriole)
elif [[ $HOSTNAME = raphael ]]; then
readonly devices=(rango tegu tokay felix panther)
elif [[ $HOSTNAME = raptor ]]; then
readonly devices=(mustang comet akita tangorpro bluejay)
elif [[ $HOSTNAME = vermeer ]]; then
readonly devices=(blazer komodo husky lynx raven)
else
echo invalid hostname >&2
exit 1
fi
for device in ${devices[@]}; do
rm -rf out || exit 1
lunch $device-cur-user || exit 1
if [[ $device = @(bluejay|raven|oriole) ]]; then
m vendorbootimage target-files-package otatools-package || exit 1
else
m vendorbootimage vendorkernelbootimage target-files-package otatools-package || exit 1
fi
script/finalize.sh || exit 1
rm -rf out || exit 1
done