mirror of
https://github.com/gnab/rtl8812au
synced 2025-01-09 10:01:35 +00:00
Merge pull request #116 from xdraylin/master
Use $kernelver variable from dkms.
This commit is contained in:
commit
aa06e78b14
12
Makefile
12
Makefile
@ -652,7 +652,7 @@ EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
|
|||||||
SUBARCH := $(shell uname -m | sed -e s/i.86/i386/)
|
SUBARCH := $(shell uname -m | sed -e s/i.86/i386/)
|
||||||
ARCH ?= $(SUBARCH)
|
ARCH ?= $(SUBARCH)
|
||||||
CROSS_COMPILE ?=
|
CROSS_COMPILE ?=
|
||||||
KVER := $(shell uname -r)
|
KVER ?= $(shell uname -r)
|
||||||
KSRC := /lib/modules/$(KVER)/build
|
KSRC := /lib/modules/$(KVER)/build
|
||||||
MODDESTDIR := /lib/modules/$(KVER)/kernel/drivers/net/wireless/
|
MODDESTDIR := /lib/modules/$(KVER)/kernel/drivers/net/wireless/
|
||||||
INSTALL_PREFIX :=
|
INSTALL_PREFIX :=
|
||||||
@ -734,7 +734,7 @@ ifeq ($(CONFIG_PLATFORM_ARM_RPI), y)
|
|||||||
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
|
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
|
||||||
ARCH := arm
|
ARCH := arm
|
||||||
CROSS_COMPILE :=
|
CROSS_COMPILE :=
|
||||||
KVER := $(shell uname -r)
|
KVER ?= $(shell uname -r)
|
||||||
KSRC ?= /lib/modules/$(KVER)/build
|
KSRC ?= /lib/modules/$(KVER)/build
|
||||||
MODDESTDIR := /lib/modules/$(KVER)/kernel/drivers/net/wireless/
|
MODDESTDIR := /lib/modules/$(KVER)/kernel/drivers/net/wireless/
|
||||||
endif
|
endif
|
||||||
@ -743,7 +743,7 @@ ifeq ($(CONFIG_PLATFORM_RTD2880B), y)
|
|||||||
EXTRA_CFLAGS += -DCONFIG_BIG_ENDIAN -DCONFIG_PLATFORM_RTD2880B
|
EXTRA_CFLAGS += -DCONFIG_BIG_ENDIAN -DCONFIG_PLATFORM_RTD2880B
|
||||||
ARCH:=
|
ARCH:=
|
||||||
CROSS_COMPILE:=
|
CROSS_COMPILE:=
|
||||||
KVER:=
|
KVER ?=
|
||||||
KSRC:=
|
KSRC:=
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@ -751,7 +751,7 @@ ifeq ($(CONFIG_PLATFORM_MIPS_RMI), y)
|
|||||||
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
|
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
|
||||||
ARCH:=mips
|
ARCH:=mips
|
||||||
CROSS_COMPILE:=mipsisa32r2-uclibc-
|
CROSS_COMPILE:=mipsisa32r2-uclibc-
|
||||||
KVER:=
|
KVER ?=
|
||||||
KSRC:= /root/work/kernel_realtek
|
KSRC:= /root/work/kernel_realtek
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@ -759,7 +759,7 @@ ifeq ($(CONFIG_PLATFORM_MIPS_PLM), y)
|
|||||||
EXTRA_CFLAGS += -DCONFIG_BIG_ENDIAN
|
EXTRA_CFLAGS += -DCONFIG_BIG_ENDIAN
|
||||||
ARCH:=mips
|
ARCH:=mips
|
||||||
CROSS_COMPILE:=mipsisa32r2-uclibc-
|
CROSS_COMPILE:=mipsisa32r2-uclibc-
|
||||||
KVER:=
|
KVER ?=
|
||||||
KSRC:= /root/work/kernel_realtek
|
KSRC:= /root/work/kernel_realtek
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@ -790,7 +790,7 @@ ifeq ($(CONFIG_PLATFORM_RTK_DMP), y)
|
|||||||
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN -DRTK_DMP_PLATFORM
|
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN -DRTK_DMP_PLATFORM
|
||||||
ARCH:=mips
|
ARCH:=mips
|
||||||
CROSS_COMPILE:=mipsel-linux-
|
CROSS_COMPILE:=mipsel-linux-
|
||||||
KVER:=
|
KVER ?=
|
||||||
KSRC ?= /usr/src/DMP_Kernel/jupiter/linux-2.6.12
|
KSRC ?= /usr/src/DMP_Kernel/jupiter/linux-2.6.12
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -4,6 +4,6 @@ PACKAGE_VERSION=4.2.2
|
|||||||
DEST_MODULE_LOCATION=/kernel/drivers/net/wireless
|
DEST_MODULE_LOCATION=/kernel/drivers/net/wireless
|
||||||
BUILT_MODULE_NAME=8812au
|
BUILT_MODULE_NAME=8812au
|
||||||
|
|
||||||
MAKE="'make' all"
|
MAKE="'make' all KVER=$kernelver"
|
||||||
CLEAN="'make' clean"
|
CLEAN="'make' clean"
|
||||||
AUTOINSTALL="yes"
|
AUTOINSTALL="yes"
|
||||||
|
Loading…
Reference in New Issue
Block a user