Commit 03f84b5b authored by Ben Walker's avatar Ben Walker
Browse files

env: Detect correct DPDK header install location



Official installs of DPDK place headers in a 'dpdk'
subdirectory under include, so detect that.

Change-Id: If64421c84c91cae31688994484c22fce398dc622
Signed-off-by: default avatarBen Walker <benjamin.walker@intel.com>
parent 7dce704c
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -49,7 +49,11 @@ else
export DPDK_ABS_DIR = $(abspath $(DPDK_DIR))
endif

ifneq (, $(wildcard $(DPDK_ABS_DIR)/include/rte_config.h))
DPDK_INC = -I$(DPDK_ABS_DIR)/include
else
DPDK_INC = -I$(DPDK_ABS_DIR)/include/dpdk
endif
DPDK_LIB = $(DPDK_ABS_DIR)/lib/librte_eal.a $(DPDK_ABS_DIR)/lib/librte_mempool.a \
	   $(DPDK_ABS_DIR)/lib/librte_ring.a