linux: linux-yocto: add rtw88 support

This change removes rtl8822 from nvidia-kernel-oot to switch to the
driver and firmware from linux-yocto and linux firmware. It includes
updates to tegra-wifi to pull in the needed packages to the image.

Signed-off-by: Kurt Kiefer <kekiefer@gmail.com>
This commit is contained in:
Kurt Kiefer
2024-08-27 09:35:43 -07:00
committed by Matt Madison
parent 9ba6b25333
commit 944504cd13
3 changed files with 11 additions and 2 deletions

View File

@@ -1,3 +1,5 @@
MACHINE_FEATURES += "wifi bluetooth"
MACHINE_EXTRA_RRECOMMENDS += "kernel-module-rtk-btusb kernel-module-rtl8822ce tegra-firmware-rtl8822"
LINUX_WIFI ?= "kernel-module-rtk-btusb kernel-module-rtw88-8822ce linux-firmware-rtl8822"
NVIDIA_WIFI ?= "kernel-module-rtk-btusb kernel-module-rtl8822ce tegra-firmware-rtl8822"
MACHINE_EXTRA_RRECOMMENDS += "${@'${NVIDIA_WIFI}' if d.getVar('PREFERRED_PROVIDER_virtual/kernel') == 'linux-jammy-nvidia-tegra' else '${LINUX_WIFI}'}"
TEGRA_BT_SUPPORT_PACKAGE ?= ""

View File

@@ -20,5 +20,5 @@ do_install() {
ALLOW_EMPTY:${PN} = "1"
FILES:${PN} += "${nonarch_base_libdir}/udev/rules.d"
RDEPENDS:${PN} += "nvidia-kernel-oot-wifi"
RRECOMMENDS:${PN} += "nvidia-kernel-oot-wifi"
PACKAGE_ARCH = "${MACHINE_ARCH}"

View File

@@ -0,0 +1,7 @@
CONFIG_RTW88=m
CONFIG_RTW88_CORE=m
CONFIG_RTW88_PCI=m
CONFIG_RTW88_8822C=m
CONFIG_RTW88_8822CE=m
# CONFIG_RTW88_DEBUG is not set
# CONFIG_RTW88_DEBUGFS is not set