-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
80 lines (63 loc) · 2 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#
# Copyright (C) 2013-2015 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=rtl8812au
PKG_VERSION:=2016-12-13
PKG_RELEASE:=$(PKG_SOURCE_VERSION)
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/diederikdehaas/rtl8812AU.git
PKG_SOURCE_VERSION:=be67c6e7c7424004931f53bd9bf0a86d02f15bd0
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
PKG_MAINTAINER:=DL <[email protected]>
PKG_LICENSE:=GPLv2
include $(INCLUDE_DIR)/kernel.mk
include $(INCLUDE_DIR)/package.mk
USER_EXTRA_CFLAGS = -DBACKPORT
ifneq ($(LINUX_KARCH), x86)
USER_EXTRA_CFLAGS += -DCONFIG_MINIMAL_MEMORY_USAGE
endif
#
# Debugging trace flags
#
USER_EXTRA_CFLAGS += -DCONFIG_DEBUG
USER_EXTRA_CFLAGS += -DCONFIG_DEBUG_RTL871X
USER_EXTRA_CFLAGS += -DCONFIG_DEBUG_CFG80211
USER_EXTRA_CFLAGS += -DCONFIG_PROC_DEBUG
USER_EXTRA_CFLAGS += -DDBG_MEM_ALLOC
MAKE_FEATURES:= \
CONFIG_POWER_SAVING="n"
NOSTDINC_FLAGS = \
-I$(STAGING_DIR)/usr/include/mac80211 \
-I$(STAGING_DIR)/usr/include/mac80211/uapi \
-I$(STAGING_DIR)/usr/include/mac80211-backport \
-include backport/backport.h
MAKE_OPTS:= \
ARCH="$(LINUX_KARCH)" \
CROSS_COMPILE="$(KERNEL_CROSS)" \
KSRC="$(LINUX_DIR)" \
KVER="$(LINUX_VERSION)" \
M="$(PKG_BUILD_DIR)" \
MODULE_NAME="8812au" \
USER_EXTRA_CFLAGS="$(USER_EXTRA_CFLAGS)" \
NOSTDINC_FLAGS="$(NOSTDINC_FLAGS)" \
KBUILD_EXTRA_SYMBOLS="${STAGING_DIR}/usr/include/mac80211/Module.symvers" \
$(MAKE_FEATURES)
define KernelPackage/$(PKG_NAME)
SUBMENU:=Wireless Drivers
TITLE:=Realtek RTL8812AU wireless USB 802.11ac driver
DEPENDS:=@USB_SUPPORT +kmod-mac80211 +kmod-usb-core
FILES:=$(PKG_BUILD_DIR)/8812au.ko
endef
define KernelPackage/$(PKG_NAME)/description
Kernel modules for the Realtek 8812AU and 8821A USB 802.11ac
wireless USB adapters
endef
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) $(MAKE_OPTS)
endef
$(eval $(call KernelPackage,$(PKG_NAME)))