Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jow-/920dfe708e8997e23f71ca453df54ed9 to your computer and use it in GitHub Desktop.
Save jow-/920dfe708e8997e23f71ca453df54ed9 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/uminokoe/rtl8812AU.git
PKG_SOURCE_VERSION:=688f6ac5e412ecfa074d33d95e9c11202f301d95
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) \
USER_EXTRA_CFLAGS="-D_LINUX_BYTEORDER_SWAB_H" \
CONFIG_RTL8821AU=m \
modules
endef
$(eval $(call KernelPackage,rtl8812au))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment