blob: 81aeab6989ed6a02850d9be979d9500dfdbe71eb [file] [log] [blame]
Damjan Marion7cd468a2016-12-19 23:05:39 +01001vpp_source = src
Ed Warnickecb9cada2015-12-08 15:45:58 -07002
Damjan Marion28e3db92016-04-01 12:35:17 +02003ifeq ($($(PLATFORM)_dpdk_shared_lib),yes)
4vpp_configure_args = --enable-dpdk-shared
5else
6vpp_configure_args =
7endif
Ed Warnickecb9cada2015-12-08 15:45:58 -07008
9# Platform dependent configure flags
10vpp_configure_args += $(vpp_configure_args_$(PLATFORM))
11
12
Damjan Marion7cd468a2016-12-19 23:05:39 +010013vpp_CPPFLAGS =
14vpp_LDFLAGS =
Christophe Fontainefef15b42016-04-09 12:38:49 +090015
Damjan Marion802c7fa2016-02-27 00:12:55 +010016ifneq ($($(PLATFORM)_uses_dpdk),no)
Damjan Marion28e3db92016-04-01 12:35:17 +020017ifeq ($($(PLATFORM)_uses_external_dpdk),yes)
18vpp_CPPFLAGS += -I$($(PLATFORM)_dpdk_inc_dir)
19vpp_LDFLAGS += -L$($(PLATFORM)_dpdk_lib_dir)
20else
Damjan Marione936bbe2016-02-25 23:17:38 +010021vpp_configure_depend += dpdk-install
Damjan Marion2ce7f982017-01-09 20:24:50 +010022vpp_CPPFLAGS += $(call installed_includes_fn, dpdk)/dpdk
Damjan Marione936bbe2016-02-25 23:17:38 +010023vpp_LDFLAGS += $(call installed_libs_fn, dpdk)
Damjan Marion2ce7f982017-01-09 20:24:50 +010024vpp_CPPFLAGS += -I/usr/include/dpdk
Damjan Marione936bbe2016-02-25 23:17:38 +010025endif
Sergio Gonzalez Monroya10f62b2016-11-25 13:36:12 +000026ifeq ($($(PLATFORM)_uses_dpdk_cryptodev),yes)
27vpp_configure_args += --with-dpdk-crypto
28endif
Damjan Marion696f1ad2016-12-23 22:42:41 +010029ifeq ($($(PLATFORM)_uses_dpdk_mlx5_pmd),yes)
30vpp_configure_args += --with-dpdk-mlx5-pmd
31endif
Damjan Marion28e3db92016-04-01 12:35:17 +020032endif