Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save weedy/705f28367cc13c169e4af0334ccc8257 to your computer and use it in GitHub Desktop.
Save weedy/705f28367cc13c169e4af0334ccc8257 to your computer and use it in GitHub Desktop.
OpenWRT RTL8812AU Makefile
#
# Copyright (C) 2006 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# $Id$
include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk
include $(INCLUDE_DIR)/kernel-defaults.mk
PKG_NAME:=RTL8812A
PKG_VERSION=2016-09-11-$(PKG_SOURCE_VERSION)
PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/weedy/rtl8812AU.git
PKG_SOURCE_VERSION:=a422338714853794b7cfb8ed7e2fcec355b4399d
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_SOURCE_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.gz
PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)-$(PKG_SOURCE_VERSION)
include $(INCLUDE_DIR)/package.mk
define KernelPackage/rtl8812au
SUBMENU:=Wireless Drivers
TITLE:=Driver for RTL8812AU wireless chipsets
VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)
FILES:= $(PKG_BUILD_DIR)/8812au.ko
AUTOLOAD:=$(call AutoLoad,rtl8812au)
endef
define Build/Compile
$(MAKE) $(KERNEL_MAKEOPTS) M=$(PKG_BUILD_DIR) CONFIG_RTL8812A=y CONFIG_RTL8821AU=y modules
endef
$(eval $(call KernelPackage,rtl8812au))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment