65 lines
1.4 KiB
Plaintext
65 lines
1.4 KiB
Plaintext
HAS_UUID_SUPPORT=yes
|
|
|
|
if [[ $BOARD == helios4 ]]; then
|
|
source "${BASH_SOURCE%/*}/mvebu-helios4.inc"
|
|
BOOTENV_FILE='helios4-default.txt'
|
|
else
|
|
source "${BASH_SOURCE%/*}/mvebu-clearfog.inc"
|
|
BOOTENV_FILE='clearfog-default.txt'
|
|
fi
|
|
|
|
case $BRANCH in
|
|
default)
|
|
KERNELSOURCE='https://github.com/moonman/linux-stable'
|
|
KERNELBRANCH='branch:linux-4.4.y-marvell'
|
|
KERNELDIR='linux-armada-lts'
|
|
|
|
KERNEL_USE_GCC='> 5.0'
|
|
;;
|
|
|
|
next)
|
|
KERNELSOURCE=$MAINLINE_KERNEL_SOURCE
|
|
KERNELBRANCH='branch:linux-4.14.y'
|
|
KERNELDIR=$MAINLINE_KERNEL_DIR
|
|
|
|
KERNEL_USE_GCC='> 7.0'
|
|
;;
|
|
|
|
dev)
|
|
BOOTSOURCE=$MAINLINE_UBOOT_SOURCE
|
|
BOOTBRANCH='tag:v2018.01'
|
|
BOOTDIR=$MAINLINE_UBOOT_DIR
|
|
BOOTPATCHDIR='u-boot-mvebu-next'
|
|
BOOTSCRIPT='boot-mvebu-next.cmd:boot.cmd'
|
|
|
|
UBOOT_TARGET_MAP=";;u-boot-spl.kwb:u-boot.mmc"
|
|
UBOOT_USE_GCC='> 7.0'
|
|
|
|
OVERLAY_PREFIX='armada-388'
|
|
|
|
KERNELSOURCE='git://git.armlinux.org.uk/~rmk/linux-arm.git'
|
|
KERNELBRANCH='branch:clearfog'
|
|
KERNELDIR='linux-mvebu-dev'
|
|
# LINUXCONFIG='linux-mvebu-next'
|
|
|
|
KERNEL_USE_GCC='> 7.0'
|
|
;;
|
|
esac
|
|
|
|
CPUMIN=800000
|
|
CPUMAX=1600000
|
|
GOVERNOR=ondemand
|
|
|
|
write_uboot_platform()
|
|
{
|
|
dd if=$1/u-boot.mmc of=$2 bs=512 seek=1 status=noxfer > /dev/null 2>&1
|
|
}
|
|
|
|
family_tweaks()
|
|
{
|
|
# execute specific tweaks function if present
|
|
[[ $(type -t family_tweaks_s) == function ]] && family_tweaks_s
|
|
|
|
chroot $SDCARD /bin/bash -c "apt-get -y -qq remove --auto-remove linux-sound-base alsa-base alsa-utils bluez>/dev/null 2>&1"
|
|
}
|