buildsys: Move vde cflags/libs to per object
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
PATCH 1/2 vl: Don't include vde header
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
@@ -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
PATCH 2/2 buildsys: Move vde libs to per object
In reply to Fam Zheng--- configure | 3 +-- net/Makefile.objs | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-)
configure +1 -2
@@ -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
@@ -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
Quoted 5 lines · Fam Zheng
Hi Jason,
this is the
net/part of the conversion of library cflags/libs from globalQEMU_CFLAGSandlibs_softmmuto per object variables. Please review.
Quoted 9 lines
Fam Zheng (2):
vl: Don't include vde header
buildsys: Move vde libs to per objectconfigure | 3 +-- net/Makefile.objs | 2 ++ vl.c | 4 ---- 3 files changed, 3 insertions(+), 6 deletions(-)
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 globalQEMU_CFLAGSandlibs_softmmuto 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(-)Reviewed-by Jason Wang <[email protected]>
Thanks, I will send a pull request later.
Fam