blob: 19e32efdc2462f9f217b4a1885c7b1f0efcef4f7 [file] [log] [blame]
Dave Barach8d0f2f02018-03-12 09:31:36 -04001# Copyright (c) 2015 Cisco and/or its affiliates.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at:
5#
6# http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
Damjan Marion7cd468a2016-12-19 23:05:39 +010014vpp_source = src
Ed Warnickecb9cada2015-12-08 15:45:58 -070015
Damjan Marion28e3db92016-04-01 12:35:17 +020016ifeq ($($(PLATFORM)_dpdk_shared_lib),yes)
17vpp_configure_args = --enable-dpdk-shared
18else
19vpp_configure_args =
20endif
Ed Warnickecb9cada2015-12-08 15:45:58 -070021
22# Platform dependent configure flags
23vpp_configure_args += $(vpp_configure_args_$(PLATFORM))
24
25
Damjan Marion7cd468a2016-12-19 23:05:39 +010026vpp_CPPFLAGS =
27vpp_LDFLAGS =
Christophe Fontainefef15b42016-04-09 12:38:49 +090028
Damjan Marion802c7fa2016-02-27 00:12:55 +010029ifneq ($($(PLATFORM)_uses_dpdk),no)
Damjan Marion28e3db92016-04-01 12:35:17 +020030ifeq ($($(PLATFORM)_uses_external_dpdk),yes)
31vpp_CPPFLAGS += -I$($(PLATFORM)_dpdk_inc_dir)
32vpp_LDFLAGS += -L$($(PLATFORM)_dpdk_lib_dir)
33else
Damjan Marione936bbe2016-02-25 23:17:38 +010034vpp_configure_depend += dpdk-install
Damjan Marion2ce7f982017-01-09 20:24:50 +010035vpp_CPPFLAGS += $(call installed_includes_fn, dpdk)/dpdk
Damjan Marione936bbe2016-02-25 23:17:38 +010036vpp_LDFLAGS += $(call installed_libs_fn, dpdk)
Damjan Marion2ce7f982017-01-09 20:24:50 +010037vpp_CPPFLAGS += -I/usr/include/dpdk
Damjan Marione936bbe2016-02-25 23:17:38 +010038endif
Damjan Marion696f1ad2016-12-23 22:42:41 +010039ifeq ($($(PLATFORM)_uses_dpdk_mlx5_pmd),yes)
40vpp_configure_args += --with-dpdk-mlx5-pmd
41endif
Rui Cai60bd3022018-05-11 21:52:22 +000042ifeq ($($(PLATFORM)_uses_dpdk_mlx4_pmd),yes)
43vpp_configure_args += --with-dpdk-mlx4-pmd
44endif
Marco Varleseedfa2fd2017-09-01 14:47:53 +020045else
46vpp_configure_args += --disable-dpdk-plugin
Damjan Marion28e3db92016-04-01 12:35:17 +020047endif
Filip Tehlar816f4372017-04-26 16:09:06 +020048
49ifeq ($($(PLATFORM)_enable_tests),yes)
50vpp_configure_args += --enable-tests
51endif