-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathenvsetup.sh
executable file
·44 lines (36 loc) · 1.18 KB
/
envsetup.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
#!/bin/bash
if [[ -z "${ANDROID_BUILD_TOP}" ]]; then
echo "AOSP env has not been setup, which is required for riscv test!!!"
exit 1
else
echo "ANDROID_BUILD_TOP:${ANDROID_BUILD_TOP}"
fi
PATH_BASE=$ANDROID_BUILD_TOP/test/test-riscv
echo "PATH_BASE:${PATH_BASE}"
export PATH_BASE
################################################################################
# Following PATH_* are all can be customized
################################################################################
PATH_QEMU_BIN=
if [[ -z "${PATH_QEMU_BIN}" ]]; then
echo "PATH_QEMU_BIN has not been setup, which is required for riscv test!!!"
exit 1
else
echo "PATH_QEMU_BIN:${PATH_QEMU_BIN}"
export PATH_QEMU_BIN
fi
PATH_GNUTOOLS_BIN=
if [[ -z "${PATH_GNUTOOLS_BIN}" ]]; then
echo "PATH_GNUTOOLS_BIN has not been setup, which is required for riscv test!!!"
exit 1
else
echo "PATH_GNUTOOLS_BIN:${PATH_GNUTOOLS_BIN}"
export PATH_GNUTOOLS_BIN
fi
PATH_KERNEL=$PATH_BASE/bin/kernel/Image
echo "PATH_KERNEL:${PATH_KERNEL}"
export PATH_KERNEL
PATH_ROOTFS_TEMPLATE=$PATH_BASE/bin/busybox/_install
echo "PATH_ROOTFS_TEMPLATE:${PATH_ROOTFS_TEMPLATE}"
export PATH_ROOTFS_TEMPLATE
export PATH="$PATH_QEMU_BIN:$PATH"