mirror of
https://github.com/DrHo1y/orangepi-build.git
synced 2026-03-24 09:36:43 +07:00
Added code to initialize orangepilite2 and orangepi3 bluetooth
This commit is contained in:
54
external/config/sources/families/sun50iw6.conf
vendored
54
external/config/sources/families/sun50iw6.conf
vendored
@@ -7,24 +7,6 @@ GOVERNOR=ondemand
|
|||||||
ASOUND_STATE='asound.state.sun50iw2-dev'
|
ASOUND_STATE='asound.state.sun50iw2-dev'
|
||||||
|
|
||||||
case $BRANCH in
|
case $BRANCH in
|
||||||
other)
|
|
||||||
LINUXFAMILY=sun50iw6
|
|
||||||
KERNELBRANCH="branch:orange-pi-4.9-sun50iw6"
|
|
||||||
KERNELPATCHDIR=${BOARDFAMILY}-${BRANCH}
|
|
||||||
#BUILD_UIMAGE="yes"
|
|
||||||
|
|
||||||
#BOOTBRANCH='branch:v2020.04'
|
|
||||||
#UBOOT_TARGET_MAP=';;'
|
|
||||||
BOOTENV_FILE=sun50iw6-default.txt
|
|
||||||
BOOTSCRIPT='boot-sun50iw6.cmd:boot.cmd'
|
|
||||||
#PACK_UBOOT="yes"
|
|
||||||
|
|
||||||
#ATFSOURCE=""
|
|
||||||
#ATF_COMPILE="no"
|
|
||||||
|
|
||||||
#INITRD_ARCH=arm
|
|
||||||
;;
|
|
||||||
|
|
||||||
legacy)
|
legacy)
|
||||||
LINUXFAMILY=sun50iw6
|
LINUXFAMILY=sun50iw6
|
||||||
KERNELBRANCH="branch:orange-pi-4.9-sun50iw6"
|
KERNELBRANCH="branch:orange-pi-4.9-sun50iw6"
|
||||||
@@ -39,10 +21,42 @@ case $BRANCH in
|
|||||||
BOOTENV_FILE=sun50iw6-default.txt
|
BOOTENV_FILE=sun50iw6-default.txt
|
||||||
BOOTSCRIPT='boot-sun50iw6.cmd:boot.cmd'
|
BOOTSCRIPT='boot-sun50iw6.cmd:boot.cmd'
|
||||||
PACK_UBOOT="yes"
|
PACK_UBOOT="yes"
|
||||||
|
|
||||||
ATFSOURCE=""
|
ATFSOURCE=""
|
||||||
ATF_COMPILE="no"
|
ATF_COMPILE="no"
|
||||||
|
|
||||||
INITRD_ARCH=arm
|
INITRD_ARCH=arm
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
family_tweaks_s()
|
||||||
|
{
|
||||||
|
|
||||||
|
if [[ -f $SDCARD/lib/systemd/system/ap6256-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 ap6256-bluetooth.service >/dev/null 2>&1"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -f $SDCARD/lib/systemd/system/ap6255-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 ap6255-bluetooth.service >/dev/null 2>&1"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
family_tweaks_bsp()
|
||||||
|
{
|
||||||
|
|
||||||
|
if [[ $BOARD == orangepi3 ]]; 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/ap6256-bluetooth.service $destination/lib/systemd/system/
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ $BOARD == orangepilite2 ]]; 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/ap6255-bluetooth.service $destination/lib/systemd/system/
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user