Merge pull request #116 from xdraylin/master

Use $kernelver variable from dkms.
This commit is contained in:
Ole Petter Bang 2017-10-02 08:09:24 +02:00 committed by GitHub
commit aa06e78b14
2 changed files with 22 additions and 22 deletions

View File

@ -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

View File

@ -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"