Dave Barach | 8d0f2f0 | 2018-03-12 09:31:36 -0400 | [diff] [blame] | 1 | # 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 Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 13 | |
Damjan Marion | 4a6cb83 | 2018-09-18 18:41:38 +0200 | [diff] [blame] | 14 | external_source = build |
| 15 | |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 16 | ifneq (,$(findstring debug,$(TAG))) |
| 17 | DPDK_DEBUG=y |
| 18 | else |
| 19 | DPDK_DEBUG=n |
| 20 | endif |
| 21 | |
| 22 | DPDK_MAKE_ARGS = -C $(call find_source_fn,$(PACKAGE_SOURCE)) \ |
Damjan Marion | 561f273 | 2018-09-21 12:27:45 +0200 | [diff] [blame] | 23 | BUILD_DIR=$(PACKAGE_BUILD_DIR) \ |
| 24 | INSTALL_DIR=$(PACKAGE_INSTALL_DIR) \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 25 | DPDK_DEBUG=$(DPDK_DEBUG) |
| 26 | |
Damjan Marion | 696f1ad | 2016-12-23 22:42:41 +0100 | [diff] [blame] | 27 | DPDK_MLX5_PMD=$(strip $($(PLATFORM)_uses_dpdk_mlx5_pmd)) |
| 28 | ifneq ($(DPDK_MLX5_PMD),) |
| 29 | DPDK_MAKE_ARGS += DPDK_MLX5_PMD=y |
| 30 | endif |
| 31 | |
Matthew Smith | 84caa17 | 2019-02-28 10:33:12 -0600 | [diff] [blame] | 32 | DPDK_MLX_IBVERBS_DLOPEN=$(strip $($(PLATFORM)_uses_dpdk_ibverbs_link_dlopen)) |
| 33 | ifneq ($(DPDK_MLX_IBVERBS_DLOPEN),) |
| 34 | DPDK_MAKE_ARGS += DPDK_MLX_IBVERBS_DLOPEN=y |
Sirshak Das | c263e48 | 2018-09-22 14:57:26 -0500 | [diff] [blame] | 35 | endif |
| 36 | |
Rui Cai | 60bd302 | 2018-05-11 21:52:22 +0000 | [diff] [blame] | 37 | DPDK_MLX4_PMD=$(strip $($(PLATFORM)_uses_dpdk_mlx4_pmd)) |
| 38 | ifneq ($(DPDK_MLX4_PMD),) |
| 39 | DPDK_MAKE_ARGS += DPDK_MLX4_PMD=y |
| 40 | endif |
| 41 | |
Dave Barach | b635c56 | 2016-05-20 12:56:41 -0400 | [diff] [blame] | 42 | DPDK_PLATFORM_TARGET=$(strip $($(PLATFORM)_dpdk_target)) |
| 43 | ifneq ($(DPDK_PLATFORM_TARGET),) |
| 44 | DPDK_MAKE_ARGS += DPDK_TARGET=$(DPDK_PLATFORM_TARGET) |
Christophe Fontaine | 737547e | 2016-05-11 08:40:33 +0000 | [diff] [blame] | 45 | endif |
| 46 | |
Lijian.Zhang | 49c1bc8 | 2019-02-27 18:17:34 +0800 | [diff] [blame] | 47 | ifneq (,$(TARGET_PLATFORM)) |
| 48 | DPDK_MAKE_ARGS += DPDK_AARCH64_GENERIC=n |
| 49 | endif |
| 50 | |
Christophe Fontaine | 737547e | 2016-05-11 08:40:33 +0000 | [diff] [blame] | 51 | DPDK_MAKE_EXTRA_ARGS = $(strip $($(PLATFORM)_dpdk_make_extra_args)) |
| 52 | ifneq ($(DPDK_MAKE_EXTRA_ARGS),) |
| 53 | DPDK_MAKE_ARGS += DPDK_MAKE_EXTRA_ARGS="$(DPDK_MAKE_EXTRA_ARGS)" |
| 54 | endif |
| 55 | |
Nick Brown | ae4ed32 | 2021-09-07 18:24:42 +0100 | [diff] [blame] | 56 | ifeq ("$(V)","1") |
| 57 | DPDK_MAKE_ARGS += DPDK_VERBOSE=1 |
| 58 | endif |
| 59 | |
Damjan Marion | 4a6cb83 | 2018-09-18 18:41:38 +0200 | [diff] [blame] | 60 | external_configure = echo |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 61 | |
Mohammed Hawari | 8f5c610 | 2020-11-30 15:04:43 +0100 | [diff] [blame] | 62 | external_build = echo |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 63 | |
Mohammed Hawari | 8f5c610 | 2020-11-30 15:04:43 +0100 | [diff] [blame] | 64 | external_install = make $(DPDK_MAKE_ARGS) -C external ebuild-build ebuild-install |