summaryrefslogtreecommitdiffstats
path: root/build-data/packages/vpp-api-test.mk
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2016-03-25 21:20:03 +0100
committerGerrit Code Review <gerrit@fd.io>2016-03-25 20:34:59 +0000
commit1d49c98f7f8f97fff0d638e439af2246f34fc2b9 (patch)
tree11d435fefa15a01fd70b35a96e061ab2513dcd29 /build-data/packages/vpp-api-test.mk
parent84eda9de0bb3798a86c2c1dac11dd861916a1615 (diff)
vpp-api-test and sample-plugin should depend on dpdk conditionally
Change-Id: Ie26340141fdbd3256e305ab37f4baa817081bf46 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'build-data/packages/vpp-api-test.mk')
-rw-r--r--build-data/packages/vpp-api-test.mk12
1 files changed, 6 insertions, 6 deletions
diff --git a/build-data/packages/vpp-api-test.mk b/build-data/packages/vpp-api-test.mk
index 6ad70bc527d..e26c2e76461 100644
--- a/build-data/packages/vpp-api-test.mk
+++ b/build-data/packages/vpp-api-test.mk
@@ -1,18 +1,13 @@
vpp-api-test_configure_depend = \
vppinfra-install \
- dpdk-install \
svm-install \
vlib-api-install \
vlib-install \
vnet-install \
vpp-install
-#
-vpp-api-test_configure_args = --with-dpdk
-
vpp-api-test_CPPFLAGS = $(call installed_includes_fn, \
vppinfra \
- dpdk \
svm \
vlib \
vlib-api \
@@ -21,10 +16,15 @@ vpp-api-test_CPPFLAGS = $(call installed_includes_fn, \
vpp-api-test_LDFLAGS = $(call installed_libs_fn, \
vppinfra \
- dpdk \
svm \
vlib \
vlib-api \
vnet \
vpp)
+ifneq ($($(PLATFORM)_uses_dpdk),no)
+vpp-api-test_configure_args = --with-dpdk
+vpp-api-test_configure_depend += dpdk-install
+vpp-api-test_CPPFLAGS += $(call installed_includes_fn, dpdk)
+vpp-api-test_LDFLAGS += $(call installed_libs_fn, dpdk)
+endif