From 12715b4b54a866eb3a16050b1a73e05ef1efa58c Mon Sep 17 00:00:00 2001 From: Lekensteyn Date: Mon, 2 Jan 2012 00:13:39 +0100 Subject: [PATCH] Change PACKAGE_VERSION, set KVERSION, update README --- README.md | 9 ++++++--- dkms/dkms.conf | 4 ++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index d9efbc3..5d3713a 100644 --- a/README.md +++ b/README.md @@ -35,10 +35,13 @@ If your card is supported, there should be no error. Otherwise, you get a "No such device" (ENODEV) error. Check your kernel log (dmesg) for more information. -### DKMS support +DKMS support +------------ -inside the "dkms" directory a file is provided for dkms support. Note that the -kernel version must be changed. +Change `#MODULE_VERSION#` to the current version of bbswitch. Copy the +Makefile, C source and dkms.conf file to `/usr/src/bbswitch-VERSION/` (replace +VERSION with the current version of bbswitch which has been inserted for +`#MODULE_VERSION#`. Usage ----- diff --git a/dkms/dkms.conf b/dkms/dkms.conf index e057a53..0c5d310 100644 --- a/dkms/dkms.conf +++ b/dkms/dkms.conf @@ -1,6 +1,6 @@ PACKAGE_NAME="bbswitch" -PACKAGE_VERSION="REPLACE" -MAKE[0]="make" +PACKAGE_VERSION="#MODULE_VERSION#" +MAKE[0]="make KVERSION=$kernelver" CLEAN="make clean" BUILT_MODULE_NAME[0]="bbswitch" DEST_MODULE_LOCATION[0]="/kernel/drivers/acpi"