2020-05-11 20:10:51 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# rtl8189es
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2022-04-10 23:22:09 +02:00
|
|
|
RTL8189ES_VERSION = 39c17661136da48f8e9c644194dce6a7f5076896
|
2020-05-11 20:10:51 +02:00
|
|
|
RTL8189ES_SITE = $(call github,jwrdegoede,rtl8189ES_linux,$(RTL8189ES_VERSION))
|
|
|
|
RTL8189ES_LICENSE = GPL-2.0
|
|
|
|
|
2022-09-28 21:28:02 +02:00
|
|
|
# Undefine the hardcoded CONFIG_LITTLE_ENDIAN
|
|
|
|
RTL8189ES_USER_EXTRA_CLAGS = -UCONFIG_LITTLE_ENDIAN
|
|
|
|
# Set endianness
|
|
|
|
RTL8189ES_USER_EXTRA_CLAGS += -DCONFIG_$(call qstrip,$(BR2_ENDIAN))_ENDIAN
|
|
|
|
|
2020-05-11 20:10:51 +02:00
|
|
|
RTL8189ES_MODULE_MAKE_OPTS = \
|
|
|
|
CONFIG_RTL8189ES=m \
|
|
|
|
KVER=$(LINUX_VERSION_PROBED) \
|
2022-09-28 21:28:02 +02:00
|
|
|
KSRC=$(LINUX_DIR) \
|
|
|
|
USER_EXTRA_CFLAGS="$(RTL8189ES_USER_EXTRA_CLAGS)"
|
2020-05-11 20:10:51 +02:00
|
|
|
|
2022-09-11 23:42:06 +02:00
|
|
|
define RTL8189ES_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_MMC)
|
|
|
|
endef
|
|
|
|
|
2020-05-11 20:10:51 +02:00
|
|
|
$(eval $(kernel-module))
|
|
|
|
$(eval $(generic-package))
|