blob: 4b3a7c0132c3fa1cece53e1545bab2d50dc7472e [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
Damjan Marion4a6cb832018-09-18 18:41:38 +020014external_source = build
15
Ed Warnickecb9cada2015-12-08 15:45:58 -070016ifneq (,$(findstring debug,$(TAG)))
17 DPDK_DEBUG=y
18else
19 DPDK_DEBUG=n
20endif
21
22DPDK_MAKE_ARGS = -C $(call find_source_fn,$(PACKAGE_SOURCE)) \
Damjan Marion561f2732018-09-21 12:27:45 +020023 BUILD_DIR=$(PACKAGE_BUILD_DIR) \
24 INSTALL_DIR=$(PACKAGE_INSTALL_DIR) \
Ed Warnickecb9cada2015-12-08 15:45:58 -070025 DPDK_DEBUG=$(DPDK_DEBUG)
26
Damjan Marion696f1ad2016-12-23 22:42:41 +010027DPDK_MLX5_PMD=$(strip $($(PLATFORM)_uses_dpdk_mlx5_pmd))
28ifneq ($(DPDK_MLX5_PMD),)
29DPDK_MAKE_ARGS += DPDK_MLX5_PMD=y
30endif
31
Matthew Smith84caa172019-02-28 10:33:12 -060032DPDK_MLX_IBVERBS_DLOPEN=$(strip $($(PLATFORM)_uses_dpdk_ibverbs_link_dlopen))
33ifneq ($(DPDK_MLX_IBVERBS_DLOPEN),)
34DPDK_MAKE_ARGS += DPDK_MLX_IBVERBS_DLOPEN=y
Sirshak Dasc263e482018-09-22 14:57:26 -050035endif
36
Rui Cai60bd3022018-05-11 21:52:22 +000037DPDK_MLX4_PMD=$(strip $($(PLATFORM)_uses_dpdk_mlx4_pmd))
38ifneq ($(DPDK_MLX4_PMD),)
39DPDK_MAKE_ARGS += DPDK_MLX4_PMD=y
40endif
41
Dave Barachb635c562016-05-20 12:56:41 -040042DPDK_PLATFORM_TARGET=$(strip $($(PLATFORM)_dpdk_target))
43ifneq ($(DPDK_PLATFORM_TARGET),)
44DPDK_MAKE_ARGS += DPDK_TARGET=$(DPDK_PLATFORM_TARGET)
Christophe Fontaine737547e2016-05-11 08:40:33 +000045endif
46
Lijian.Zhang49c1bc82019-02-27 18:17:34 +080047ifneq (,$(TARGET_PLATFORM))
48DPDK_MAKE_ARGS += DPDK_AARCH64_GENERIC=n
49endif
50
Christophe Fontaine737547e2016-05-11 08:40:33 +000051DPDK_MAKE_EXTRA_ARGS = $(strip $($(PLATFORM)_dpdk_make_extra_args))
52ifneq ($(DPDK_MAKE_EXTRA_ARGS),)
53DPDK_MAKE_ARGS += DPDK_MAKE_EXTRA_ARGS="$(DPDK_MAKE_EXTRA_ARGS)"
54endif
55
Damjan Marion4a6cb832018-09-18 18:41:38 +020056external_configure = echo
Ed Warnickecb9cada2015-12-08 15:45:58 -070057
Mohammed Hawari8f5c6102020-11-30 15:04:43 +010058external_build = echo
Ed Warnickecb9cada2015-12-08 15:45:58 -070059
Mohammed Hawari8f5c6102020-11-30 15:04:43 +010060external_install = make $(DPDK_MAKE_ARGS) -C external ebuild-build ebuild-install