blob: ddfb8fd192ed52565b1cfb56c7a5489543a1c387 [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
Damjan Marion696f1ad2016-12-23 22:42:41 +010013DPDK_MLX5_PMD=$(strip $($(PLATFORM)_uses_dpdk_mlx5_pmd))
14ifneq ($(DPDK_MLX5_PMD),)
15DPDK_MAKE_ARGS += DPDK_MLX5_PMD=y
16endif
17
Dave Barachb635c562016-05-20 12:56:41 -040018DPDK_PLATFORM_TARGET=$(strip $($(PLATFORM)_dpdk_target))
19ifneq ($(DPDK_PLATFORM_TARGET),)
20DPDK_MAKE_ARGS += DPDK_TARGET=$(DPDK_PLATFORM_TARGET)
Christophe Fontaine737547e2016-05-11 08:40:33 +000021endif
22
23DPDK_MAKE_EXTRA_ARGS = $(strip $($(PLATFORM)_dpdk_make_extra_args))
24ifneq ($(DPDK_MAKE_EXTRA_ARGS),)
25DPDK_MAKE_ARGS += DPDK_MAKE_EXTRA_ARGS="$(DPDK_MAKE_EXTRA_ARGS)"
26endif
27
Damjan Marion2ce7f982017-01-09 20:24:50 +010028dpdk_configure = echo
Ed Warnickecb9cada2015-12-08 15:45:58 -070029
Damjan Marion2ce7f982017-01-09 20:24:50 +010030dpdk_make_args = $(DPDK_MAKE_ARGS) ebuild-build
Ed Warnickecb9cada2015-12-08 15:45:58 -070031
Damjan Marion2ce7f982017-01-09 20:24:50 +010032dpdk_install = make $(DPDK_MAKE_ARGS) ebuild-install