armbian-build/config/sources/sun7i.conf
zador-blood-stained bfa7134e12 Add overlay prefixes to sunxi boot script
Add overlay "fixup" scripts support
Rework sunxi boot script to use "prefix" env variable
2017-03-09 00:13:25 +03:00

47 lines
1.4 KiB
Plaintext

source "${BASH_SOURCE%/*}/sunxi_common.inc"
OVERLAY_PREFIX='sun7i-a20'
case $BRANCH in
default)
KERNELSOURCE='https://github.com/linux-sunxi/linux-sunxi'
KERNELBRANCH='branch:sunxi-3.4'
KERNELDIR='linux-sunxi'
CPUMAX=1010000
;;
next)
CPUMAX=960000
;;
dev)
KERNELSOURCE=$MAINLINE_KERNEL_SOURCE
KERNELBRANCH='branch:master'
KERNELDIR=$MAINLINE_KERNEL_DIR
CPUMAX=960000
;;
esac
CPUMIN=480000
family_tweaks()
{
# TODO: replace with udev rule
# default lirc configuration
sed -i '1i sed -i \x27s/DEVICE="\\/dev\\/input.*/DEVICE="\\/dev\\/input\\/\x27$str\x27"/g\x27 /etc/lirc/hardware.conf' \
$CACHEDIR/$SDCARD/etc/lirc/hardware.conf
sed -i '1i str=$(cat /proc/bus/input/devices | grep "H: Handlers=sysrq rfkill kbd event" | awk \x27{print $(NF)}\x27)' \
$CACHEDIR/$SDCARD/etc/lirc/hardware.conf
sed -i '1i # Cubietruck automatic lirc device detection by Igor Pecovnik' $CACHEDIR/$SDCARD/etc/lirc/hardware.conf
sed -e 's/DEVICE=""/DEVICE="\/dev\/input\/event1"/g' -i $CACHEDIR/$SDCARD/etc/lirc/hardware.conf
sed -e 's/DRIVER="UNCONFIGURED"/DRIVER="devinput"/g' -i $CACHEDIR/$SDCARD/etc/lirc/hardware.conf
cp $SRC/lib/config/lirc.conf.cubietruck $CACHEDIR/$SDCARD/etc/lirc/lircd.conf
if [[ $BRANCH == next ]]; then
mkdir -p $CACHEDIR/$SDCARD/var/lib/alsa/
cp $SRC/lib/config/asound.state.sunxi-next $CACHEDIR/$SDCARD/var/lib/alsa/asound.state
fi
}