Browse Source

Emphasize on 5.x kernel

Jim Huang 3 years ago
parent
commit
08e7b6efc3
2 changed files with 4 additions and 4 deletions
  1. 1 1
      README.md
  2. 3 3
      examples/Makefile

+ 1 - 1
README.md

@@ -1,6 +1,6 @@
 # The Linux Kernel Module Programming Guide
 # The Linux Kernel Module Programming Guide
 
 
-This project keeps the Linux Kernel Module Programming Guide reasonably up to date, with working examples for recent kernel versions.
+This project keeps the Linux Kernel Module Programming Guide reasonably up to date, with [working examples](examples/) for recent 5.x kernel versions.
 The guide has been around since 2001 and most copies of it on the web only describe old 2.6.x kernels.
 The guide has been around since 2001 and most copies of it on the web only describe old 2.6.x kernels.
 
 
 The original guide may be found at http://www.tldp.org/LDP/lkmpg/
 The original guide may be found at http://www.tldp.org/LDP/lkmpg/

+ 3 - 3
examples/Makefile

@@ -31,8 +31,8 @@ obj-m += bottomhalf.o
 obj-m += ioctl.o
 obj-m += ioctl.o
 
 
 all:
 all:
-	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
+	$(MAKE) -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
 
 
 clean:
 clean:
-	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
-	rm -f other/ioctl other/cat_noblock *.plist
+	$(MAKE) -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
+	$(RM) other/cat_noblock *.plist