mirror of
https://github.com/DrHo1y/orangepi-build.git
synced 2026-11-24 19:12:45 +07:00
First Commit
This commit is contained in:
41
external/config/sources/families/sun50iw2.conf
vendored
Normal file
41
external/config/sources/families/sun50iw2.conf
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
ATF_PLAT="sun50i_a64"
|
||||
source "${BASH_SOURCE%/*}/include/sunxi64_common.inc"
|
||||
OVERLAY_PREFIX='sun50i-h5'
|
||||
[[ -z $CPUMIN ]] && CPUMIN=480000
|
||||
[[ -z $CPUMAX ]] && CPUMAX=1368000
|
||||
GOVERNOR=ondemand
|
||||
ASOUND_STATE='asound.state.sun50iw2-dev'
|
||||
|
||||
family_tweaks_s()
|
||||
{
|
||||
|
||||
if [[ -f $SDCARD/lib/systemd/system/ap6212-bluetooth.service ]]; then
|
||||
|
||||
# install and enable Bluetooth
|
||||
chroot $SDCARD /bin/bash -c "apt-get -y -qq install rfkill bluetooth bluez bluez-tools >/dev/null 2>&1"
|
||||
chroot $SDCARD /bin/bash -c "systemctl --no-reload enable ap6212-bluetooth.service >/dev/null 2>&1"
|
||||
fi
|
||||
|
||||
if [[ -f $SDCARD/lib/systemd/system/rtl8723bs-bluetooth.service ]]; then
|
||||
|
||||
# install and enable Bluetooth
|
||||
chroot $SDCARD /bin/bash -c "apt-get -y -qq install rfkill bluetooth bluez bluez-tools >/dev/null 2>&1"
|
||||
chroot $SDCARD /bin/bash -c "systemctl --no-reload enable rtl8723bs-bluetooth.service >/dev/null 2>&1"
|
||||
fi
|
||||
}
|
||||
|
||||
family_tweaks_bsp()
|
||||
{
|
||||
|
||||
if [[ $BOARD == orangepizeroplus2h5 ]]; then
|
||||
|
||||
install -m 755 $EXTER/packages/blobs/bt/brcm_patchram_plus/brcm_patchram_plus_$ARCH $destination/usr/bin/brcm_patchram_plus
|
||||
cp $EXTER/packages/bsp/sunxi/ap6212-bluetooth.service $destination/lib/systemd/system/
|
||||
fi
|
||||
|
||||
if [[ $BOARD == orangepiprime ]]; then
|
||||
|
||||
install -m 755 $EXTER/packages/blobs/bt/hciattach/rtk_hciattach_$ARCH $destination/usr/bin/rtk_hciattach
|
||||
cp $EXTER/packages/bsp/sunxi/rtl8723bs-bluetooth.service $destination/lib/systemd/system/
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user