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: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
parent
7dce704c20
commit
03f84b5bbf
@ -49,7 +49,11 @@ else
|
|||||||
export DPDK_ABS_DIR = $(abspath $(DPDK_DIR))
|
export DPDK_ABS_DIR = $(abspath $(DPDK_DIR))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifneq (, $(wildcard $(DPDK_ABS_DIR)/include/rte_config.h))
|
||||||
DPDK_INC = -I$(DPDK_ABS_DIR)/include
|
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_LIB = $(DPDK_ABS_DIR)/lib/librte_eal.a $(DPDK_ABS_DIR)/lib/librte_mempool.a \
|
||||||
$(DPDK_ABS_DIR)/lib/librte_ring.a
|
$(DPDK_ABS_DIR)/lib/librte_ring.a
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user