From c2c09589f14ac77fd4e29ca36483dfd80c439074 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 28 Apr 2024 11:20:55 +0200 Subject: Adding upstream version 3.0.10. Signed-off-by: Daniel Baumann --- test/dkms_emptyver_test/Makefile | 7 +++++++ test/dkms_emptyver_test/dkms.conf | 12 ++++++++++++ test/dkms_emptyver_test/dkms_emptyver_test.c | 21 +++++++++++++++++++++ 3 files changed, 40 insertions(+) create mode 100644 test/dkms_emptyver_test/Makefile create mode 100644 test/dkms_emptyver_test/dkms.conf create mode 100644 test/dkms_emptyver_test/dkms_emptyver_test.c (limited to 'test/dkms_emptyver_test') 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..50dd08e --- /dev/null +++ b/test/dkms_emptyver_test/dkms.conf @@ -0,0 +1,12 @@ + +PACKAGE_NAME="dkms_emptyver_test" +PACKAGE_VERSION="1.0" +BUILT_MODULE_NAME="dkms_emptyver_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" + 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 +#include +#include + +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(""); -- cgit v1.2.3