mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
52 lines
1.8 KiB
Plaintext
52 lines
1.8 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=no
|
|
|
|
# GRUB and UEFI configuration
|
|
declare -g BOOTCONFIG="none" # Skip U-Boot completely
|
|
declare -g UEFI_GRUB_TERMINAL="gfxterm" # Use graphics terminal for GRUB
|
|
declare -g UEFI_GRUB_TIMEOUT=3 # GRUB menu timeout
|
|
declare -g SERIALCON="ttyS0" # Serial console for GRUB | TODO: Figure out if we can get Grub via HDMI too
|
|
declare -g BOARD_FIRMWARE_INSTALL="-full" # Install full firmware for UEFI support
|
|
|
|
# GRUB configuration with DTB support
|
|
declare -g GRUB_CMDLINE_LINUX_DEFAULT="console=ttyS0,921600 root=LABEL=armbi_root rootwait rootfstype=ext4 efi=noruntime"
|
|
|
|
# Kernel configuration
|
|
case $BRANCH in
|
|
|
|
collabora)
|
|
|
|
declare -g LINUXCONFIG="linux-genio-$BRANCH"
|
|
declare -g KERNEL_MAJOR_MINOR="6.14"
|
|
declare -g KERNELPATCHDIR='genio-1200-collabora'
|
|
declare -g KERNELSOURCE='https://gitlab.collabora.com/mediatek/aiot/linux.git'
|
|
declare -g KERNELBRANCH='branch:mediatek-next'
|
|
declare -g EXTRAWIFI="no"
|
|
declare -g INSTALL_HEADERS="yes"
|
|
;;
|
|
|
|
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}"
|