summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorQiuwen Lu <[email protected]>2017-08-04 13:59:34 +0800
committerQiuwen Lu <[email protected]>2017-08-04 13:59:34 +0800
commit7d2797de04ef3d067064756bb51b2d06109c3683 (patch)
tree3390029de50e97405bd6ecf504d32c06331c1f2c /cmake
parent1a6c1e15c5e96fa90a8ccdc45426a144c3fb8ac2 (diff)
修改默认安装路径,打包时增加打包DPDK自带的诊断工具。
- 修改安装路径由/usr/local/到/opt/mrzcpd - 增加环境变量配置脚本,将C_INCLUDE_DIR等环境变量指向/opt/mrzcpd对应目录;
Diffstat (limited to 'cmake')
-rw-r--r--cmake/InstallDPDK.cmake12
1 files changed, 11 insertions, 1 deletions
diff --git a/cmake/InstallDPDK.cmake b/cmake/InstallDPDK.cmake
index 08f0ab2..d327002 100644
--- a/cmake/InstallDPDK.cmake
+++ b/cmake/InstallDPDK.cmake
@@ -35,4 +35,14 @@ if(EXISTS ${DPDK_ROOT_DIR}/share/dpdk/usertools/dpdk-devbind.py)
endif()
install(PROGRAMS ${MR_BIND_TOOLS_FROM} DESTINATION ${TOOLS_INSTALL_PATH}
- RENAME mr_nic_bind COMPONENT Program) \ No newline at end of file
+ RENAME mrtools-devinfo COMPONENT Program)
+
+# DPDK binary tools
+
+set(DPDK_BINARY_TOOLS_PATH ${DPDK_ROOT_DIR}/bin/)
+
+install(PROGRAMS ${DPDK_BINARY_TOOLS_PATH}/dpdk-pdump DESTINATION ${TOOLS_INSTALL_PATH}
+ RENAME mrtools-pdump COMPONENT Program)
+
+install(PROGRAMS ${DPDK_BINARY_TOOLS_PATH}/dpdk-procinfo DESTINATION ${TOOLS_INSTALL_PATH}
+ RENAME mrtools-pinfo COMPONENT Program) \ No newline at end of file