Skip to contentSkip to conversation

buildsys: Move vde cflags/libs to per object

PATCH In review Fam Zheng 2 participants 5 messages Sep 7, 2017 – Sep 8, 2017 Networking

lore
Share & tools
lore
author
#1 lore raw

PATCH 1/2 vl: Don't include vde header

In reply to Fam Zheng

Nothing in vl.c uses anything from the vde package, do remove the unnecessary include.

---
 vl.c | 4 ----
 1 file changed, 4 deletions(-)
vl.c +0 -4
index e75757f977..293cd91ec9 100644
@@ -31,10 +31,6 @@
 #include "sysemu/seccomp.h"
 #endif
 
-#if defined(CONFIG_VDE)
-#include <libvdeplug.h>
-#endif
-
 #ifdef CONFIG_SDL
 #if defined(__APPLE__) || defined(main)
 #include <SDL.h>
Signature · 1 line
2.13.5

Fam Zheng

author
#0 lore raw

cover buildsys: Move vde cflags/libs to per object

Hi Jason,

this is the net/ part of the conversion of library cflags/libs from global QEMU_CFLAGS and libs_softmmu to per object variables. Please review.

Fam Zheng (2):
vl: Don't include vde header
buildsys: Move vde libs to per object

 configure         | 3 +--
 net/Makefile.objs | 2 ++
 vl.c              | 4 ----
 3 files changed, 3 insertions(+), 6 deletions(-)
Signature · 1 line
2.13.5
author
#2 lore raw

PATCH 2/2 buildsys: Move vde libs to per object

---
 configure         | 3 +--
 net/Makefile.objs | 2 ++
 2 files changed, 3 insertions(+), 2 deletions(-)
configure +1 -2
index fb7e34a901..bc09487668 100755
@@ -2963,8 +2963,6 @@ int main(void)
 EOF
   if compile_prog "" "$vde_libs" ; then
     vde=yes
-    libs_softmmu="$vde_libs $libs_softmmu"
-    libs_tools="$vde_libs $libs_tools"
   else
     if test "$vde" = "yes" ; then
       feature_not_found "vde" "Install vde (Virtual Distributed Ethernet) devel"
@@ -5545,6 +5543,7 @@ if test "$slirp" = "yes" ; then
 fi
 if test "$vde" = "yes" ; then
   echo "CONFIG_VDE=y" >> $config_host_mak
+  echo "VDE_LIBS=$vde_libs" >> $config_host_mak
 fi
 if test "$netmap" = "yes" ; then
   echo "CONFIG_NETMAP=y" >> $config_host_mak
net/Makefile.objs +2 -0
index 67ba5e26fb..64adf32f40 100644
@@ -21,3 +21,5 @@ tap-obj-$(CONFIG_SOLARIS) = tap-solaris.o
 tap-obj-y ?= tap-stub.o
 common-obj-$(CONFIG_POSIX) += tap.o $(tap-obj-y)
 common-obj-$(CONFIG_WIN32) += tap-win32.o
+
+vde.o-libs = $(VDE_LIBS)
Signature · 1 line
2.13.5
Reviewed-by on the v1 series
#3 lore raw
In reply to Fam Zheng
Quoted 5 lines · Fam Zheng

Hi Jason,

this is the net/ part of the conversion of library cflags/libs from global QEMU_CFLAGS and libs_softmmu to per object variables. Please review.

Quoted 9 lines

Fam Zheng (2):
vl: Don't include vde header
buildsys: Move vde libs to per object

  configure         | 3 +--
  net/Makefile.objs | 2 ++
  vl.c              | 4 ----
  3 files changed, 3 insertions(+), 6 deletions(-)
author
#4 lore raw
Quoted 12 lines · Jason Wang
Quoted 9 lines · Fam Zheng

Hi Jason,

this is the net/ part of the conversion of library cflags/libs from global QEMU_CFLAGS and libs_softmmu to per object variables. Please review.

Fam Zheng (2):
vl: Don't include vde header
buildsys: Move vde libs to per object

Quoted 8 lines
Quoted 5 lines
  configure         | 3 +--
  net/Makefile.objs | 2 ++
  vl.c              | 4 ----
  3 files changed, 3 insertions(+), 6 deletions(-)

Thanks, I will send a pull request later.

Fam