Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 1 | vpp_source = src |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 2 | |
Damjan Marion | 28e3db9 | 2016-04-01 12:35:17 +0200 | [diff] [blame] | 3 | ifeq ($($(PLATFORM)_dpdk_shared_lib),yes) |
| 4 | vpp_configure_args = --enable-dpdk-shared |
| 5 | else |
| 6 | vpp_configure_args = |
| 7 | endif |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 8 | |
| 9 | # Platform dependent configure flags |
| 10 | vpp_configure_args += $(vpp_configure_args_$(PLATFORM)) |
| 11 | |
| 12 | |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 13 | vpp_CPPFLAGS = |
| 14 | vpp_LDFLAGS = |
Christophe Fontaine | fef15b4 | 2016-04-09 12:38:49 +0900 | [diff] [blame] | 15 | |
Damjan Marion | 802c7fa | 2016-02-27 00:12:55 +0100 | [diff] [blame] | 16 | ifneq ($($(PLATFORM)_uses_dpdk),no) |
Damjan Marion | 28e3db9 | 2016-04-01 12:35:17 +0200 | [diff] [blame] | 17 | ifeq ($($(PLATFORM)_uses_external_dpdk),yes) |
| 18 | vpp_CPPFLAGS += -I$($(PLATFORM)_dpdk_inc_dir) |
| 19 | vpp_LDFLAGS += -L$($(PLATFORM)_dpdk_lib_dir) |
| 20 | else |
Damjan Marion | e936bbe | 2016-02-25 23:17:38 +0100 | [diff] [blame] | 21 | vpp_configure_depend += dpdk-install |
Damjan Marion | 2ce7f98 | 2017-01-09 20:24:50 +0100 | [diff] [blame] | 22 | vpp_CPPFLAGS += $(call installed_includes_fn, dpdk)/dpdk |
Damjan Marion | e936bbe | 2016-02-25 23:17:38 +0100 | [diff] [blame] | 23 | vpp_LDFLAGS += $(call installed_libs_fn, dpdk) |
Damjan Marion | 2ce7f98 | 2017-01-09 20:24:50 +0100 | [diff] [blame] | 24 | vpp_CPPFLAGS += -I/usr/include/dpdk |
Damjan Marion | e936bbe | 2016-02-25 23:17:38 +0100 | [diff] [blame] | 25 | endif |
Damjan Marion | 696f1ad | 2016-12-23 22:42:41 +0100 | [diff] [blame] | 26 | ifeq ($($(PLATFORM)_uses_dpdk_mlx5_pmd),yes) |
| 27 | vpp_configure_args += --with-dpdk-mlx5-pmd |
| 28 | endif |
Marco Varlese | edfa2fd | 2017-09-01 14:47:53 +0200 | [diff] [blame] | 29 | else |
| 30 | vpp_configure_args += --disable-dpdk-plugin |
Damjan Marion | 28e3db9 | 2016-04-01 12:35:17 +0200 | [diff] [blame] | 31 | endif |
Filip Tehlar | 816f437 | 2017-04-26 16:09:06 +0200 | [diff] [blame] | 32 | |
| 33 | ifeq ($($(PLATFORM)_enable_tests),yes) |
| 34 | vpp_configure_args += --enable-tests |
| 35 | endif |