summaryrefslogtreecommitdiffstats
path: root/test/dkms_multiver_test
diff options
context:
space:
mode:
Diffstat (limited to 'test/dkms_multiver_test')
-rw-r--r--test/dkms_multiver_test/1.0/Makefile7
-rw-r--r--test/dkms_multiver_test/1.0/dkms.conf5
-rw-r--r--test/dkms_multiver_test/1.0/dkms_multiver_test.c23
-rw-r--r--test/dkms_multiver_test/2.0/Makefile7
-rw-r--r--test/dkms_multiver_test/2.0/dkms.conf5
-rw-r--r--test/dkms_multiver_test/2.0/dkms_multiver_test.c23
6 files changed, 70 insertions, 0 deletions
diff --git a/test/dkms_multiver_test/1.0/Makefile b/test/dkms_multiver_test/1.0/Makefile
new file mode 100644
index 0000000..b40b45d
--- /dev/null
+++ b/test/dkms_multiver_test/1.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/1.0/dkms.conf b/test/dkms_multiver_test/1.0/dkms.conf
new file mode 100644
index 0000000..949d30f
--- /dev/null
+++ b/test/dkms_multiver_test/1.0/dkms.conf
@@ -0,0 +1,5 @@
+PACKAGE_NAME="dkms_multiver_test"
+PACKAGE_VERSION="1.0"
+BUILT_MODULE_NAME="dkms_multiver_test"
+
+DEST_MODULE_LOCATION="/kernel/extra"
diff --git a/test/dkms_multiver_test/1.0/dkms_multiver_test.c b/test/dkms_multiver_test/1.0/dkms_multiver_test.c
new file mode 100644
index 0000000..4a45be5
--- /dev/null
+++ b/test/dkms_multiver_test/1.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 "1.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);
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);