From 08a67006e720da47de65eb93772f2969e97e6225 Mon Sep 17 00:00:00 2001 From: Marek Waszkiewicz Date: Wed, 1 Apr 2015 01:58:47 +0200 Subject: [PATCH] build: build either with xen or dpdk not both Signed-off-by: Marek Waszkiewicz --- configure.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configure.py b/configure.py index 1ef7e9f538..ccf6dd7d4f 100755 --- a/configure.py +++ b/configure.py @@ -178,7 +178,7 @@ core = [ defines = [] libs = '-laio -lboost_program_options -lboost_system -lstdc++ -lm -lboost_unit_test_framework -lboost_thread -lcryptopp -lrt' hwloc_libs = '-lhwloc -lnuma -lpciaccess -lxml2 -lz' - +xen_used = False def have_xen(): source = '#include \n' source += '#include \n' @@ -199,7 +199,11 @@ if apply_tristate(args.xen, test = have_xen, 'core/xen/gntalloc.cc', 'core/xen/evtchn.cc', ] + xen_used=True +if xen_used and args.dpdk_target: + print("Error: only xen or dpdk can be used, not both.") + sys.exit(1) memcache_base = [ 'apps/memcached/ascii.rl'