summaryrefslogtreecommitdiffstats
path: root/build-data/packages/vpp-api-test.mk
diff options
context:
space:
mode:
Diffstat (limited to 'build-data/packages/vpp-api-test.mk')
-rw-r--r--build-data/packages/vpp-api-test.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/build-data/packages/vpp-api-test.mk b/build-data/packages/vpp-api-test.mk
index e26c2e76461..38edb5bc50a 100644
--- a/build-data/packages/vpp-api-test.mk
+++ b/build-data/packages/vpp-api-test.mk
@@ -24,7 +24,12 @@ vpp-api-test_LDFLAGS = $(call installed_libs_fn, \
ifneq ($($(PLATFORM)_uses_dpdk),no)
vpp-api-test_configure_args = --with-dpdk
+ifeq ($($(PLATFORM)_uses_external_dpdk),yes)
+vpp-api-test_CPPFLAGS += -I$($(PLATFORM)_dpdk_inc_dir)
+vpp-api-test_LDFLAGS += -L$($(PLATFORM)_dpdk_lib_dir)
+else
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
+endif