From 7d57d3630ec2e0c00b1a95f355e3c609cf926918 Mon Sep 17 00:00:00 2001 From: Magnus Olsson Date: Wed, 21 Dec 2016 21:38:57 +0100 Subject: [PATCH] Add support for DKMS Adds support for building, installing and uninstalling the driver using DKMS. Once installed, DKMS will manage the kernel module and automatically recompile it upon kernel upgrades. This simplifies the installation and driver maintenance for users. --- README.md | 30 ++++++++++++++++++++++++++++++ dkms.conf | 9 +++++++++ 2 files changed, 39 insertions(+) create mode 100644 dkms.conf diff --git a/README.md b/README.md index 5741239..8422849 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,36 @@ You can see the applied patches, their sources and/or motivation by looking at t Note that updates to this README will show up as separate commits. I will not mix changes to this file with changes to the code in case you want to mirror this without the README. +## Building and installing using DKMS + +This tree supports Dynamic Kernel Module Support (DKMS), a system for +generating kernel modules from out-of-tree kernel sources. It can be used to +install/uninstall kernel modules, and the module will be automatically rebuilt +from source when the kernel is upgraded (for example using your package manager). + +1. Install DKMS and other required tools + + ```shell + $ apt-get install git linux-headers-generic build-essential dkms + ``` + +2. Add the driver to DKMS. This will copy the source to a system directory so +that it can used to rebuild the module on kernel upgrades. + + ```shell + $ dkms add . + ``` + +3. Build and install the driver. + + ```shell + $ dkms install rtl8192eu/1.0 + ``` + +If you wish to uninstall the driver at a later point, use +_dkms uninstall rtl8192eu/1.0_. To completely remove the driver from DKMS use +_dkms remove rtl8192eu/1.0_. + ## Submitting patches 1. Fork repo diff --git a/dkms.conf b/dkms.conf new file mode 100644 index 0000000..592da54 --- /dev/null +++ b/dkms.conf @@ -0,0 +1,9 @@ +PACKAGE_NAME="rtl8192eu" +PACKAGE_VERSION="1.0" +BUILT_MODULE_NAME="8192eu" +DEST_MODULE_LOCATION="/kernel/drivers/net/wireless/" +REMAKE_INITRD="yes" +AUTOINSTALL="yes" +MAKE="'make' all" +CLEAN="make clean" +