blob: f38b82bfcd6acb179b04c451d0022e0aea5280d2 [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),)
9 DPDK_MARCH="generic"
10endif
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
25
Dave Barachb635c562016-05-20 12:56:41 -040026DPDK_PLATFORM_TARGET=$(strip $($(PLATFORM)_dpdk_target))
27ifneq ($(DPDK_PLATFORM_TARGET),)
28DPDK_MAKE_ARGS += DPDK_TARGET=$(DPDK_PLATFORM_TARGET)
Christophe Fontaine737547e2016-05-11 08:40:33 +000029endif
30
31DPDK_MAKE_EXTRA_ARGS = $(strip $($(PLATFORM)_dpdk_make_extra_args))
32ifneq ($(DPDK_MAKE_EXTRA_ARGS),)
33DPDK_MAKE_ARGS += DPDK_MAKE_EXTRA_ARGS="$(DPDK_MAKE_EXTRA_ARGS)"
34endif
35
Ed Warnickecb9cada2015-12-08 15:45:58 -070036dpdk_configure = echo
37
38dpdk_make_args = $(DPDK_MAKE_ARGS) config
39
40dpdk_install = make $(DPDK_MAKE_ARGS) build