On 05/06/2011 09:52 AM, richard -rw- weinberger wrote:

On Thu, May 5, 2011 at 9:34 AM,<paul.chav...@fnac.net>  wrote:
Hi.

I use uml with vde. The kernel links against libvdeplug.a and automatically 
find it. But i would like to manually give its path.

So i made a patch for being able to give the VDE_PREFIX when we call make.

I wonder if this patch could be included in the mainstream kernel, or if there 
is a better way of doing it.

Could you give me your opinion please ?

Please post your patch.
Otherwise nobody can review it.

Damned

thank you for reminding me :)
diff -Nur linux-2.6.26.5.orig/arch/um/drivers/Makefile 
linux-2.6.26.5.mod/arch/um/drivers/Makefile
--- linux-2.6.26.5.orig/arch/um/drivers/Makefile        2008-08-02 
00:58:24.000000000 +0200
+++ linux-2.6.26.5.mod/arch/um/drivers/Makefile 2008-08-06 14:09:04.000000000 
+0200
@@ -19,7 +19,12 @@
 
 LDFLAGS_pcap.o := -r $(shell $(CC) $(KBUILD_CFLAGS) -print-file-name=libpcap.a)
 
-LDFLAGS_vde.o := -r $(shell $(CC) $(CFLAGS) -print-file-name=libvdeplug.a)
+ifdef VDE_PREFIX
+  LDFLAGS_vde.o := -r $(VDE_PREFIX)/lib/libvdeplug.a
+  CFLAGS_vde_user.o := -I$(VDE_PREFIX)/include/
+else
+  LDFLAGS_vde.o := -r $(shell $(CC) $(CFLAGS) -print-file-name=libvdeplug.a)
+endif
 
 targets := pcap_kern.o pcap_user.o vde_kern.o vde_user.o
 
------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

Reply via email to