mirror of
https://github.com/Fishwaldo/build.git
synced 2025-03-21 14:21:27 +00:00
Decrease indent in configuration.sh
This commit is contained in:
parent
e909503614
commit
5de6e2f164
1 changed files with 488 additions and 488 deletions
100
configuration.sh
100
configuration.sh
|
@ -25,38 +25,38 @@
|
|||
# build 6 = legacy and next and dev kernel
|
||||
|
||||
|
||||
# common options
|
||||
# common options
|
||||
|
||||
REVISION="5.04" # all boards have same revision
|
||||
ROOTPWD="1234" # Must be changed @first login
|
||||
MAINTAINER="Igor Pecovnik" # deb signature
|
||||
MAINTAINERMAIL="igor.pecovnik@****l.com" # deb signature
|
||||
SDSIZE="4000" # SD image size in MB
|
||||
TZDATA=`cat /etc/timezone` # Timezone for target is taken from host or defined here.
|
||||
USEALLCORES="yes" # Use all CPU cores for compiling
|
||||
SYSTEMD="no" # Enable or disable systemd on Jessie in debootstrap process
|
||||
OFFSET="1" # Bootloader space in MB (1 x 2048 = default)
|
||||
BOOTSIZE="0" # Mb size of boot partition
|
||||
EXIT_PATCHING_ERROR="" # exit patching if failed
|
||||
SERIALCON="ttyS0"
|
||||
MISC1="https://github.com/linux-sunxi/sunxi-tools.git" # Allwinner fex compiler / decompiler
|
||||
MISC1_DIR="sunxi-tools" # local directory
|
||||
MISC2="" # Reserved
|
||||
MISC2_DIR="" # local directory
|
||||
MISC3="https://github.com/dz0ny/rt8192cu" # Realtek drivers
|
||||
MISC3_DIR="rt8192cu" # local directory
|
||||
MISC4=""
|
||||
MISC4_DIR=""
|
||||
MISC5="https://github.com/hglm/a10disp/" # Display changer for Allwinner
|
||||
MISC5_DIR="sunxi-display-changer" # local directory
|
||||
MISC6="https://github.com/porjo/mt7601/" # Display changer for Allwinner
|
||||
MISC6_DIR="mt7601" # local directory
|
||||
REVISION="5.04" # all boards have same revision
|
||||
ROOTPWD="1234" # Must be changed @first login
|
||||
MAINTAINER="Igor Pecovnik" # deb signature
|
||||
MAINTAINERMAIL="igor.pecovnik@****l.com" # deb signature
|
||||
SDSIZE="4000" # SD image size in MB
|
||||
TZDATA=`cat /etc/timezone` # Timezone for target is taken from host or defined here.
|
||||
USEALLCORES="yes" # Use all CPU cores for compiling
|
||||
SYSTEMD="no" # Enable or disable systemd on Jessie in debootstrap process
|
||||
OFFSET="1" # Bootloader space in MB (1 x 2048 = default)
|
||||
BOOTSIZE="0" # Mb size of boot partition
|
||||
EXIT_PATCHING_ERROR="" # exit patching if failed
|
||||
SERIALCON="ttyS0"
|
||||
MISC1="https://github.com/linux-sunxi/sunxi-tools.git" # Allwinner fex compiler / decompiler
|
||||
MISC1_DIR="sunxi-tools" # local directory
|
||||
MISC2="" # Reserved
|
||||
MISC2_DIR="" # local directory
|
||||
MISC3="https://github.com/dz0ny/rt8192cu" # Realtek drivers
|
||||
MISC3_DIR="rt8192cu" # local directory
|
||||
MISC4=""
|
||||
MISC4_DIR=""
|
||||
MISC5="https://github.com/hglm/a10disp/" # Display changer for Allwinner
|
||||
MISC5_DIR="sunxi-display-changer" # local directory
|
||||
MISC6="https://github.com/porjo/mt7601/" # Display changer for Allwinner
|
||||
MISC6_DIR="mt7601" # local directory
|
||||
|
||||
|
||||
|
||||
# board configurations
|
||||
# board configurations
|
||||
|
||||
case $BOARD in
|
||||
case $BOARD in
|
||||
|
||||
cubieboard4)#disabled
|
||||
LINUXFAMILY="sun9i"
|
||||
|
@ -314,12 +314,12 @@
|
|||
*) echo "Board configuration not found"
|
||||
exit
|
||||
;;
|
||||
esac
|
||||
esac
|
||||
|
||||
|
||||
|
||||
# board family configurations
|
||||
case $LINUXFAMILY in
|
||||
# board family configurations
|
||||
case $LINUXFAMILY in
|
||||
|
||||
sun4i|sun5i|sun7i|sun8i|sun6i|sun9i)
|
||||
[[ -z $LINUXCONFIG && $BRANCH == "default" ]] && LINUXCONFIG="linux-"$LINUXFAMILY-"$BRANCH"
|
||||
|
@ -492,31 +492,31 @@
|
|||
*) echo "Defaults not found"
|
||||
exit
|
||||
;;
|
||||
esac
|
||||
esac
|
||||
|
||||
|
||||
# Let's set defalt data if not defined in board configuration above
|
||||
[[ -z $LINUXCONFIG ]] && LINUXCONFIG="linux-$LINUXFAMILY-$BRANCH"
|
||||
[[ -z $LINUXKERNEL ]] && eval LINUXKERNEL=\$KERNEL_${BRANCH^^}
|
||||
[[ -z $LINUXSOURCE ]] && eval LINUXSOURCE=\$KERNEL_${BRANCH^^}"_SOURCE"
|
||||
[[ -z $KERNELBRANCH ]] && eval KERNELBRANCH=\$KERNEL_${BRANCH^^}"_BRANCH"
|
||||
[[ -z $BOOTLOADER ]] && eval BOOTLOADER=\$UBOOT_${BRANCH^^}
|
||||
[[ -z $BOOTSOURCE ]] && eval BOOTSOURCE=\$UBOOT_${BRANCH^^}"_SOURCE"
|
||||
[[ -z $BOOTBRANCH ]] && eval BOOTBRANCH=\$UBOOT_${BRANCH^^}"_BRANCH"
|
||||
[[ -z $CPUMIN && $LINUXFAMILY == sun*i ]] && CPUMIN="480000" && CPUMAX="1010000" && GOVERNOR="interactive"
|
||||
[[ $BRANCH != "default" && $LINUXFAMILY == sun*i ]] && GOVERNOR="ondemand"
|
||||
[[ -z $CPUMIN && $LINUXFAMILY == odroidxu4 ]] && CPUMIN="600000" && CPUMAX="2000000" && GOVERNOR="conservative"
|
||||
[[ -z $CPUMIN && $LINUXFAMILY == cubox ]] && CPUMIN="396000" && CPUMAX="996000" && GOVERNOR="interactive"
|
||||
[[ -z $CPUMIN && $LINUXFAMILY == s500 ]] && CPUMIN="408000" && CPUMAX="1104000" && GOVERNOR="interactive"
|
||||
[[ -z $CPUMIN && $LINUXFAMILY == marvell ]] && CPUMIN="800000" && CPUMAX="1600000" && GOVERNOR="ondemand"
|
||||
[[ -z $CPUMIN && ($LINUXFAMILY == udoo || $LINUXFAMILY == neo ) ]] && CPUMIN="392000" && CPUMAX="996000" && GOVERNOR="interactive"
|
||||
[[ -z $GOVERNOR ]] && GOVERNOR="ondemand"
|
||||
# Let's set defalt data if not defined in board configuration above
|
||||
[[ -z $LINUXCONFIG ]] && LINUXCONFIG="linux-$LINUXFAMILY-$BRANCH"
|
||||
[[ -z $LINUXKERNEL ]] && eval LINUXKERNEL=\$KERNEL_${BRANCH^^}
|
||||
[[ -z $LINUXSOURCE ]] && eval LINUXSOURCE=\$KERNEL_${BRANCH^^}"_SOURCE"
|
||||
[[ -z $KERNELBRANCH ]] && eval KERNELBRANCH=\$KERNEL_${BRANCH^^}"_BRANCH"
|
||||
[[ -z $BOOTLOADER ]] && eval BOOTLOADER=\$UBOOT_${BRANCH^^}
|
||||
[[ -z $BOOTSOURCE ]] && eval BOOTSOURCE=\$UBOOT_${BRANCH^^}"_SOURCE"
|
||||
[[ -z $BOOTBRANCH ]] && eval BOOTBRANCH=\$UBOOT_${BRANCH^^}"_BRANCH"
|
||||
[[ -z $CPUMIN && $LINUXFAMILY == sun*i ]] && CPUMIN="480000" && CPUMAX="1010000" && GOVERNOR="interactive"
|
||||
[[ $BRANCH != "default" && $LINUXFAMILY == sun*i ]] && GOVERNOR="ondemand"
|
||||
[[ -z $CPUMIN && $LINUXFAMILY == odroidxu4 ]] && CPUMIN="600000" && CPUMAX="2000000" && GOVERNOR="conservative"
|
||||
[[ -z $CPUMIN && $LINUXFAMILY == cubox ]] && CPUMIN="396000" && CPUMAX="996000" && GOVERNOR="interactive"
|
||||
[[ -z $CPUMIN && $LINUXFAMILY == s500 ]] && CPUMIN="408000" && CPUMAX="1104000" && GOVERNOR="interactive"
|
||||
[[ -z $CPUMIN && $LINUXFAMILY == marvell ]] && CPUMIN="800000" && CPUMAX="1600000" && GOVERNOR="ondemand"
|
||||
[[ -z $CPUMIN && ($LINUXFAMILY == udoo || $LINUXFAMILY == neo ) ]] && CPUMIN="392000" && CPUMAX="996000" && GOVERNOR="interactive"
|
||||
[[ -z $GOVERNOR ]] && GOVERNOR="ondemand"
|
||||
|
||||
# For user override
|
||||
if [[ -f "$SRC/userpatches/lib.config" ]]; then
|
||||
# For user override
|
||||
if [[ -f "$SRC/userpatches/lib.config" ]]; then
|
||||
display_alert "Using user configuration override" "userpatches/lib.config" "info"
|
||||
source $SRC/userpatches/lib.config
|
||||
fi
|
||||
fi
|
||||
|
||||
# debug
|
||||
echo -e "Config: $LINUXCONFIG\nKernel source: $LINUXKERNEL\nBranch: $KERNELBRANCH" >> $DEST/debug/install.log
|
||||
|
|
Loading…
Add table
Reference in a new issue