Skip to contentSkip to conversation

add DKMS configuration file

PATCH In review [email protected] 2 participants 3 messages Jun 28, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 add DKMS configuration file

From: Christian Hesse <[email protected]>

---
 src/dkms.conf | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 src/dkms.conf
src/dkms.conf new file +11 -0
new file mode 100644
index 0000000..8535afd
@@ -0,0 +1,11 @@
+#
+# Linux DKMS config script for the WireGuard kernel module
+#
+
+PACKAGE_NAME="wireguard"
+PACKAGE_VERSION=0.0.0
+AUTOINSTALL=yes
+
+BUILT_MODULE_NAME="wireguard"
+DEST_MODULE_LOCATION="/kernel/net"
+
Signature · 1 line
2.9.0
#1 lore raw

Hey Christian,

Good to see you in this neck of the lists.zx2c4.com woods! :P

I see you saw my call for DKMS in the roadmap page?

I haven't looked into the innerworkings of DKMS yet, but is this essentially how it works? We put this file in src/, and then everything is taken care of? Are their other flags and switches and variables to take into account? Or is this pretty much it?

Jason

#2 lore raw

"Jason A. Donenfeld" <[email protected]> on Tue, 2016/06/28 22:16:

Quoted 3 lines

Hey Christian,

Good to see you in this neck of the lists.zx2c4.com woods! :P

:-P

Quoted 1 line

I see you saw my call for DKMS in the roadmap page?

No, I did not... DKMS is my preferred way of packaging external kernel modules. I cloned, ran make and created dkms.conf for packaging. ;)

BTW, and Arch people here? Give it at try:
https://aur.archlinux.org/packages/wireguard-git/

Quoted 4 lines

I haven't looked into the innerworkings of DKMS yet, but is this essentially how it works? We put this file in src/, and then everything is taken care of? Are their other flags and switches and variables to take into account? Or is this pretty much it?

Basically that's all we need. Put everything (dkms.conf, Makefile, *.c, *.h, crypto/) into /usr/src/wireguard-$version, run

$ dkms install -m wireguard -v $version -k $kernelversion

and load the module.

We could add version handling and install target to the Makefile, but that's optional. I will look into that the next days.

Signature · 3 lines
main(a){char*c=/*    Schoene Gruesse                         */"B?IJj;MEH"
"CX:;",b;for(a/*    Best regards             my address:    */=0;b=c[a++];)
putchar(b-1/(/*    Chris            cc -ox -xc - && ./x    */b/42*2-3)*42);}