diff --git a/buildroot b/buildroot index ee56159464e..666868435d6 160000 --- a/buildroot +++ b/buildroot @@ -1 +1 @@ -Subproject commit ee56159464e03d78d671cdc344b619716edae8a7 +Subproject commit 666868435d660349bce3d50ab3f289ac6abed032 diff --git a/buildroot-external/Config.in b/buildroot-external/Config.in index 23e0db2f2f1..4aaf2bbc6eb 100644 --- a/buildroot-external/Config.in +++ b/buildroot-external/Config.in @@ -11,6 +11,7 @@ source "$BR2_EXTERNAL_HASSOS_PATH/package/qemu-guest-agent/Config.in" source "$BR2_EXTERNAL_HASSOS_PATH/package/rpi-eeprom/Config.in" source "$BR2_EXTERNAL_HASSOS_PATH/package/rpi-rf-mod/Config.in" source "$BR2_EXTERNAL_HASSOS_PATH/package/rtl88x2bu/Config.in" +source "$BR2_EXTERNAL_HASSOS_PATH/package/rtl8821cu/Config.in" source "$BR2_EXTERNAL_HASSOS_PATH/package/tempio/Config.in.host" source "$BR2_EXTERNAL_HASSOS_PATH/package/udisks2/Config.in" source "$BR2_EXTERNAL_HASSOS_PATH/package/xe-guest-utilities/Config.in" diff --git a/buildroot-external/configs/generic_aarch64_defconfig b/buildroot-external/configs/generic_aarch64_defconfig index 5e1de5ef71d..58b9cd0587a 100644 --- a/buildroot-external/configs/generic_aarch64_defconfig +++ b/buildroot-external/configs/generic_aarch64_defconfig @@ -117,5 +117,6 @@ BR2_PACKAGE_HASSIO_ARCH="aarch64" BR2_PACKAGE_HASSIO_MACHINE="qemuarm-64" BR2_PACKAGE_OS_AGENT=y BR2_PACKAGE_RPI_RF_MOD=y +BR2_PACKAGE_RTL8821CU=y BR2_PACKAGE_HOST_TEMPIO=y BR2_PACKAGE_UDISKS2=y diff --git a/buildroot-external/configs/generic_x86_64_defconfig b/buildroot-external/configs/generic_x86_64_defconfig index 8323fdb5a8d..741aa73e542 100644 --- a/buildroot-external/configs/generic_x86_64_defconfig +++ b/buildroot-external/configs/generic_x86_64_defconfig @@ -120,5 +120,6 @@ BR2_PACKAGE_HASSIO_MACHINE="generic-x86-64" BR2_PACKAGE_OS_AGENT=y BR2_PACKAGE_RPI_RF_MOD=y BR2_PACKAGE_RTL88X2BU=y +BR2_PACKAGE_RTL8821CU=y BR2_PACKAGE_HOST_TEMPIO=y BR2_PACKAGE_UDISKS2=y diff --git a/buildroot-external/configs/khadas_vim3_defconfig b/buildroot-external/configs/khadas_vim3_defconfig index 2fb58eec29b..8aa7f8a364e 100644 --- a/buildroot-external/configs/khadas_vim3_defconfig +++ b/buildroot-external/configs/khadas_vim3_defconfig @@ -111,5 +111,6 @@ BR2_PACKAGE_HASSIO_MACHINE="odroid-n2" BR2_PACKAGE_KHADAS_BOOT=y BR2_PACKAGE_OS_AGENT=y BR2_PACKAGE_RTL88X2BU=y +BR2_PACKAGE_RTL8821CU=y BR2_PACKAGE_HOST_TEMPIO=y BR2_PACKAGE_UDISKS2=y diff --git a/buildroot-external/configs/odroid_c2_defconfig b/buildroot-external/configs/odroid_c2_defconfig index fa8d9498bab..aaeede936be 100644 --- a/buildroot-external/configs/odroid_c2_defconfig +++ b/buildroot-external/configs/odroid_c2_defconfig @@ -113,5 +113,6 @@ BR2_PACKAGE_RPI_RF_MOD=y BR2_PACKAGE_RPI_RF_MOD_DTS=y BR2_PACKAGE_RPI_RF_MOD_DTS_ODROID-C2=y BR2_PACKAGE_RTL88X2BU=y +BR2_PACKAGE_RTL8821CU=y BR2_PACKAGE_HOST_TEMPIO=y BR2_PACKAGE_UDISKS2=y diff --git a/buildroot-external/configs/odroid_c4_defconfig b/buildroot-external/configs/odroid_c4_defconfig index 66c1f46b666..ebf0950f90c 100644 --- a/buildroot-external/configs/odroid_c4_defconfig +++ b/buildroot-external/configs/odroid_c4_defconfig @@ -112,5 +112,6 @@ BR2_PACKAGE_RPI_RF_MOD=y BR2_PACKAGE_RPI_RF_MOD_DTS=y BR2_PACKAGE_RPI_RF_MOD_DTS_ODROID-C4=y BR2_PACKAGE_RTL88X2BU=y +BR2_PACKAGE_RTL8821CU=y BR2_PACKAGE_HOST_TEMPIO=y BR2_PACKAGE_UDISKS2=y diff --git a/buildroot-external/configs/odroid_n2_defconfig b/buildroot-external/configs/odroid_n2_defconfig index 6bd382e278e..a75464a5683 100644 --- a/buildroot-external/configs/odroid_n2_defconfig +++ b/buildroot-external/configs/odroid_n2_defconfig @@ -114,5 +114,6 @@ BR2_PACKAGE_RPI_RF_MOD=y BR2_PACKAGE_RPI_RF_MOD_DTS=y BR2_PACKAGE_RPI_RF_MOD_DTS_ODROID-N2=y BR2_PACKAGE_RTL88X2BU=y +BR2_PACKAGE_RTL8821CU=y BR2_PACKAGE_HOST_TEMPIO=y BR2_PACKAGE_UDISKS2=y diff --git a/buildroot-external/configs/odroid_xu4_defconfig b/buildroot-external/configs/odroid_xu4_defconfig index 7807e18010f..9f4a7c7f6c6 100644 --- a/buildroot-external/configs/odroid_xu4_defconfig +++ b/buildroot-external/configs/odroid_xu4_defconfig @@ -114,5 +114,6 @@ BR2_PACKAGE_HASSIO_MACHINE="odroid-xu" BR2_PACKAGE_OS_AGENT=y BR2_PACKAGE_RPI_RF_MOD=y BR2_PACKAGE_RTL88X2BU=y +BR2_PACKAGE_RTL8821CU=y BR2_PACKAGE_HOST_TEMPIO=y BR2_PACKAGE_UDISKS2=y diff --git a/buildroot-external/configs/ova_defconfig b/buildroot-external/configs/ova_defconfig index 23e32652fec..86129911340 100644 --- a/buildroot-external/configs/ova_defconfig +++ b/buildroot-external/configs/ova_defconfig @@ -120,6 +120,7 @@ BR2_PACKAGE_OS_AGENT=y BR2_PACKAGE_QEMU_GUEST_AGENT=y BR2_PACKAGE_RPI_RF_MOD=y BR2_PACKAGE_RTL88X2BU=y +BR2_PACKAGE_RTL8821CU=y BR2_PACKAGE_HOST_TEMPIO=y BR2_PACKAGE_UDISKS2=y BR2_PACKAGE_XE_GUEST_UTILITIES=y diff --git a/buildroot-external/configs/rpi3_64_defconfig b/buildroot-external/configs/rpi3_64_defconfig index d50e371d1c5..58664eed417 100644 --- a/buildroot-external/configs/rpi3_64_defconfig +++ b/buildroot-external/configs/rpi3_64_defconfig @@ -117,5 +117,6 @@ BR2_PACKAGE_PI_BLUETOOTH=y BR2_PACKAGE_RPI_RF_MOD=y BR2_PACKAGE_RPI_RF_MOD_DTS=y BR2_PACKAGE_RTL88X2BU=y +BR2_PACKAGE_RTL8821CU=y BR2_PACKAGE_HOST_TEMPIO=y BR2_PACKAGE_UDISKS2=y diff --git a/buildroot-external/configs/rpi3_defconfig b/buildroot-external/configs/rpi3_defconfig index c74f812cea0..c1e05fad2f3 100644 --- a/buildroot-external/configs/rpi3_defconfig +++ b/buildroot-external/configs/rpi3_defconfig @@ -118,5 +118,6 @@ BR2_PACKAGE_PI_BLUETOOTH=y BR2_PACKAGE_RPI_RF_MOD=y BR2_PACKAGE_RPI_RF_MOD_DTS=y BR2_PACKAGE_RTL88X2BU=y +BR2_PACKAGE_RTL8821CU=y BR2_PACKAGE_HOST_TEMPIO=y BR2_PACKAGE_UDISKS2=y diff --git a/buildroot-external/configs/rpi4_64_defconfig b/buildroot-external/configs/rpi4_64_defconfig index 34a2e96a7a7..2b4328a8bb1 100644 --- a/buildroot-external/configs/rpi4_64_defconfig +++ b/buildroot-external/configs/rpi4_64_defconfig @@ -119,5 +119,6 @@ BR2_PACKAGE_PI_BLUETOOTH=y BR2_PACKAGE_RPI_RF_MOD=y BR2_PACKAGE_RPI_RF_MOD_DTS=y BR2_PACKAGE_RTL88X2BU=y +BR2_PACKAGE_RTL8821CU=y BR2_PACKAGE_HOST_TEMPIO=y BR2_PACKAGE_UDISKS2=y diff --git a/buildroot-external/configs/rpi4_defconfig b/buildroot-external/configs/rpi4_defconfig index 16fd36fd09c..872086df273 100644 --- a/buildroot-external/configs/rpi4_defconfig +++ b/buildroot-external/configs/rpi4_defconfig @@ -117,5 +117,6 @@ BR2_PACKAGE_PI_BLUETOOTH=y BR2_PACKAGE_RPI_RF_MOD=y BR2_PACKAGE_RPI_RF_MOD_DTS=y BR2_PACKAGE_RTL88X2BU=y +BR2_PACKAGE_RTL8821CU=y BR2_PACKAGE_HOST_TEMPIO=y BR2_PACKAGE_UDISKS2=y diff --git a/buildroot-external/package/rtl8821cu/0001-allow-arm-i386-external-control.patch b/buildroot-external/package/rtl8821cu/0001-allow-arm-i386-external-control.patch new file mode 100644 index 00000000000..3cfe2ea6c53 --- /dev/null +++ b/buildroot-external/package/rtl8821cu/0001-allow-arm-i386-external-control.patch @@ -0,0 +1,21 @@ +Makefile: expose platform variables + +Signed-off-by: s-ol + +diff --git a/Makefile b/Makefile +index 22bd0e0..72321a4 100755 +--- a/Makefile ++++ b/Makefile +@@ -96,9 +96,9 @@ + ###################### MP HW TX MODE FOR VHT ####################### + CONFIG_MP_VHT_HW_TX_MODE = n + ###################### Platform Related ####################### +-CONFIG_PLATFORM_I386_PC = y +-CONFIG_PLATFORM_ARM_RPI = n +-CONFIG_PLATFORM_ARM64_RPI = n ++CONFIG_PLATFORM_I386_PC ?= n ++CONFIG_PLATFORM_ARM_RPI ?= n ++CONFIG_PLATFORM_ARM64_RPI ?= n + CONFIG_PLATFORM_ANDROID_X86 = n + CONFIG_PLATFORM_ANDROID_INTEL_X86 = n + CONFIG_PLATFORM_JB_X86 = n diff --git a/buildroot-external/package/rtl8821cu/Config.in b/buildroot-external/package/rtl8821cu/Config.in new file mode 100644 index 00000000000..7b40e13ea94 --- /dev/null +++ b/buildroot-external/package/rtl8821cu/Config.in @@ -0,0 +1,5 @@ +config BR2_PACKAGE_RTL8821CU + tristate "Realtek 8821cu USB WiFi" + depends on BR2_LINUX_KERNEL + ---help--- + Driver for RTL8821CU USB WiFi adapters (no firmware needed). diff --git a/buildroot-external/package/rtl8821cu/rtl8821cu.mk b/buildroot-external/package/rtl8821cu/rtl8821cu.mk new file mode 100644 index 00000000000..d3a09d4b99d --- /dev/null +++ b/buildroot-external/package/rtl8821cu/rtl8821cu.mk @@ -0,0 +1,20 @@ +RTL8821CU_VERSION = 8c2226a74ae718439d56248bd2e44ccf717086d5 +RTL8821CU_SITE = $(call github,brektrou,rtl8821CU,$(RTL8821CU_VERSION)) +RTL8821CU_LICENSE = GPL-2.0 +RTL8821CU_LICENSE_FILES = LICENSE + +RTL8821CU_MODULE_MAKE_OPTS = \ + CONFIG_RTL8821CU=m \ + KVER=$(LINUX_VERSION_PROBED) \ + KBASE=$(LINUX_DIR) \ + CROSS_COMPILE=$(TARGET_CROSS) + +ifeq (arm, $(filter arm, $(KERNEL_ARCH))) +RTL8821CU_MODULE_MAKE_OPTS += CONFIG_PLATFORM_ARM_RPI=y +RTL8821CU_MODULE_MAKE_OPTS += CONFIG_PLATFORM_ARM64_RPI=y +else +RTL8821CU_MODULE_MAKE_OPTS += CONFIG_PLATFORM_I386_PC=y +endif + +$(eval $(kernel-module)) +$(eval $(generic-package))