[DRBD-user] [patch] in-kernel builds

Eugene Crosser crosser at rol.ru
Tue Apr 20 19:19:01 CEST 2004

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.

On Tue, 2004-04-20 at 20:15, Lars Ellenberg wrote:

> > Just to be pedantic: for me, $(KVER) failed to initialize on "make
> > kernel-patch" so the name of the resulting file was
> > "patch-linux--drbd-"0.7_pre6"
> how about this. then it is your buisiness to name KDIR "phony"...
>  kernel-patch:
>  	set -o noclobber; \
> -	d=patch-linux-$(KVER)-drbd-$(DIST_VERSION);\
> +	kbase=$$(basename $(KDIR)); \
> +	d=patch-$$kbase-drbd-$(DIST_VERSION);\
>  	bash scripts/patch-kernel $(KDIR) . > $$d

How about plain and naive

KVER=`awk '/^#define UTS_RELEASE/{print $3}' $KDIR/include/linux/version.h`

? (Actually, I think the whole issue is not worth the effort...  Just
call it "drbd-kernel-patch" and everyone is happy)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20040420/28b49aa7/attachment.pgp>

More information about the drbd-user mailing list