-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #297 from xuzhen/cmp
Fix updating modules with no version
- Loading branch information
Showing
11 changed files
with
281 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
obj-m += dkms_nover_update_test.o | ||
|
||
all: | ||
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules | ||
|
||
clean: | ||
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
|
||
PACKAGE_NAME="dkms_nover_update_test" | ||
PACKAGE_VERSION="1.0" | ||
BUILT_MODULE_NAME="dkms_nover_update_test" | ||
|
||
# MAKE="make -C /lib/modules/${kernelver}/build SUBDIRS=${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build modules" | ||
# CLEAN="make -C /lib/modules/${kernelver}/build SUBDIRS=${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build M=$PWD clean" | ||
|
||
AUTOINSTALL="yes" | ||
|
||
DEST_MODULE_LOCATION="/kernel/extra" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#include <linux/module.h> | ||
#include <linux/kernel.h> | ||
#include <linux/init.h> | ||
|
||
MODULE_LICENSE("GPL"); | ||
MODULE_DESCRIPTION("A Simple dkms test module with no version"); | ||
|
||
static int __init dkms_test_init(void) | ||
{ | ||
printk(KERN_INFO "DKMS Test Module - Loaded\n"); | ||
return 0; | ||
} | ||
|
||
static void __exit dkms_test_cleanup(void) | ||
{ | ||
printk(KERN_INFO "Cleaning up after dkms test module.\n"); | ||
} | ||
|
||
module_init(dkms_test_init); | ||
module_exit(dkms_test_cleanup); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
obj-m += dkms_nover_update_test.o | ||
|
||
all: | ||
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules | ||
|
||
clean: | ||
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
|
||
PACKAGE_NAME="dkms_nover_update_test" | ||
PACKAGE_VERSION="2.0" | ||
BUILT_MODULE_NAME="dkms_nover_update_test" | ||
|
||
# MAKE="make -C /lib/modules/${kernelver}/build SUBDIRS=${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build modules" | ||
# CLEAN="make -C /lib/modules/${kernelver}/build SUBDIRS=${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build M=$PWD clean" | ||
|
||
AUTOINSTALL="yes" | ||
|
||
DEST_MODULE_LOCATION="/kernel/extra" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#include <linux/module.h> | ||
#include <linux/kernel.h> | ||
#include <linux/init.h> | ||
|
||
MODULE_LICENSE("GPL"); | ||
MODULE_DESCRIPTION("A Simple dkms test module with no version!"); | ||
|
||
static int __init dkms_test_init(void) | ||
{ | ||
printk(KERN_INFO "DKMS Test Module - Loaded\n"); | ||
return 0; | ||
} | ||
|
||
static void __exit dkms_test_cleanup(void) | ||
{ | ||
printk(KERN_INFO "Cleaning up after dkms test module.\n"); | ||
} | ||
|
||
module_init(dkms_test_init); | ||
module_exit(dkms_test_cleanup); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
obj-m += dkms_nover_update_test.o | ||
|
||
all: | ||
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules | ||
|
||
clean: | ||
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
|
||
PACKAGE_NAME="dkms_nover_update_test" | ||
PACKAGE_VERSION="3.0" | ||
BUILT_MODULE_NAME="dkms_nover_update_test" | ||
|
||
# MAKE="make -C /lib/modules/${kernelver}/build SUBDIRS=${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build modules" | ||
# CLEAN="make -C /lib/modules/${kernelver}/build SUBDIRS=${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build M=$PWD clean" | ||
|
||
AUTOINSTALL="yes" | ||
|
||
DEST_MODULE_LOCATION="/kernel/extra" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#include <linux/module.h> | ||
#include <linux/kernel.h> | ||
#include <linux/init.h> | ||
|
||
MODULE_LICENSE("GPL"); | ||
MODULE_DESCRIPTION("A Simple dkms test module with no version!"); | ||
|
||
static int __init dkms_test_init(void) | ||
{ | ||
printk(KERN_INFO "DKMS Test Module - Loaded\n"); | ||
return 0; | ||
} | ||
|
||
static void __exit dkms_test_cleanup(void) | ||
{ | ||
printk(KERN_INFO "Cleaning up after dkms test module.\n"); | ||
} | ||
|
||
module_init(dkms_test_init); | ||
module_exit(dkms_test_cleanup); |