|
Message-ID: <9bed0fad-5c36-9c18-0757-af7ba3baa228@gmail.com> Date: Mon, 12 Nov 2018 17:34:24 +0100 From: Jiri Moravec <jim.lkml@...il.com> To: lkrg-users@...ts.openwall.com Subject: Extend P_KVER variable definition in Makefile It's actually very useful to make this change, because then it's very easy to compile source against specific kernel tree and not just against running kernel. diff -Nupr b/Makefile~ lkrg-0.4/Makefile --- b/Makefile~ 2018-11-03 20:04:39.187207485 +0100 +++ b/Makefile 2018-11-03 20:04:45.219207961 +0100 @@ -9,7 +9,7 @@ export CFLAGS="$CFLAGS" P_OUTPUT = output P_PWD = $(shell pwd) -P_KVER = $(shell uname -r) +P_KVER ?= $(shell uname -r) P_KERNEL := /lib/modules/$(P_KVER)/build obj-m += p_lkrg.o ---
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.