-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathenvsetup-opi-zero.sh
executable file
·29 lines (25 loc) · 1.07 KB
/
envsetup-opi-zero.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
#!/bin/bash
# overlays=spi-add-cs1 spi-spidev
# param_spidev_spi_bus=0
# param_spidev_spi_cs=1
# user_overlays=st7735s
export MODNAME=st7735s
export PREFIX=sun50i-h5-
export ARCH=arm64
#export CROSS_COMPILE=${HOME}/toolchains/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-
export CROSS_COMPILE=${HOME}/toolchains/gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-
export KERNELDIR=${HOME}/MyProjects/MyServer/armbian/orange-pi-zero-plus-v5.4.85_x64/linux-mainline/orange-pi-5.4
export [email protected]
export MODULEDIR=/lib/modules/5.4.85-sunxi64/kernel/drivers/iio
export DTSDIR=$PWD/dtsi-opi-zero
export DTC_FLAGS='--symbols'
export DTBDIR=/boot/dtb/allwinner/overlay
echo -e "\t MODNAME \t = ${MODNAME}"
echo -e "\t PREFIX \t = ${PREFIX}"
echo -e "\t ARCH \t\t = ${ARCH}"
echo -e "\t CROSS_COMPILE \t = ${CROSS_COMPILE}"
echo -e "\t BUILD_KERNEL \t = ${KERNELDIR}"
echo -e "\t IP_BOARD \t = ${ADDR_BOARD}"
echo -e "\t MODULE_DIR \t = ${MODULEDIR}"
echo -e "\t DTS_DIR \t = ${DTSDIR}"
echo -e "\t DTB_DIR \t = ${DTBDIR}"