blob: ab2e39a804e8d3409aeec25d92ebc65a72515c21 [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.
Ed Warnickecb9cada2015-12-08 15:45:58 -070013
Ed Warnickecb9cada2015-12-08 15:45:58 -070014ifneq (,$(findstring debug,$(TAG)))
15 DPDK_DEBUG=y
16else
17 DPDK_DEBUG=n
18endif
19
20DPDK_MAKE_ARGS = -C $(call find_source_fn,$(PACKAGE_SOURCE)) \
21 DPDK_BUILD_DIR=$(PACKAGE_BUILD_DIR) \
22 DPDK_INSTALL_DIR=$(PACKAGE_INSTALL_DIR) \
Ed Warnickecb9cada2015-12-08 15:45:58 -070023 DPDK_DEBUG=$(DPDK_DEBUG)
24
Damjan Marion696f1ad2016-12-23 22:42:41 +010025DPDK_MLX5_PMD=$(strip $($(PLATFORM)_uses_dpdk_mlx5_pmd))
26ifneq ($(DPDK_MLX5_PMD),)
27DPDK_MAKE_ARGS += DPDK_MLX5_PMD=y
28endif
29
Rui Cai60bd3022018-05-11 21:52:22 +000030DPDK_MLX4_PMD=$(strip $($(PLATFORM)_uses_dpdk_mlx4_pmd))
31ifneq ($(DPDK_MLX4_PMD),)
32DPDK_MAKE_ARGS += DPDK_MLX4_PMD=y
33endif
34
Dave Barachb635c562016-05-20 12:56:41 -040035DPDK_PLATFORM_TARGET=$(strip $($(PLATFORM)_dpdk_target))
36ifneq ($(DPDK_PLATFORM_TARGET),)
37DPDK_MAKE_ARGS += DPDK_TARGET=$(DPDK_PLATFORM_TARGET)
Christophe Fontaine737547e2016-05-11 08:40:33 +000038endif
39
40DPDK_MAKE_EXTRA_ARGS = $(strip $($(PLATFORM)_dpdk_make_extra_args))
41ifneq ($(DPDK_MAKE_EXTRA_ARGS),)
42DPDK_MAKE_ARGS += DPDK_MAKE_EXTRA_ARGS="$(DPDK_MAKE_EXTRA_ARGS)"
43endif
44
Damjan Marion2ce7f982017-01-09 20:24:50 +010045dpdk_configure = echo
Ed Warnickecb9cada2015-12-08 15:45:58 -070046
Damjan Marion2ce7f982017-01-09 20:24:50 +010047dpdk_make_args = $(DPDK_MAKE_ARGS) ebuild-build
Ed Warnickecb9cada2015-12-08 15:45:58 -070048
Damjan Marion2ce7f982017-01-09 20:24:50 +010049dpdk_install = make $(DPDK_MAKE_ARGS) ebuild-install