-
Notifications
You must be signed in to change notification settings - Fork 82
/
Copy pathboard_configs.sh
executable file
·64 lines (61 loc) · 1.28 KB
/
board_configs.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
#!/bin/bash -e
export ARCH=arm
export CROSS_COMPILE=arm-linux-gnueabihf-
BOARD=$1
DEFCONFIG=""
DTB=""
KERNELIMAGE=""
CHIP=""
UBOOT_DEFCONFIG=""
case ${BOARD} in
"rk3399-evb")
DEFCONFIG=rockchip_linux_defconfig
UBOOT_DEFCONFIG=evb-rk3399_defconfig
DTB=rk3399-sapphire-excavator-linux.dtb
export ARCH=arm64
export CROSS_COMPILE=aarch64-linux-gnu-
CHIP="rk3399"
;;
"rk3328-evb")
DEFCONFIG=rockchip_linux_defconfig
UBOOT_DEFCONFIG=evb-rk3328_defconfig
DTB=rk3328-evb.dtb
export ARCH=arm64
export CROSS_COMPILE=aarch64-linux-gnu-
CHIP="rk3328"
;;
"rk3288-evb")
DEFCONFIG=rockchip_linux_defconfig
UBOOT_DEFCONFIG=evb-rk3288_defconfig
DTB=rk3288-evb-act8846.dtb
CHIP="rk3288"
;;
"firefly")
DEFCONFIG=rockchip_linux_defconfig
UBOOT_DEFCONFIG=firefly-rk3288_defconfig
DTB=rk3288-firefly.dtb
CHIP="rk3288"
;;
"fennec")
DEFCONFIG=rockchip_linux_defconfig
UBOOT_DEFCONFIG=fennec-rk3288_defconfig
DTB=rk3288-fennec.dtb
CHIP="rk3288"
;;
"miniarm")
DEFCONFIG=rockchip_linux_defconfig
UBOOT_DEFCONFIG=tinker-rk3288_defconfig
DTB=rk3288-miniarm.dtb
CHIP="rk3288"
;;
"kylin")
DEFCONFIG=rockchip_linux_defconfig
UBOOT_DEFCONFIG=kylin-rk3036_defconfig
DTB=rk3036-kylin.dtb
CHIP="rk3036"
;;
*)
echo "board '${BOARD}' not supported!"
exit -1
;;
esac