-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Resolution logic for
os-release
- Loading branch information
1 parent
1ddf7a8
commit c8547d0
Showing
5 changed files
with
88 additions
and
1 deletion.
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_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,7 @@ | ||
PACKAGE_NAME="dkms_osrelease_stub" | ||
PACKAGE_VERSION="1.0" | ||
BUILT_MODULE_NAME="dkms_osrelease_stub" | ||
|
||
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,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 test module"); | ||
|
||
static int __init dkms_test_init(void) | ||
{ | ||
printk(KERN_INFO "DKMS Test Module -%s Loaded\n",DKMS_TEST_VER); | ||
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(DKMS_TEST_VER); |