Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 1 | |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 2 | ifneq (,$(findstring debug,$(TAG))) |
| 3 | DPDK_DEBUG=y |
| 4 | else |
| 5 | DPDK_DEBUG=n |
| 6 | endif |
| 7 | |
| 8 | DPDK_MAKE_ARGS = -C $(call find_source_fn,$(PACKAGE_SOURCE)) \ |
| 9 | DPDK_BUILD_DIR=$(PACKAGE_BUILD_DIR) \ |
| 10 | DPDK_INSTALL_DIR=$(PACKAGE_INSTALL_DIR) \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 11 | DPDK_DEBUG=$(DPDK_DEBUG) |
| 12 | |
Sergio Gonzalez Monroy | d04b60b | 2017-01-20 15:35:23 +0000 | [diff] [blame] | 13 | DPDK_CRYPTO_SW_PMD=$(strip $($(PLATFORM)_uses_dpdk_cryptodev_sw)) |
| 14 | ifneq ($(DPDK_CRYPTO_SW_PMD),) |
| 15 | DPDK_MAKE_ARGS += DPDK_CRYPTO_SW_PMD=y |
Sergio Gonzalez Monroy | a10f62b | 2016-11-25 13:36:12 +0000 | [diff] [blame] | 16 | endif |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 17 | |
Damjan Marion | 696f1ad | 2016-12-23 22:42:41 +0100 | [diff] [blame] | 18 | DPDK_MLX5_PMD=$(strip $($(PLATFORM)_uses_dpdk_mlx5_pmd)) |
| 19 | ifneq ($(DPDK_MLX5_PMD),) |
| 20 | DPDK_MAKE_ARGS += DPDK_MLX5_PMD=y |
| 21 | endif |
| 22 | |
Dave Barach | b635c56 | 2016-05-20 12:56:41 -0400 | [diff] [blame] | 23 | DPDK_PLATFORM_TARGET=$(strip $($(PLATFORM)_dpdk_target)) |
| 24 | ifneq ($(DPDK_PLATFORM_TARGET),) |
| 25 | DPDK_MAKE_ARGS += DPDK_TARGET=$(DPDK_PLATFORM_TARGET) |
Christophe Fontaine | 737547e | 2016-05-11 08:40:33 +0000 | [diff] [blame] | 26 | endif |
| 27 | |
| 28 | DPDK_MAKE_EXTRA_ARGS = $(strip $($(PLATFORM)_dpdk_make_extra_args)) |
| 29 | ifneq ($(DPDK_MAKE_EXTRA_ARGS),) |
| 30 | DPDK_MAKE_ARGS += DPDK_MAKE_EXTRA_ARGS="$(DPDK_MAKE_EXTRA_ARGS)" |
| 31 | endif |
| 32 | |
Damjan Marion | 2ce7f98 | 2017-01-09 20:24:50 +0100 | [diff] [blame] | 33 | dpdk_configure = echo |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 34 | |
Damjan Marion | 2ce7f98 | 2017-01-09 20:24:50 +0100 | [diff] [blame] | 35 | dpdk_make_args = $(DPDK_MAKE_ARGS) ebuild-build |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 36 | |
Damjan Marion | 2ce7f98 | 2017-01-09 20:24:50 +0100 | [diff] [blame] | 37 | dpdk_install = make $(DPDK_MAKE_ARGS) ebuild-install |