rtl88x2bu/rtl8821cu: add packages
This commit is contained in:
parent
d786db597d
commit
39ec79d1a5
62
package/ctcgfw/rtl8821cu/Makefile
Normal file
62
package/ctcgfw/rtl8821cu/Makefile
Normal file
@ -0,0 +1,62 @@
|
||||
#
|
||||
# Copyright (C) 2008 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
include $(INCLUDE_DIR)/kernel.mk
|
||||
|
||||
PKG_NAME:=rtl8821cu
|
||||
PKG_VERSION:=20200302
|
||||
PKG_RELEASE:=1
|
||||
PKG_LICENSE:=GPLv3
|
||||
|
||||
PKG_SOURCE_URL:=https://github.com/brektrou/rtl8821CU.git
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_DATE:=2020-03-02
|
||||
PKG_SOURCE_VERSION:=ca0bcba405f8865e6acd6a6d3cacf93f7e1b8a2c
|
||||
PKG_MIRROR_HASH:=8fff72eea0e64dac4f6f1cbb174aed052ab37f87787e575b295daa15886f3b33
|
||||
|
||||
PKG_MAINTAINER:=[CTCGFW] Project OpenWrt
|
||||
PKG_BUILD_PARALLEL:=1
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define KernelPackage/rtl8821cu
|
||||
SUBMENU:=Wireless Drivers
|
||||
TITLE:=Realtek rtl8821cu Support
|
||||
DEPENDS:=@USB_SUPPORT +kmod-cfg80211 +kmod-mac80211 +kmod-usb-core +wireless-tools
|
||||
FILES:=$(PKG_BUILD_DIR)/rtl8821cu.ko
|
||||
AUTOLOAD:=$(call AutoProbe,rtl8821cu)
|
||||
PROVIDES:=kmod-rtl8821cu
|
||||
endef
|
||||
|
||||
define KernelPackage/rtl8821cu/description
|
||||
Kernel module for rtl8821cu wireless module.
|
||||
endef
|
||||
|
||||
EXTRA_KCONFIG:=\
|
||||
CONFIG_RTL8821CU=m \
|
||||
USER_MODULE_NAME=rtl8821du
|
||||
|
||||
EXTRA_CFLAGS:= \
|
||||
-DRTW_USE_CFG80211_STA_EVENT \
|
||||
-DCONFIG_RADIO_WORK \
|
||||
-DCONFIG_IOCTL_CFG80211 \
|
||||
-DCONFIG_CONCURRENT_MODE \
|
||||
|
||||
MAKE_OPTS:= \
|
||||
$(KERNEL_MAKE_FLAGS) \
|
||||
M="$(PKG_BUILD_DIR)" \
|
||||
USER_EXTRA_CFLAGS="$(EXTRA_CFLAGS)" \
|
||||
$(EXTRA_KCONFIG)
|
||||
|
||||
define Build/Compile
|
||||
$(MAKE) $(PKG_JOBS) -C "$(LINUX_DIR)" \
|
||||
$(MAKE_OPTS) \
|
||||
modules
|
||||
endef
|
||||
|
||||
$(eval $(call KernelPackage,rtl8821cu))
|
||||
@ -0,0 +1,19 @@
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 6a065bf..6e1c6d0 100755
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -1171,13 +1171,6 @@ endif
|
||||
|
||||
ifeq ($(CONFIG_MP_VHT_HW_TX_MODE), y)
|
||||
EXTRA_CFLAGS += -DCONFIG_MP_VHT_HW_TX_MODE
|
||||
-ifeq ($(CONFIG_PLATFORM_I386_PC), y)
|
||||
-## For I386 X86 ToolChain use Hardware FLOATING
|
||||
-EXTRA_CFLAGS += -mhard-float
|
||||
-else
|
||||
-## For ARM ToolChain use Hardware FLOATING
|
||||
-EXTRA_CFLAGS += -mfloat-abi=hard
|
||||
-endif
|
||||
endif
|
||||
|
||||
####START RASPBERRY PI SUPPORT
|
||||
|
||||
48
package/ctcgfw/rtl88x2bu/Makefile
Normal file
48
package/ctcgfw/rtl88x2bu/Makefile
Normal file
@ -0,0 +1,48 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=rtl88x2bu
|
||||
PKG_RELEASE=1
|
||||
|
||||
PKG_LICENSE:=GPLv2
|
||||
PKG_LICENSE_FILES:=
|
||||
|
||||
PKG_SOURCE_URL:=https://github.com/cilynx/rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959.git
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_DATE:=2019-09-23
|
||||
PKG_SOURCE_VERSION:=eece0638c546cd303da518c505cbe93513595030
|
||||
PKG_MIRROR_HASH:=0bff49dfab9c3a287a83802d631b2151ebecdc52da1f2407f763c75e64548cac
|
||||
|
||||
PKG_MAINTAINER:=ElonH <elonhhuang@gmail.com>
|
||||
PKG_BUILD_PARALLEL:=1
|
||||
|
||||
include $(INCLUDE_DIR)/kernel.mk
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define KernelPackage/rtl88x2bu
|
||||
SUBMENU:=Wireless Drivers
|
||||
TITLE:=Realtek 8812BU/8822BU support
|
||||
DEPENDS:=@USB_SUPPORT +kmod-cfg80211 +kmod-mac80211 +kmod-usb-core +wireless-tools +@DRIVER_11N_SUPPORT +@DRIVER_11AC_SUPPORT
|
||||
FILES:=$(PKG_BUILD_DIR)/rtl88x2bu.ko
|
||||
AUTOLOAD:=$(call AutoProbe,rtl88x2bu)
|
||||
PROVIDES:=kmod-rtl88x2bu
|
||||
endef
|
||||
|
||||
EXTRA_CFLAGS=-DCONFIG_IOCTL_CFG80211 -DRTW_USE_CFG80211_STA_EVENT -DCONFIG_RADIO_WORK -DCONFIG_CONCURRENT_MODE
|
||||
|
||||
# CONFIG_IOCTL_CFG80211: If kernel version is after 2.6.35, we recommend user to use the new nl80211 API.
|
||||
# RTW_USE_CFG80211_STA_EVENT:It is used for driver to indicate new cfg80211 STA event,
|
||||
# which is required by wpa_supplicant_8. Linux kernel supports this feature after kernel 3.2.
|
||||
# CONFIG_RADIO_WORK:It is used for driver to fit ‘radio work’ mechanism of wpa_supplicant_8_L & wpa_supplicant_8_M.
|
||||
# CONFIG_CONCURRENT_MODE:Realtek’s Linux Wi-Fi driver can support Station+AP and Station+P2P single channel concurrent mode.
|
||||
|
||||
define Build/Compile
|
||||
$(MAKE) $(PKG_JOBS) -C "$(LINUX_DIR)" \
|
||||
$(KERNEL_MAKE_FLAGS) \
|
||||
M="$(PKG_BUILD_DIR)" \
|
||||
USER_EXTRA_CFLAGS="$(EXTRA_CFLAGS)" \
|
||||
CONFIG_RTL8822BU=m \
|
||||
USER_MODULE_NAME=rtl88x2bu \
|
||||
modules
|
||||
endef
|
||||
|
||||
$(eval $(call KernelPackage,rtl88x2bu))
|
||||
Loading…
Reference in New Issue
Block a user