blob: ed89bb1b7b265a08a60bff7c5461a93970f1e9a6 [file] [log] [blame]
Ed Warnickecb9cada2015-12-08 15:45:58 -07001
Ed Warnickecb9cada2015-12-08 15:45:58 -07002ifneq (,$(findstring debug,$(TAG)))
3 DPDK_DEBUG=y
4else
5 DPDK_DEBUG=n
6endif
7
8DPDK_MAKE_ARGS = -C $(call find_source_fn,$(PACKAGE_SOURCE)) \
9 DPDK_BUILD_DIR=$(PACKAGE_BUILD_DIR) \
10 DPDK_INSTALL_DIR=$(PACKAGE_INSTALL_DIR) \
Ed Warnickecb9cada2015-12-08 15:45:58 -070011 DPDK_DEBUG=$(DPDK_DEBUG)
12
Sergio Gonzalez Monroyd04b60b2017-01-20 15:35:23 +000013DPDK_CRYPTO_SW_PMD=$(strip $($(PLATFORM)_uses_dpdk_cryptodev_sw))
14ifneq ($(DPDK_CRYPTO_SW_PMD),)
15DPDK_MAKE_ARGS += DPDK_CRYPTO_SW_PMD=y
Sergio Gonzalez Monroya10f62b2016-11-25 13:36:12 +000016endif
Ed Warnickecb9cada2015-12-08 15:45:58 -070017
Damjan Marion696f1ad2016-12-23 22:42:41 +010018DPDK_MLX5_PMD=$(strip $($(PLATFORM)_uses_dpdk_mlx5_pmd))
19ifneq ($(DPDK_MLX5_PMD),)
20DPDK_MAKE_ARGS += DPDK_MLX5_PMD=y
21endif
22
Dave Barachb635c562016-05-20 12:56:41 -040023DPDK_PLATFORM_TARGET=$(strip $($(PLATFORM)_dpdk_target))
24ifneq ($(DPDK_PLATFORM_TARGET),)
25DPDK_MAKE_ARGS += DPDK_TARGET=$(DPDK_PLATFORM_TARGET)
Christophe Fontaine737547e2016-05-11 08:40:33 +000026endif
27
28DPDK_MAKE_EXTRA_ARGS = $(strip $($(PLATFORM)_dpdk_make_extra_args))
29ifneq ($(DPDK_MAKE_EXTRA_ARGS),)
30DPDK_MAKE_ARGS += DPDK_MAKE_EXTRA_ARGS="$(DPDK_MAKE_EXTRA_ARGS)"
31endif
32
Damjan Marion2ce7f982017-01-09 20:24:50 +010033dpdk_configure = echo
Ed Warnickecb9cada2015-12-08 15:45:58 -070034
Damjan Marion2ce7f982017-01-09 20:24:50 +010035dpdk_make_args = $(DPDK_MAKE_ARGS) ebuild-build
Ed Warnickecb9cada2015-12-08 15:45:58 -070036
Damjan Marion2ce7f982017-01-09 20:24:50 +010037dpdk_install = make $(DPDK_MAKE_ARGS) ebuild-install