45 lines
1.5 KiB
Plaintext
45 lines
1.5 KiB
Plaintext
declare -g LINUXFAMILY=genio
|
|
declare -g OVERLAY_DIR="/boot/dtb/mediatek/overlay"
|
|
declare -g ARCH=arm64
|
|
declare -g GOVERNOR=performance
|
|
declare -g INSTALL_ARMBIAN_FIRMWARE=yes
|
|
|
|
# U-Boot bootscript configuration
|
|
declare -g BOOTCONFIG="none" # Skip U-Boot compilation
|
|
declare -g BOOTSCRIPT="boot-genio.cmd:boot.cmd" # Use custom boot script for Genio (compatible with U-Boot without itest/setexpr/bootz)
|
|
declare -g BOOTENV_FILE="genio.txt" # Boot environment template for armbianEnv.txt
|
|
|
|
# Kernel configuration
|
|
case $BRANCH in
|
|
|
|
collabora)
|
|
|
|
declare -g LINUXCONFIG="linux-genio-$BRANCH"
|
|
declare -g KERNEL_MAJOR_MINOR="6.19"
|
|
declare -g KERNELSOURCE='https://gitlab.collabora.com/mediatek/aiot/linux.git'
|
|
declare -g KERNELBRANCH='commit:b7e86fc6ee5313dc9ad6685b1ec8813c500ee464' # from 'branch:mediatek-next'
|
|
declare -g EXTRAWIFI="no"
|
|
;;
|
|
|
|
vendor)
|
|
|
|
declare -g LINUXCONFIG="linux-genio-vendor"
|
|
declare -g KERNEL_MAJOR_MINOR="5.15"
|
|
declare -g KERNELPATCHDIR='genio-1200-vendor'
|
|
declare -g KERNELSOURCE='https://git.launchpad.net/~canonical-kernel/ubuntu/+source/linux-mtk/+git/jammy'
|
|
declare -g KERNELBRANCH='branch:master-next'
|
|
declare -g EXTRAWIFI="no"
|
|
declare -g INSTALL_HEADERS="no" #Leads to build error bc custom ubuntu folder for oem drivers
|
|
|
|
family_tweaks() {
|
|
echo "blacklist snd-mixer-oss" > $SDCARD/etc/modprobe.d/blacklist-genio.conf
|
|
echo "blacklist snd-pcm-oss" >> $SDCARD/etc/modprobe.d/blacklist-genio.conf
|
|
}
|
|
;;
|
|
|
|
esac
|
|
|
|
# Version string control
|
|
declare -g KERNEL_SKIP_MAKEFILE_VERSION="yes"
|
|
declare -g LOCALVERSION="-${BRANCH}-${LINUXFAMILY}"
|