armbian-build/config/sources/pine64.conf
2017-01-25 16:36:46 +03:00

50 lines
1.3 KiB
Plaintext

source "${BASH_SOURCE%/*}/sunxi64_common.inc"
case $BRANCH in
default)
BOOTSOURCE='https://github.com/zador-blood-stained/u-boot-pine64-armbian.git'
BOOTDIR='u-boot-pine64'
BOOTBRANCH='branch:master'
BOOTSCRIPT='boot-pine64-default.cmd:boot.cmd'
BOOTENV_FILE='pine64-default.txt'
UBOOT_TARGET_MAP=';;u-boot-with-dtb.bin'
BOOTPATCHDIR='u-boot-pine64-default'
KERNELSOURCE='https://github.com/longsleep/linux-pine64.git'
KERNELBRANCH='branch:pine64-hacks-1.2'
KERNELDIR='linux-pine64'
GOVERNOR=interactive
INITRD_ARCH=arm
;;
dev)
UBOOT_TARGET_MAP='a64;;u-boot-sunxi-with-spl.bin'
BOOTENV_FILE='sun50iw1-next.txt'
KERNELSOURCE='https://github.com/apritzel/linux'
KERNELBRANCH='branch:sunxi64-4.9-testing'
KERNELDIR='linux-pine64-dev'
GOVERNOR=schedutil
;;
esac
CPUMIN=480000
CPUMAX=1200000
write_uboot_platform()
{
# default
[[ -f $1/u-boot-with-dtb.bin ]] && dd if=$1/u-boot-with-dtb.bin of=$2 bs=1k seek=8 conv=fsync > /dev/null 2>&1 || true
# mainline
[[ -f $1/u-boot-with-spl.bin ]] && dd if=$1/u-boot-with-spl.bin of=$2 bs=1k seek=8 conv=fsync > /dev/null 2>&1 || true
}
family_tweaks()
{
if [[ $BRANCH == default ]]; then
mkdir -p $CACHEDIR/$SDCARD/var/lib/alsa/
cp $SRC/lib/config/asound.state.pine64-default $CACHEDIR/$SDCARD/var/lib/alsa/asound.state
fi
}