blob: 170f99c52b4ba9828ea30e578d9b5f6bf19d6d26 [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
Damjan Marion696f1ad2016-12-23 22:42:41 +010026ifeq ($($(PLATFORM)_uses_dpdk_mlx5_pmd),yes)
27vpp_configure_args += --with-dpdk-mlx5-pmd
28endif
Damjan Marion28e3db92016-04-01 12:35:17 +020029endif
Filip Tehlar816f4372017-04-26 16:09:06 +020030
31ifeq ($($(PLATFORM)_enable_tests),yes)
32vpp_configure_args += --enable-tests
33endif