From 08e7b6efc3465f68b7d89dcc36b6bf84152bad3c Mon Sep 17 00:00:00 2001 From: Jim Huang Date: Thu, 22 Jul 2021 08:31:47 +0800 Subject: [PATCH] Emphasize on 5.x kernel --- README.md | 2 +- examples/Makefile | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index fdf6c3f..a5c30b5 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # 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 original guide may be found at http://www.tldp.org/LDP/lkmpg/ diff --git a/examples/Makefile b/examples/Makefile index 4814ba7..8d7a6dc 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -31,8 +31,8 @@ obj-m += bottomhalf.o obj-m += ioctl.o all: - make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules + $(MAKE) -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules 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