Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 1 | |
| 2 | DPDK_MARCH = $(strip $($(PLATFORM)_dpdk_arch)) |
| 3 | ifeq ($(DPDK_MARCH),) |
| 4 | DPDK_MARCH="native" |
| 5 | endif |
| 6 | |
Damjan Marion | 1c80e83 | 2016-05-11 23:07:18 +0200 | [diff] [blame] | 7 | DPDK_TUNE = $(strip $($(PLATFORM)_mtune)) |
| 8 | ifeq ($(DPDK_TUNE),) |
Damjan Marion | 68c69d8 | 2016-05-27 10:17:45 +0200 | [diff] [blame] | 9 | DPDK_TUNE="generic" |
Damjan Marion | 1c80e83 | 2016-05-11 23:07:18 +0200 | [diff] [blame] | 10 | endif |
| 11 | |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 12 | ifneq (,$(findstring debug,$(TAG))) |
| 13 | DPDK_DEBUG=y |
| 14 | else |
| 15 | DPDK_DEBUG=n |
| 16 | endif |
| 17 | |
| 18 | DPDK_MAKE_ARGS = -C $(call find_source_fn,$(PACKAGE_SOURCE)) \ |
| 19 | DPDK_BUILD_DIR=$(PACKAGE_BUILD_DIR) \ |
| 20 | DPDK_INSTALL_DIR=$(PACKAGE_INSTALL_DIR) \ |
| 21 | DPDK_MARCH=$(DPDK_MARCH) \ |
Damjan Marion | 1c80e83 | 2016-05-11 23:07:18 +0200 | [diff] [blame] | 22 | DPDK_TUNE=$(DPDK_TUNE) \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 23 | DPDK_DEBUG=$(DPDK_DEBUG) |
| 24 | |
Sergio Gonzalez Monroy | a10f62b | 2016-11-25 13:36:12 +0000 | [diff] [blame] | 25 | DPDK_CRYPTO_PMD=$(strip $($(PLATFORM)_uses_dpdk_cryptodev)) |
| 26 | ifneq ($(DPDK_CRYPTO_PMD),) |
| 27 | DPDK_MAKE_ARGS += DPDK_CRYPTO_PMD=y |
| 28 | endif |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 29 | |
Damjan Marion | 696f1ad | 2016-12-23 22:42:41 +0100 | [diff] [blame] | 30 | DPDK_MLX5_PMD=$(strip $($(PLATFORM)_uses_dpdk_mlx5_pmd)) |
| 31 | ifneq ($(DPDK_MLX5_PMD),) |
| 32 | DPDK_MAKE_ARGS += DPDK_MLX5_PMD=y |
| 33 | endif |
| 34 | |
Dave Barach | b635c56 | 2016-05-20 12:56:41 -0400 | [diff] [blame] | 35 | DPDK_PLATFORM_TARGET=$(strip $($(PLATFORM)_dpdk_target)) |
| 36 | ifneq ($(DPDK_PLATFORM_TARGET),) |
| 37 | DPDK_MAKE_ARGS += DPDK_TARGET=$(DPDK_PLATFORM_TARGET) |
Christophe Fontaine | 737547e | 2016-05-11 08:40:33 +0000 | [diff] [blame] | 38 | endif |
| 39 | |
| 40 | DPDK_MAKE_EXTRA_ARGS = $(strip $($(PLATFORM)_dpdk_make_extra_args)) |
| 41 | ifneq ($(DPDK_MAKE_EXTRA_ARGS),) |
| 42 | DPDK_MAKE_ARGS += DPDK_MAKE_EXTRA_ARGS="$(DPDK_MAKE_EXTRA_ARGS)" |
| 43 | endif |
| 44 | |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 45 | dpdk_configure = echo |
| 46 | |
| 47 | dpdk_make_args = $(DPDK_MAKE_ARGS) config |
| 48 | |
| 49 | dpdk_install = make $(DPDK_MAKE_ARGS) build |