2021-01-29 21:07:22 +08:00
|
|
|
#
|
2021-01-24 12:10:06 +08:00
|
|
|
# Copyright (C) 2020 stepheny
|
2021-02-18 12:20:06 +08:00
|
|
|
# <https://github.com/aircrack-ng/rtl8812au/pull/619>
|
2021-01-29 21:07:22 +08:00
|
|
|
#
|
2021-02-06 17:52:37 +08:00
|
|
|
# Copyright (C) 2021 ImmortalWrt
|
2021-03-01 22:13:52 +08:00
|
|
|
# <https://immortalwrt.org>
|
2021-02-01 20:12:06 +08:00
|
|
|
#
|
2021-01-29 21:07:22 +08:00
|
|
|
# This is free software, licensed under the GNU General Public License v3.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
2020-07-24 13:45:25 -04:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=rtl8812au-ac
|
2021-03-23 09:26:58 +08:00
|
|
|
PKG_RELEASE:=1
|
2020-07-24 13:45:25 -04:00
|
|
|
|
2021-03-23 09:26:58 +08:00
|
|
|
PKG_SOURCE_URL:=https://github.com/aircrack-ng/rtl8812au.git
|
2020-07-24 13:45:25 -04:00
|
|
|
PKG_SOURCE_PROTO:=git
|
2021-06-10 23:09:06 +08:00
|
|
|
PKG_SOURCE_DATE:=2021-05-22
|
|
|
|
PKG_SOURCE_VERSION:=0b87ed921a8682856aed5a3e68344b0087f3c93c
|
|
|
|
PKG_MIRROR_HASH:=f351622acacda52580d5983f5fa6130f625c80f9ee7500543ff8333d57ec3b74
|
2020-07-24 13:45:25 -04:00
|
|
|
|
2021-02-01 20:12:06 +08:00
|
|
|
PKG_LICENSE:=GPL-2.0
|
2020-12-29 11:28:06 +08:00
|
|
|
PKG_LICENSE_FILES:=LICENSE
|
2021-01-24 12:10:06 +08:00
|
|
|
PKG_MAINTAINER:=Marty Jones <mj8263788@gmail.com>
|
2021-02-01 20:12:06 +08:00
|
|
|
|
2021-03-23 09:26:58 +08:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
|
2020-07-24 13:45:25 -04: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
|
2020-07-24 13:45:25 -04:00
|
|
|
|
|
|
|
define KernelPackage/rtl8812au-ac
|
|
|
|
SUBMENU:=Wireless Drivers
|
2021-02-18 12:20:06 +08:00
|
|
|
TITLE:=Realtek RTL8812AU/21AU wireless drivers
|
2020-07-24 13:45:25 -04:00
|
|
|
DEPENDS:=+kmod-cfg80211 +kmod-usb-core +@DRIVER_11N_SUPPORT +@DRIVER_11AC_SUPPORT
|
2020-12-29 11:28:06 +08:00
|
|
|
FILES:=$(PKG_BUILD_DIR)/rtl8812au.ko
|
2020-07-24 13:45:25 -04:00
|
|
|
AUTOLOAD:=$(call AutoProbe,rtl8812au)
|
2021-02-18 12:20:06 +08:00
|
|
|
CONFLICTS:=kmod-rtl8812au-ct
|
2020-07-24 13:45:25 -04:00
|
|
|
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
|
|
|
|
|
2021-02-18 12:20:06 +08:00
|
|
|
EXTRA_KCONFIG:= \
|
|
|
|
CONFIG_88XXAU=m \
|
|
|
|
USER_MODULE_NAME=rtl8812au
|
|
|
|
|
|
|
|
EXTRA_CFLAGS:= \
|
|
|
|
-DRTW_SINGLE_WIPHY \
|
|
|
|
-DRTW_USE_CFG80211_STA_EVENT \
|
|
|
|
-DCONFIG_IOCTL_CFG80211 \
|
|
|
|
-DCONFIG_CONCURRENT_MODE \
|
2020-12-30 17:40:35 +08:00
|
|
|
-DBUILD_OPENWRT
|
2020-12-29 11:28:06 +08:00
|
|
|
|
2021-02-18 12:20:06 +08:00
|
|
|
ifeq ($(CONFIG_BIG_ENDIAN),y)
|
|
|
|
EXTRA_CFLAGS += -DCONFIG_BIG_ENDIAN
|
|
|
|
else
|
|
|
|
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
|
2020-07-24 13:45:25 -04:00
|
|
|
endif
|
|
|
|
|
2021-02-18 12:20:06 +08:00
|
|
|
MAKE_OPTS:= \
|
|
|
|
$(KERNEL_MAKE_FLAGS) \
|
|
|
|
M="$(PKG_BUILD_DIR)" \
|
|
|
|
NOSTDINC_FLAGS="$(NOSTDINC_FLAGS)" \
|
|
|
|
USER_EXTRA_CFLAGS="$(EXTRA_CFLAGS)" \
|
|
|
|
$(EXTRA_KCONFIG)
|
2020-07-24 13:45:25 -04:00
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
+$(MAKE) $(PKG_JOBS) -C "$(LINUX_DIR)" \
|
2021-02-18 12:20:06 +08:00
|
|
|
$(MAKE_OPTS) \
|
2020-07-24 13:45:25 -04:00
|
|
|
modules
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call KernelPackage,rtl8812au-ac))
|