summaryrefslogtreecommitdiffstats
path: root/linux_dpdk
diff options
context:
space:
mode:
authorHanoh Haim <hhaim@cisco.com>2016-12-11 10:29:05 +0200
committerHanoh Haim <hhaim@cisco.com>2016-12-11 11:50:18 +0200
commit6b80dbde69c8a0d57b081457415108bd1fa46523 (patch)
tree35feee8c86454b764df6a66955478dbef94035ea /linux_dpdk
parent568d62a95612dd3210497c870be3d57eb728f45c (diff)
ConnextX-4 local build take the right headers
Signed-off-by: Hanoh Haim <hhaim@cisco.com>
Diffstat (limited to 'linux_dpdk')
-rwxr-xr-xlinux_dpdk/ws_main.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/linux_dpdk/ws_main.py b/linux_dpdk/ws_main.py
index fa427fee..43762443 100755
--- a/linux_dpdk/ws_main.py
+++ b/linux_dpdk/ws_main.py
@@ -586,11 +586,12 @@ includes_path =''' ../src/pal/linux_dpdk/
../src/dpdk/lib/librte_ring/
''';
+
+dpdk_includes_verb_path =''
+
dpdk_includes_path =''' ../src/
../src/pal/linux_dpdk/
../src/pal/linux_dpdk/dpdk
- ../external_libs/ibverbs/include/
-
../src/dpdk/drivers/
../src/dpdk/drivers/net/
../src/dpdk/drivers/net/af_packet/
@@ -650,6 +651,8 @@ dpdk_includes_path =''' ../src/
''';
+
+
DPDK_FLAGS=['-D_GNU_SOURCE', '-DPF_DRIVER', '-DX722_SUPPORT', '-DX722_A0_SUPPORT', '-DVF_DRIVER', '-DINTEGRATED_VF'];
client_external_libs = [
@@ -808,10 +811,9 @@ def build_prog (bld, build_obj):
if not build_obj.isRelease ():
debug_file_list +=ef_src.file_list(top)
-
bld.objects(
features='c ',
- includes = dpdk_includes_path,
+ includes = dpdk_includes_path+dpdk_includes_verb_path,
cflags = (build_obj.get_c_flags()+DPDK_FLAGS ),
source = bp_dpdk.file_list(top),
@@ -841,6 +843,7 @@ def post_build(bld):
install_single_system(bld, exec_p, obj);
def build(bld):
+ global dpdk_includes_verb_path;
bld.add_pre_fun(pre_build)
bld.add_post_fun(post_build);
@@ -850,6 +853,7 @@ def build(bld):
bld.read_shlib(name='ibverbs')
else:
ibverbs_lib_path='external_libs/ibverbs/'
+ dpdk_includes_verb_path =' \n ../external_libs/ibverbs/include/ \n'
bld.read_shlib( name='ibverbs' , paths=[top+ibverbs_lib_path] )
check_ibverbs_deps(bld)