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

Lars Ellenberg Lars.Ellenberg at linbit.com
Tue Apr 20 18:15:34 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.


/ 2004-04-20 18:34:04 +0400
\ Eugene Crosser:
> On Tue, 2004-04-20 at 15:45, Lars Ellenberg wrote:
> > Ok, just now committed a slightly improved patch into CVS.
> > 
> > * new make target: kernel-patch
> >   use like "make kernel-patch KDIR=/usr/src/linux-2.6.5-something"
> >   generates a patch-linux-*-drbd-* in the toplevel directory, you can
> >   then verify and apply it to your kernel source.
> 
> Cool!  The patched kernel even builds successfully (did not try to run
> yet).
> 
> 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



More information about the drbd-user mailing list