Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Tue, 13 Nov 2018 05:17:56 +0100
From: Adam Zabrocki <pi3@....com.pl>
To: lkrg-users@...ts.openwall.com
Subject: Re: Extend P_KVER variable definition in Makefile

Hi,

I've just added this modification to the bitbucket repo.

Thanks,
Adam

On Mon, Nov 12, 2018 at 05:34:24PM +0100, Jiri Moravec wrote:
> 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
> ---

-- 
pi3 (pi3ki31ny) - pi3 (at) itsec pl
http://pi3.com.pl

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.