From 8ada8849f2944b679c659bf108ba3f25500c23fa Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Sat, 7 Jul 2012 19:58:33 +0200 Subject: [PATCH] Compatibility with older DKMS versions (GH-25) --- Makefile.dkms | 6 +++--- NEWS | 2 ++ README.md | 4 ++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Makefile.dkms b/Makefile.dkms index 3a06762..b7c0d15 100644 --- a/Makefile.dkms +++ b/Makefile.dkms @@ -13,12 +13,12 @@ src_install: sed 's/#MODULE_VERSION#/$(modver)/' dkms/dkms.conf > '$(DKMS_DEST)/dkms.conf' build: src_install - $(DKMS) build 'bbswitch/$(modver)' + $(DKMS) build -m bbswitch -v $(modver) install: build - $(DKMS) install 'bbswitch/$(modver)' + $(DKMS) install -m bbswitch -v $(modver) uninstall: - $(DKMS) remove bbswitch/$(modver) --all + $(DKMS) remove -m bbswitch -v $(modver) --all .PHONY: all src_install build install uninstall diff --git a/NEWS b/NEWS index 335e37e..71252fd 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,5 @@ +* Improved compatibility with older DKMS versions. + Version 0.4.2 - 26 April 2012 * Fixed a documentation error on unload_state. diff --git a/README.md b/README.md index 17bef18..1f578e5 100644 --- a/README.md +++ b/README.md @@ -40,8 +40,8 @@ DKMS support If you have DKMS installed, you can install bbswitch in such a way that it survives kernel upgrades. It is recommended to remove older versions of bbswitch -by running `dkms remove bbswitch/OLDVERSION --all` as root. To install the new -version, simply run: +by running `dkms remove -m bbswitch -v OLDVERSION --all` as root. To install +the new version, simply run: # make -f Makefile.dkms