56 lines
1.2 KiB
Plaintext
56 lines
1.2 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'
|
|
KERNEL_USE_GCC='> 5.0'
|
|
|
|
CPUMAX=1010000
|
|
;;
|
|
|
|
next)
|
|
CPUMAX=960000
|
|
|
|
ASOUND_STATE='asound.state.sunxi-next'
|
|
;;
|
|
|
|
dev)
|
|
KERNELSOURCE=$MAINLINE_KERNEL_SOURCE
|
|
KERNELBRANCH='branch:master'
|
|
KERNELDIR=$MAINLINE_KERNEL_DIR
|
|
|
|
CPUMAX=960000
|
|
;;
|
|
esac
|
|
|
|
CPUMIN=480000
|
|
|
|
family_tweaks_s()
|
|
{
|
|
if [[ $BRANCH == dev && $BOARD == olimex-som204-a20 ]]; then
|
|
|
|
# Enable serial login on USB-OTG
|
|
mkdir -p $SDCARD/etc/systemd/system/serial-getty@ttyGS0.service.d
|
|
chroot $SDCARD /bin/bash -c "systemctl --no-reload enable serial-getty@ttyGS0.service > /dev/null 2>&1"
|
|
echo "ttyGS0" >> $SDCARD/etc/securetty
|
|
|
|
# Enable bluetooth
|
|
chroot $SDCARD /bin/bash -c "systemctl --no-reload enable olimex-bluetooth.service >/dev/null 2>&1"
|
|
fi
|
|
}
|
|
|
|
family_tweaks_bsp()
|
|
{
|
|
if [[ $BRANCH == default && $BOARD == olimex-som204-a20 ]]; then
|
|
|
|
# Copy bluetooth service
|
|
install -m 755 $SRC/packages/bsp/olinuxino/rtk_hciattach $destination/usr/bin
|
|
cp $SRC/packages/bsp/olinuxino/olinuxino-bluetooth.service $destination/lib/systemd/system
|
|
fi
|
|
}
|