2022-12-27 14:46:38 +08:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
2021-02-06 12:30:06 +08:00
|
|
|
#
|
2022-12-27 14:46:38 +08:00
|
|
|
# Copyright (C) 2021-2022 ImmortalWrt.org
|
2021-02-06 12:30:06 +08:00
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=rtl8188eu
|
2022-04-09 21:23:29 +08:00
|
|
|
PKG_RELEASE:=$(AUTORELEASE)
|
2021-02-06 12:30:06 +08:00
|
|
|
|
2021-03-23 09:26:58 +08:00
|
|
|
PKG_SOURCE_URL:=https://github.com/aircrack-ng/rtl8188eus.git
|
2021-02-06 12:30:06 +08:00
|
|
|
PKG_SOURCE_PROTO:=git
|
2022-12-27 14:46:38 +08:00
|
|
|
PKG_SOURCE_DATE:=2022-12-19
|
|
|
|
PKG_SOURCE_VERSION:=67be0af3736adc72fbf4f234c0d1d32afa8d5d06
|
|
|
|
PKG_MIRROR_HASH:=384ed3451242746c5fd544f8f10badc52b8dcce792fdd4c661516b6abb2fc91b
|
2021-02-06 12:30:06 +08:00
|
|
|
|
2021-03-23 09:26:58 +08:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
|
2021-02-06 12:30:06 +08:00
|
|
|
STAMP_CONFIGURED_DEPENDS := $(STAGING_DIR)/usr/include/mac80211-backport/backport/autoconf.h
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/kernel.mk
|
2021-03-23 09:26:58 +08:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2021-02-06 12:30:06 +08:00
|
|
|
|
|
|
|
define KernelPackage/rtl8188eu
|
|
|
|
SUBMENU:=Wireless Drivers
|
|
|
|
TITLE:=Realtek 8188EU(S)/8188ETV support
|
|
|
|
DEPENDS:=+kmod-cfg80211 +kmod-usb-core +@DRIVER_11N_SUPPORT
|
|
|
|
FILES:=$(PKG_BUILD_DIR)/rtl8188eu.ko
|
|
|
|
AUTOLOAD:=$(call AutoProbe,rtl8188eu)
|
|
|
|
endef
|
|
|
|
|
2022-12-27 14:46:38 +08:00
|
|
|
NOSTDINC_FLAGS:= \
|
2022-12-27 16:17:32 +08:00
|
|
|
$(KERNEL_NOSTDINC_FLAGS) \
|
2021-02-06 12:30:06 +08:00
|
|
|
-I$(PKG_BUILD_DIR) \
|
|
|
|
-I$(PKG_BUILD_DIR)/include \
|
2022-12-27 14:46:38 +08:00
|
|
|
-I$(PKG_BUILD_DIR)/platform \
|
2021-02-06 12:30:06 +08:00
|
|
|
-I$(STAGING_DIR)/usr/include/mac80211-backport \
|
|
|
|
-I$(STAGING_DIR)/usr/include/mac80211-backport/uapi \
|
|
|
|
-I$(STAGING_DIR)/usr/include/mac80211 \
|
|
|
|
-I$(STAGING_DIR)/usr/include/mac80211/uapi \
|
|
|
|
-include backport/autoconf.h \
|
|
|
|
-include backport/backport.h
|
|
|
|
|
2022-12-27 14:46:38 +08:00
|
|
|
NOSTDINC_FLAGS+= \
|
2021-02-06 12:30:06 +08:00
|
|
|
-DRTW_SINGLE_WIPHY \
|
|
|
|
-DRTW_USE_CFG80211_STA_EVENT \
|
|
|
|
-DCONFIG_IOCTL_CFG80211 \
|
2021-02-18 12:20:06 +08:00
|
|
|
-DCONFIG_CONCURRENT_MODE \
|
|
|
|
-DBUILD_OPENWRT
|
2021-02-06 12:30:06 +08:00
|
|
|
|
|
|
|
ifeq ($(CONFIG_BIG_ENDIAN),y)
|
2022-12-27 14:46:38 +08:00
|
|
|
NOSTDINC_FLAGS += -DCONFIG_BIG_ENDIAN
|
2021-02-06 12:30:06 +08:00
|
|
|
else
|
2022-12-27 14:46:38 +08:00
|
|
|
NOSTDINC_FLAGS += -DCONFIG_LITTLE_ENDIAN
|
2021-02-06 12:30:06 +08:00
|
|
|
endif
|
|
|
|
|
|
|
|
define Build/Compile
|
2022-12-27 14:46:38 +08:00
|
|
|
+$(KERNEL_MAKE) $(PKG_JOBS) \
|
|
|
|
M="$(PKG_BUILD_DIR)" \
|
|
|
|
NOSTDINC_FLAGS="$(NOSTDINC_FLAGS)" \
|
|
|
|
CONFIG_RTL8188EU=m \
|
|
|
|
USER_MODULE_NAME=rtl8188eu \
|
2021-02-06 12:30:06 +08:00
|
|
|
modules
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call KernelPackage,rtl8188eu))
|