summaryrefslogtreecommitdiffstats
path: root/test/dkms_emptyver_test
diff options
context:
space:
mode:
Diffstat (limited to 'test/dkms_emptyver_test')
-rw-r--r--test/dkms_emptyver_test/Makefile7
-rw-r--r--test/dkms_emptyver_test/dkms.conf6
-rw-r--r--test/dkms_emptyver_test/dkms_emptyver_test.c21
3 files changed, 34 insertions, 0 deletions
diff --git a/test/dkms_emptyver_test/Makefile b/test/dkms_emptyver_test/Makefile
new file mode 100644
index 0000000..c3bb9b3
--- /dev/null
+++ b/test/dkms_emptyver_test/Makefile
@@ -0,0 +1,7 @@
+obj-m += dkms_emptyver_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_emptyver_test/dkms.conf b/test/dkms_emptyver_test/dkms.conf
new file mode 100644
index 0000000..14c4aac
--- /dev/null
+++ b/test/dkms_emptyver_test/dkms.conf
@@ -0,0 +1,6 @@
+PACKAGE_NAME="dkms_emptyver_test"
+PACKAGE_VERSION="1.0"
+# intentionally uses POSIX syntax (no array notation)
+BUILT_MODULE_NAME="dkms_emptyver_test"
+DEST_MODULE_LOCATION="/kernel/extra"
+AUTOINSTALL="yes"
diff --git a/test/dkms_emptyver_test/dkms_emptyver_test.c b/test/dkms_emptyver_test/dkms_emptyver_test.c
new file mode 100644
index 0000000..a65e693
--- /dev/null
+++ b/test/dkms_emptyver_test/dkms_emptyver_test.c
@@ -0,0 +1,21 @@
+#include <linux/module.h>
+#include <linux/kernel.h>
+#include <linux/init.h>
+
+MODULE_LICENSE("GPL");
+MODULE_DESCRIPTION("A Simple dkms test module with empty 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);
+MODULE_VERSION("");