mirror of
https://github.com/linux-sunxi/meta-sunxi.git
synced 2025-07-13 14:34:31 +02:00
ap6212: enable bluetooth support
This commit is contained in:
37
recipes-kernel/armbian-firmware/armbian-firmware_git.bb
Normal file
37
recipes-kernel/armbian-firmware/armbian-firmware_git.bb
Normal file
@ -0,0 +1,37 @@
|
||||
SUMMARY = "Armbian Firmware"
|
||||
DESCRIPTION = "Collection of firmware files necessary for Armbian supported hardware devices to work correctly with the Linux kernel"
|
||||
LICENSE = "CLOSED"
|
||||
|
||||
PV = "1.0+git"
|
||||
SRC_URI = "git://github.com/armbian/firmware.git;protocol=https;branch=master"
|
||||
SRCREV = "4050e02da2dce2b74c97101f7964ecfb962f5aec"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
inherit allarch
|
||||
|
||||
do_compile[noexec] = "1"
|
||||
|
||||
do_install() {
|
||||
# ap6212 (bluetooth firmware only, wifi firmware is provided by linux-firmware-bcm43430)
|
||||
install -d "${D}${nonarch_base_libdir}/firmware/ap6212"
|
||||
install -m 0644 "${S}/ap6212/bcm43438a1.hcd" "${D}${nonarch_base_libdir}/firmware/ap6212/"
|
||||
install -d "${D}${nonarch_base_libdir}/firmware/brcm"
|
||||
ln -sf ../ap6212/bcm43438a1.hcd "${D}${nonarch_base_libdir}/firmware/brcm/BCM43430A1.hcd"
|
||||
}
|
||||
|
||||
PACKAGES =+ " \
|
||||
${PN}-ap6212 \
|
||||
"
|
||||
|
||||
FILES:${PN}-ap6212 = " \
|
||||
${nonarch_base_libdir}/firmware/ap6212/* \
|
||||
${nonarch_base_libdir}/firmware/brcm/BCM43430A1.hcd \
|
||||
"
|
||||
|
||||
|
||||
# Make armbian-firmware depend on all of the split-out packages.
|
||||
python populate_packages:prepend () {
|
||||
firmware_pkgs = oe.utils.packages_filter_out_system(d)
|
||||
d.appendVar('RRECOMMENDS:armbian-firmware', ' ' + ' '.join(firmware_pkgs))
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
# SPDX-License-Identifier: MIT
|
||||
define KFEATURE_DESCRIPTION "AMPAK 6212(A) Wifi / Bluetooth module support"
|
||||
|
||||
include features/bluetooth/bluetooth-hciuart.scc
|
||||
include features/wifi/wifi-sdio.scc
|
@ -0,0 +1,9 @@
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
# Dependencies
|
||||
CONFIG_SERIAL_DEV_BUS=y
|
||||
CONFIG_SERIAL_DEV_CTRL_TTYPORT=y
|
||||
|
||||
CONFIG_BT_HCIUART=m
|
||||
CONFIG_BT_HCIUART_SERDEV=y
|
||||
CONFIG_BT_HCIUART_BCM=y
|
@ -0,0 +1,3 @@
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
kconf hardware bluetooth-hciuart.cfg
|
@ -0,0 +1,7 @@
|
||||
# SPDX-License-Identifier: MIT
|
||||
CONFIG_WLAN_VENDOR_BROADCOM=y
|
||||
|
||||
# brcm80211
|
||||
CONFIG_BRCMUTIL=m
|
||||
CONFIG_BRCMFMAC=m
|
||||
CONFIG_BRCMFMAC_SDIO=y
|
@ -0,0 +1,5 @@
|
||||
# SPDX-License-Identifier: MIT
|
||||
define KFEATURE_DESCRIPTION "Enable SDIO WiFi Drivers"
|
||||
define KFEATURE_COMPATIBILITY board
|
||||
|
||||
kconf hardware broadcom-sdio.cfg
|
Reference in New Issue
Block a user