armbian-build/config/sources/sun7i.conf
Igor Pečovnik e1d4c83ad6
G-serial cleanup (#1549)
* Initial commit for serial consoles rfc
* Board configuration cleanup + small tweaks
* Add serial gadget rename to dev kernel as well
* Cleanup, fixing permissions
* Cleanup board configs
2019-09-13 22:20:11 +02:00

63 lines
1.7 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'
;;
esac
CPUMIN=480000
family_tweaks_s()
{
if [[ $BOARD == olimex-som204-a20 ]]; then
if [[ $BRANCH != default ]]; then
# Enable bluetooth
chroot $SDCARD /bin/bash -c "apt-get -y -qq install rfkill bluetooth bluez bluez-tools"
chroot $SDCARD /bin/bash -c "systemctl --no-reload enable olinuxino-bluetooth.service >/dev/null 2>&1"
else
# Install touchscreen calibrator
[[ $BUILD_DESKTOP == yes ]] && chroot $SDCARD /bin/bash -c "apt-get -y -qq install xinput-calibrator >/dev/null 2>&1"
fi
fi
}
family_tweaks_bsp_s()
{
if [[ $BOARD == olimex-som204-a20 ]]; then
if [[ $BRANCH == default ]]; then
# Copy LCD ralated files
install -m 755 $SRC/packages/bsp/olinuxino/usr/sbin/devmem $destination/usr/sbin
install -m 755 $SRC/packages/bsp/olinuxino/usr/sbin/change-display $destination/usr/sbin
# Copy LCD-OLinuXino-15.6FHD service. Initially the service should be disabled
cp $SRC/packages/bsp/olinuxino/lib/systemd/system/olinuxino-lcd.service $destination/lib/systemd/system
else
# Copy bluetooth service
install -m 755 $SRC/packages/bsp/olinuxino/usr/bin/rtk_hciattach $destination/usr/bin
cp $SRC/packages/bsp/olinuxino/lib/systemd/system/olinuxino-bluetooth.service $destination/lib/systemd/system
if [[ $BRANCH == dev ]]; then
# Copy fbdev configuration
cp $SRC/packages/bsp/olinuxino/etc/X11/xorg.conf.d/02-olinuxino-hdmi-fbdev.conf $destination/etc/X11/xorg.conf.d/
fi
fi
fi
}