blob: 2bfc4b49d328bd3eb775d5e1854ae80ce0df6270 [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
7ifneq (,$(findstring debug,$(TAG)))
8 DPDK_DEBUG=y
9else
10 DPDK_DEBUG=n
11endif
12
13DPDK_MAKE_ARGS = -C $(call find_source_fn,$(PACKAGE_SOURCE)) \
14 DPDK_BUILD_DIR=$(PACKAGE_BUILD_DIR) \
15 DPDK_INSTALL_DIR=$(PACKAGE_INSTALL_DIR) \
16 DPDK_MARCH=$(DPDK_MARCH) \
17 DPDK_DEBUG=$(DPDK_DEBUG)
18
19
Christophe Fontaine737547e2016-05-11 08:40:33 +000020TARGET=$(strip $($(PLATFORM)_dpdk_target))
21ifneq ($(TARGET),)
22DPDK_MAKE_ARGS += DPDK_TARGET=$(TARGET)
23endif
24
25DPDK_MAKE_EXTRA_ARGS = $(strip $($(PLATFORM)_dpdk_make_extra_args))
26ifneq ($(DPDK_MAKE_EXTRA_ARGS),)
27DPDK_MAKE_ARGS += DPDK_MAKE_EXTRA_ARGS="$(DPDK_MAKE_EXTRA_ARGS)"
28endif
29
Ed Warnickecb9cada2015-12-08 15:45:58 -070030dpdk_configure = echo
31
32dpdk_make_args = $(DPDK_MAKE_ARGS) config
33
34dpdk_install = make $(DPDK_MAKE_ARGS) build