Skip to contentSkip to conversation

for ARCH=um, optionaly give a path for the vde installation.

PATCH In review [email protected] 3 participants 6 messages May 5, 2011 – May 9, 2011 User-mode Linux (UML)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 for ARCH=um, optionaly give a path for the vde installation.

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 ?

Regards .

Paul.

------------------------------------------------------------------------------
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 [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

#1 lore raw
Quoted 9 lines · On Thu, May 5, 2011 at 9:34 AM, <[email protected]> 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.

Signature · 13 lines
Thanks,
//richard

------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
#2 lore raw
Quoted 6 lines · richard -rw- weinberger
Quoted 4 lines · On Thu, May 5, 2011 at 9:34 AM,<[email protected]> 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.

Quoted 9 lines
Quoted 5 lines

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 :)

arch/um/drivers/Makefile +6 -1
diff -Nur linux-2.6.26.5.orig/arch/um/drivers/Makefile linux-2.6.26.5.mod/arch/um/drivers/Makefile
@@ -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
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

#3 lore raw

Hi,

Quoted 15 lines · Paul Chavent
Quoted 14 lines · richard -rw- weinberger
Quoted 12 lines · On Thu, May 5, 2011 at 9:34 AM,<[email protected]>  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.

Quoted 9 lines
Quoted 5 lines
Quoted 1 line

Could you give me your opinion please ?

Please post your patch.
Otherwise nobody can review it.

Damned

thank you for reminding me :)

Please submit patches not as attachment.
See:
Documentation/SubmittingPatches
http://www.youtube.com/watch?v=LLBrBBImJt4
http://kapare.blogspot.com/2009/09/write-and-submit-your-first-kernel.html

Anyway, your patch makes use of "CFLAGS_vde_user.o", where is this variable used?

Signature · 13 lines
Thanks,
//richard

------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
#4 lore raw
Quoted 2 lines · richard -rw- weinberger

Anyway, your patch makes use of "CFLAGS_vde_user.o", where is this variable used?

This syntax is used to specify additional compile options for vde_user.o.

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds

#5 lore raw
Quoted 7 lines · Geert Uytterhoeven
Quoted 2 lines · richard -rw- weinberger

Anyway, your patch makes use of "CFLAGS_vde_user.o", where is this variable used?

This syntax is used to specify additional compile options for vde_user.o.

*headdesk*, thanks for pointing this out!

Signature · 2 lines
Thanks,
//richard