2022-12-18 01:55:46 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# rtl8821cu
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2023-03-06 08:25:58 +01:00
|
|
|
RTL8821CU_VERSION = 69c903b75bde36293c66b25c051916a74dbadf58
|
|
|
|
RTL8821CU_SITE = $(call github,morrownr,8821cu-20210916,$(RTL8821CU_VERSION))
|
2022-12-18 01:55:46 +01:00
|
|
|
RTL8821CU_LICENSE = GPL-2.0
|
|
|
|
RTL8821CU_LICENSE_FILES = LICENSE
|
|
|
|
|
2023-01-14 01:31:22 +01:00
|
|
|
define RTL8821CU_LINUX_CONFIG_FIXUPS
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_NET)
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_WIRELESS)
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_CFG80211)
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_USB_SUPPORT)
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_USB)
|
|
|
|
endef
|
|
|
|
|
2022-12-18 01:55:46 +01:00
|
|
|
RTL8821CU_USER_EXTRA_CFLAGS = \
|
|
|
|
-DCONFIG_$(call qstrip,$(BR2_ENDIAN))_ENDIAN \
|
|
|
|
-DCONFIG_IOCTL_CFG80211 \
|
|
|
|
-DRTW_USE_CFG80211_STA_EVENT \
|
|
|
|
-Wno-error
|
|
|
|
|
|
|
|
RTL8821CU_MODULE_MAKE_OPTS = \
|
|
|
|
CONFIG_PLATFORM_GENERIC=n \
|
|
|
|
CONFIG_RTL8821CU=m \
|
|
|
|
KVER=$(LINUX_VERSION_PROBED) \
|
|
|
|
USER_EXTRA_CFLAGS="$(RTL8821CU_USER_EXTRA_CFLAGS)"
|
|
|
|
|
|
|
|
$(eval $(kernel-module))
|
|
|
|
$(eval $(generic-package))
|