From 507682f90097e66eee727543630b079fd6c1580e Mon Sep 17 00:00:00 2001 From: veradec Date: Thu, 30 Jul 2026 10:07:13 +0530 Subject: [PATCH] migrate: to gitea --- Makefile | 6 ++++++ main.c | 20 ++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 Makefile create mode 100644 main.c diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..0c15e44 --- /dev/null +++ b/Makefile @@ -0,0 +1,6 @@ +obj-m += main.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/main.c b/main.c new file mode 100644 index 0000000..95e7294 --- /dev/null +++ b/main.c @@ -0,0 +1,20 @@ +#include +#include + +static int __init boat_init(void) +{ + printk("boat driver: module loaded\n"); + return 0; +} + +static void __exit boat_exit(void) +{ + printk("boat driver: module unloaded\n"); +} + +module_init(boat_init); +module_exit(boat_exit); + +MODULE_LICENSE("GPL"); +MODULE_AUTHOR("verade"); +MODULE_DESCRIPTION("Driver for the Big Boat Speaker :3");