diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 09:20:55 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 09:20:55 +0000 |
commit | c2c09589f14ac77fd4e29ca36483dfd80c439074 (patch) | |
tree | e102666aaa612a28c16dcd4097466764e97ba96a /test/dkms_multiver_test/2.0 | |
parent | Initial commit. (diff) | |
download | dkms-upstream.tar.xz dkms-upstream.zip |
Adding upstream version 3.0.10.upstream/3.0.10upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'test/dkms_multiver_test/2.0')
-rw-r--r-- | test/dkms_multiver_test/2.0/Makefile | 7 | ||||
-rw-r--r-- | test/dkms_multiver_test/2.0/dkms.conf | 5 | ||||
-rw-r--r-- | test/dkms_multiver_test/2.0/dkms_multiver_test.c | 23 |
3 files changed, 35 insertions, 0 deletions
diff --git a/test/dkms_multiver_test/2.0/Makefile b/test/dkms_multiver_test/2.0/Makefile new file mode 100644 index 0000000..b40b45d --- /dev/null +++ b/test/dkms_multiver_test/2.0/Makefile @@ -0,0 +1,7 @@ +obj-m += dkms_multiver_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 diff --git a/test/dkms_multiver_test/2.0/dkms.conf b/test/dkms_multiver_test/2.0/dkms.conf new file mode 100644 index 0000000..204f949 --- /dev/null +++ b/test/dkms_multiver_test/2.0/dkms.conf @@ -0,0 +1,5 @@ +PACKAGE_NAME="dkms_multiver_test" +PACKAGE_VERSION="2.0" +BUILT_MODULE_NAME="dkms_multiver_test" + +DEST_MODULE_LOCATION="/kernel/extra" diff --git a/test/dkms_multiver_test/2.0/dkms_multiver_test.c b/test/dkms_multiver_test/2.0/dkms_multiver_test.c new file mode 100644 index 0000000..775aeba --- /dev/null +++ b/test/dkms_multiver_test/2.0/dkms_multiver_test.c @@ -0,0 +1,23 @@ +#include <linux/module.h> +#include <linux/kernel.h> +#include <linux/init.h> + +#define DKMS_TEST_VER "2.0" + +MODULE_LICENSE("GPL"); +MODULE_DESCRIPTION("A Simple dkms multiver test module"); + +static int __init dkms_test_init(void) +{ + printk(KERN_INFO "DKMS MultiVer Test Module -%s Loaded\n",DKMS_TEST_VER); + return 0; +} + +static void __exit dkms_test_cleanup(void) +{ + printk(KERN_INFO "Cleaning up after dkms multiver test module.\n"); +} + +module_init(dkms_test_init); +module_exit(dkms_test_cleanup); +MODULE_VERSION(DKMS_TEST_VER); |