blob: fe68cd823a3f7dd7fbd16c222c7c8a12b011ee9e [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
22vpp_CPPFLAGS += $(call installed_includes_fn, dpdk)
23vpp_LDFLAGS += $(call installed_libs_fn, dpdk)
24endif
Sergio Gonzalez Monroya10f62b2016-11-25 13:36:12 +000025ifeq ($($(PLATFORM)_uses_dpdk_cryptodev),yes)
26vpp_configure_args += --with-dpdk-crypto
27endif
Damjan Marion696f1ad2016-12-23 22:42:41 +010028ifeq ($($(PLATFORM)_uses_dpdk_mlx5_pmd),yes)
29vpp_configure_args += --with-dpdk-mlx5-pmd
30endif
Damjan Marion28e3db92016-04-01 12:35:17 +020031endif