-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvendorsetup.sh
73 lines (58 loc) · 1.51 KB
/
vendorsetup.sh
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
rompath=$(pwd)
if [ ! "${ag_vendor_path}" ]; then
SCRIPT_PATH=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
rompath="$(dirname "$SCRIPT_PATH")"
echo -e "SCRIPT_PATH: $SCRIPT_PATH"
echo -e "rompath: $rompath"
# rompath="$PWD"
ag_vendor_path="$SCRIPT_PATH"
export ag_vendor_path="$ag_vendor_path"
fi
function apply-x86-patches
{
vendor/${ag_vendor_path}/utils/autopatch.sh
}
function apply-x86-extras
{
vendor/${ag_vendor_path}/utils/ap_extras.sh
}
function apply-x86-kernel-patches()
{
vendor/${ag_vendor_path}/utils/ap_kernel.sh $1
}
function ag-menu()
{
bash vendor/${ag_vendor_path}/ag-menu-new.sh $1 $2 $3 $4
}
function ag-menu-l()
{
. vendor/${ag_vendor_path}/ag-menu-new.sh $1 $2 $3 $4
}
function manifest-backup
{
bash vendor/${ag_vendor_path}/scripts/manifest-backup/manifest-backup.sh
}
function get-cros-files-x86
{
echo "Setting up Proprietary environment for: $1"
lunch android_x86-userdebug
echo "Building proprietary tools... This might take a little..."
echo "Be prepared to enter root password in order to mount the cros images and unpack things"
cd vendor/google/chromeos-x86
./extract-files.sh
cd ..
cd ..
cd ..
}
function get-cros-files-x86_64
{
echo "Setting up Proprietary environment for: $1"
lunch android_x86_64-userdebug
echo "Building proprietary tools... This might take a little..."
echo "Be prepared to enter root password in order to mount the cros images and unpack things"
cd vendor/google/chromeos-x86
./extract-files.sh
cd ..
cd ..
cd ..
}