1
0
mirror of https://github.com/abperiasamy/rtl8812AU_8821AU_linux.git synced 2025-08-16 08:34:15 +02:00

Fix dkms build when the target kernel is not currently running. (#139)

Previously when dkms is triggered by e.g. apt-get to build a 8812au for
a non-running kernel, Makefile incorrectly uses the currently running
kernel version via `uname -r`. This causes the "8812au: disagrees about
version of symbol module_layout" error.

This is fixed by providing the correct kernel version provided by dkms
in the kernelver env var.
This commit is contained in:
赵迤晨 (Zhao, Yichen) 2016-07-12 02:16:46 -07:00 committed by Harshavardhana
parent ea61cdf0fa
commit c33ddb05a7

View File

@ -1,6 +1,6 @@
PACKAGE_NAME=8812au
PACKAGE_VERSION=1.0
MAKE[0]="'make'"
MAKE[0]="'make' KVER=${kernelver}"
BUILT_MODULE_NAME[0]=8812au
BUILT_MODULE_LOCATION[0]="./"
DEST_MODULE_LOCATION[0]="/kernel/updates/dkms"