summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile-linux8
-rw-r--r--Makefile-wsl (renamed from Makefile)3
-rw-r--r--README15
-rw-r--r--README.md7
4 files changed, 23 insertions, 10 deletions
diff --git a/Makefile-linux b/Makefile-linux
new file mode 100644
index 0000000..9de6304
--- /dev/null
+++ b/Makefile-linux
@@ -0,0 +1,8 @@
+obj-m := kworm.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/Makefile b/Makefile-wsl
index 24182e6..dee45eb 100644
--- a/Makefile
+++ b/Makefile-wsl
@@ -6,6 +6,3 @@ all:
clean:
make -C $(shell echo $$WSLKERN) M=$(PWD) clean
-bear:
- make clean ; bear -- make
-
diff --git a/README b/README
new file mode 100644
index 0000000..e92cfd7
--- /dev/null
+++ b/README
@@ -0,0 +1,15 @@
+if on wsl:
+ `cp Makefile-wsl Makefile`
+then clone the WSL kernel, build it and set $WSLKERN to the kernel folder
+
+if on linux:
+ `cp Makefile-linux Makefile`
+
+```
+make
+sudo insmod kworm.ko
+# get major number from kernel log
+sudo mknod /dev/worm c <major number> 0
+cat /dev/worm
+```
+
diff --git a/README.md b/README.md
deleted file mode 100644
index ca921cc..0000000
--- a/README.md
+++ /dev/null
@@ -1,7 +0,0 @@
-```
-make
-sudo insmod kworm.ko
-# get major number from kernel log
-sudo mknod /dev/worm c <major number> 0
-cat /dev/worm
-```