mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-10 11:09:57 +08:00
a2d8d47ddb
Also removed obsolete packages. (cherry picked from commit de9c37bc1b00fce6a91b9f84375c1c07f67e8528)
75 lines
1.8 KiB
Makefile
75 lines
1.8 KiB
Makefile
#
|
|
# Copyright (C) 2021 ImmortalWrt
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v3.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=rtl8192eu
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE_URL:=https://github.com/Mange/rtl8192eu-linux-driver.git
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_DATE:=2021-05-12
|
|
PKG_SOURCE_VERSION:=546419675335bb80d4548e22ccef915573a5a1e2
|
|
PKG_MIRROR_HASH:=a425a934d973aad20bc51ab2d1131bb81d2c6ebab687a029310e78cf9c81c4f3
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
STAMP_CONFIGURED_DEPENDS := $(STAGING_DIR)/usr/include/mac80211-backport/backport/autoconf.h
|
|
|
|
include $(INCLUDE_DIR)/kernel.mk
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define KernelPackage/rtl8192eu
|
|
SUBMENU:=Wireless Drivers
|
|
TITLE:=Realtek RTL8192EU support
|
|
DEPENDS:=+kmod-cfg80211 +kmod-usb-core +@DRIVER_11N_SUPPORT
|
|
FILES:=$(PKG_BUILD_DIR)/rtl8192eu.ko
|
|
AUTOLOAD:=$(call AutoProbe,rtl8192eu)
|
|
endef
|
|
|
|
NOSTDINC_FLAGS = \
|
|
-I$(PKG_BUILD_DIR) \
|
|
-I$(PKG_BUILD_DIR)/include \
|
|
-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
|
|
|
|
EXTRA_CFLAGS:= \
|
|
-DRTW_SINGLE_WIPHY \
|
|
-DRTW_USE_CFG80211_STA_EVENT \
|
|
-DCONFIG_IOCTL_CFG80211 \
|
|
-DCONFIG_CONCURRENT_MODE \
|
|
-DBUILD_OPENWRT
|
|
|
|
ifeq ($(CONFIG_BIG_ENDIAN),y)
|
|
EXTRA_CFLAGS += -DCONFIG_BIG_ENDIAN
|
|
else
|
|
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
|
|
endif
|
|
|
|
EXTRA_KCONFIG:= \
|
|
CONFIG_RTL8192EU=m \
|
|
USER_MODULE_NAME=rtl8192eu
|
|
|
|
MAKE_OPTS:= \
|
|
$(KERNEL_MAKE_FLAGS) \
|
|
M="$(PKG_BUILD_DIR)" \
|
|
NOSTDINC_FLAGS="$(NOSTDINC_FLAGS)" \
|
|
USER_EXTRA_CFLAGS="$(EXTRA_CFLAGS)" \
|
|
$(EXTRA_KCONFIG)
|
|
|
|
define Build/Compile
|
|
+$(MAKE) $(PKG_JOBS) -C "$(LINUX_DIR)" \
|
|
$(MAKE_OPTS) \
|
|
modules
|
|
endef
|
|
|
|
$(eval $(call KernelPackage,rtl8192eu))
|