blob: 6c136824733d6b66cfdaadca105ff72aac3accc1 [file] [log] [blame]
Ed Warnickecb9cada2015-12-08 15:45:58 -07001
2DPDK_MARCH = $(strip $($(PLATFORM)_dpdk_arch))
3ifeq ($(DPDK_MARCH),)
4 DPDK_MARCH="native"
5endif
6
Damjan Marion1c80e832016-05-11 23:07:18 +02007DPDK_TUNE = $(strip $($(PLATFORM)_mtune))
8ifeq ($(DPDK_TUNE),)
Damjan Marion68c69d82016-05-27 10:17:45 +02009 DPDK_TUNE="generic"
Damjan Marion1c80e832016-05-11 23:07:18 +020010endif
11
Ed Warnickecb9cada2015-12-08 15:45:58 -070012ifneq (,$(findstring debug,$(TAG)))
13 DPDK_DEBUG=y
14else
15 DPDK_DEBUG=n
16endif
17
18DPDK_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 Marion1c80e832016-05-11 23:07:18 +020022 DPDK_TUNE=$(DPDK_TUNE) \
Ed Warnickecb9cada2015-12-08 15:45:58 -070023 DPDK_DEBUG=$(DPDK_DEBUG)
24
Sergio Gonzalez Monroya10f62b2016-11-25 13:36:12 +000025DPDK_CRYPTO_PMD=$(strip $($(PLATFORM)_uses_dpdk_cryptodev))
26ifneq ($(DPDK_CRYPTO_PMD),)
27DPDK_MAKE_ARGS += DPDK_CRYPTO_PMD=y
28endif
Ed Warnickecb9cada2015-12-08 15:45:58 -070029
Damjan Marion696f1ad2016-12-23 22:42:41 +010030DPDK_MLX5_PMD=$(strip $($(PLATFORM)_uses_dpdk_mlx5_pmd))
31ifneq ($(DPDK_MLX5_PMD),)
32DPDK_MAKE_ARGS += DPDK_MLX5_PMD=y
33endif
34
Dave Barachb635c562016-05-20 12:56:41 -040035DPDK_PLATFORM_TARGET=$(strip $($(PLATFORM)_dpdk_target))
36ifneq ($(DPDK_PLATFORM_TARGET),)
37DPDK_MAKE_ARGS += DPDK_TARGET=$(DPDK_PLATFORM_TARGET)
Christophe Fontaine737547e2016-05-11 08:40:33 +000038endif
39
40DPDK_MAKE_EXTRA_ARGS = $(strip $($(PLATFORM)_dpdk_make_extra_args))
41ifneq ($(DPDK_MAKE_EXTRA_ARGS),)
42DPDK_MAKE_ARGS += DPDK_MAKE_EXTRA_ARGS="$(DPDK_MAKE_EXTRA_ARGS)"
43endif
44
Damjan Marion2ce7f982017-01-09 20:24:50 +010045dpdk_configure = echo
Ed Warnickecb9cada2015-12-08 15:45:58 -070046
Damjan Marion2ce7f982017-01-09 20:24:50 +010047dpdk_make_args = $(DPDK_MAKE_ARGS) ebuild-build
Ed Warnickecb9cada2015-12-08 15:45:58 -070048
Damjan Marion2ce7f982017-01-09 20:24:50 +010049dpdk_install = make $(DPDK_MAKE_ARGS) ebuild-install