diff options
author | 2018-07-27 17:23:49 +0800 | |
---|---|---|
committer | 2018-07-28 08:49:14 +0800 | |
commit | 74473a500b7c3dc38aec7f6eb3146bd5287fa52c (patch) | |
tree | 81911323e263eacaa04a2c3bcb4069bea7cfc97a /scripts | |
parent | 97bf4e9ca99f1343288cbe0e2fafdaee1cb6fc8b (diff) |
Refactor: enlarge the buf for parsing the lib path
Also add some minor fix for rpm install error check
Change-Id: Id190d1caea888c0c19c0d1162265175e5a4e2a58
Signed-off-by: Yalei Wang <william.wangyalei@huawei.com>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/build.sh | 2 | ||||
-rwxr-xr-x | scripts/build_dpdk1802.sh | 6 | ||||
-rwxr-xr-x | scripts/build_dpdk1805.sh | 6 |
3 files changed, 7 insertions, 7 deletions
diff --git a/scripts/build.sh b/scripts/build.sh index 6379ed1..d412956 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -107,7 +107,7 @@ fi #===========build DPDK================ if [ "$OS_ID" == "centos" ]; then - bash -x $DMM_DIR/scripts/build_dpdk1802.sh + bash -x $DMM_DIR/scripts/build_dpdk1802.sh || exit 1 else if [ ! -d /usr/include/dpdk ] || [ ! -d /usr/share/dpdk ] || [ ! -d /usr/lib/modules/4.4.0-31-generic/extra/dpdk ]; then diff --git a/scripts/build_dpdk1802.sh b/scripts/build_dpdk1802.sh index 6430aed..01379d6 100755 --- a/scripts/build_dpdk1802.sh +++ b/scripts/build_dpdk1802.sh @@ -1,3 +1,4 @@ +#!/bin/bash -x ######################################################################### # # Copyright (c) 2018 Huawei Technologies Co.,Ltd. @@ -13,7 +14,6 @@ # See the License for the specific language governing permissions and # limitations under the License. ######################################################################### -#!/bin/bash -x echo "check whether dpdk installed" cur_directory=${PWD} @@ -72,8 +72,8 @@ fi echo "install the rpm" cd ../RPMS/x86_64/ -sudo rpm -ivh dpdk-18.02-1.x86_64.rpm -sudo rpm -ivh dpdk-devel-18.02-1.x86_64.rpm +sudo rpm -ivh dpdk-18.02-1.x86_64.rpm || exit 1 +sudo rpm -ivh dpdk-devel-18.02-1.x86_64.rpm || exit 1 mkdir -p /tmp/dpdk/drivers/ cp -f /usr/lib64/librte_mempool_ring.so /tmp/dpdk/drivers/ diff --git a/scripts/build_dpdk1805.sh b/scripts/build_dpdk1805.sh index 0a91a8f..805153b 100755 --- a/scripts/build_dpdk1805.sh +++ b/scripts/build_dpdk1805.sh @@ -1,3 +1,4 @@ +#!/bin/bash -x ######################################################################### # # Copyright (c) 2018 Huawei Technologies Co.,Ltd. @@ -13,7 +14,6 @@ # See the License for the specific language governing permissions and # limitations under the License. ######################################################################### -#!/bin/bash -x echo "check whether dpdk installed" cur_directory=${PWD} @@ -73,8 +73,8 @@ fi echo "install the rpm" cd ../RPMS/x86_64/ -sudo rpm -ivh dpdk-18.05-1.x86_64.rpm -sudo rpm -ivh dpdk-devel-18.05-1.x86_64.rpm +sudo rpm -ivh dpdk-18.05-1.x86_64.rpm || exit 1 +sudo rpm -ivh dpdk-devel-18.05-1.x86_64.rpm || exit 1 mkdir -p /tmp/dpdk/drivers/ cp -f /usr/lib64/librte_mempool_ring.so /tmp/dpdk/drivers/ |