mirror of
https://github.com/Ysurac/openmptcprouter.git
synced 2025-03-09 15:40:20 +00:00
Create Makefile
This commit is contained in:
parent
9dc2454cdb
commit
0a49db8438
1 changed files with 54 additions and 0 deletions
54
root/package/kernel/rtl8812au-ct/Makefile
Normal file
54
root/package/kernel/rtl8812au-ct/Makefile
Normal file
|
@ -0,0 +1,54 @@
|
||||||
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
|
PKG_NAME:=rtl8812au-ct
|
||||||
|
PKG_RELEASE=1
|
||||||
|
|
||||||
|
PKG_LICENSE:=GPLv2
|
||||||
|
PKG_LICENSE_FILES:=
|
||||||
|
|
||||||
|
PKG_SOURCE_URL:=https://github.com/greearb/rtl8812AU_8821AU_linux.git
|
||||||
|
#PKG_MIRROR_HASH:=aee819df4ba83251b59bd1d4f412287b27105e5de9284bb09579f0e1a1538328
|
||||||
|
PKG_SOURCE_PROTO:=git
|
||||||
|
PKG_SOURCE_DATE:=2021-09-14
|
||||||
|
PKG_SOURCE_VERSION:=39df55967b7de9f6c9600017b724303f95a8b9e2
|
||||||
|
|
||||||
|
PKG_MAINTAINER:=Ben Greear <greearb@candelatech.com>
|
||||||
|
PKG_BUILD_PARALLEL:=1
|
||||||
|
#PKG_EXTMOD_SUBDIRS:=rtl8812au-ct
|
||||||
|
|
||||||
|
STAMP_CONFIGURED_DEPENDS := $(STAGING_DIR)/usr/include/mac80211-backport/backport/autoconf.h
|
||||||
|
|
||||||
|
include $(INCLUDE_DIR)/kernel.mk
|
||||||
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
|
define KernelPackage/rtl8812au-ct
|
||||||
|
SUBMENU:=Wireless Drivers
|
||||||
|
TITLE:=Driver for Realtek 8812 AU devices comfast 912-ac, etc
|
||||||
|
DEPENDS:=+kmod-cfg80211 +kmod-usb-core +@DRIVER_11N_SUPPORT +@DRIVER_11AC_SUPPORT
|
||||||
|
FILES:=\
|
||||||
|
$(PKG_BUILD_DIR)/rtl8812au.ko
|
||||||
|
AUTOLOAD:=$(call AutoProbe,rtl8812au)
|
||||||
|
PROVIDES:=kmod-rtl8812au
|
||||||
|
endef
|
||||||
|
|
||||||
|
NOSTDINC_FLAGS := \
|
||||||
|
$(KERNEL_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/backport.h
|
||||||
|
|
||||||
|
NOSTDINC_FLAGS+=-DCONFIG_IOCTL_CFG80211 -DRTW_USE_CFG80211_STA_EVENT -DBUILD_OPENWRT
|
||||||
|
|
||||||
|
define Build/Compile
|
||||||
|
+$(MAKE) $(PKG_JOBS) -C "$(LINUX_DIR)" \
|
||||||
|
$(KERNEL_MAKE_FLAGS) \
|
||||||
|
M="$(PKG_BUILD_DIR)" \
|
||||||
|
NOSTDINC_FLAGS="$(NOSTDINC_FLAGS)" \
|
||||||
|
modules
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(eval $(call KernelPackage,rtl8812au-ct))
|
Loading…
Add table
Add a link
Reference in a new issue