aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorrainbow_0206 <jiangwenjiang@huawei.com>2018-10-18 16:28:54 +0800
committerrainbow_0206 <jiangwenjiang@huawei.com>2018-10-22 10:42:43 +0800
commita28a94065f013f459f7b4713e623538cba8337db (patch)
tree48a42eb7b361af9c9ec28db66c7c7e16a57d3e1b /scripts
parentaf0587ee6e44e9057ff6047a00fcd9015df1f5a1 (diff)
Fix: modify something that not standardized
1.replace RTP and NSPOL 2.delete the build_dpdk1805.sh Change-Id: Ic561cf5f5c8b3b4c4f42858bde5a41e4bdb45113 Signed-off-by: rainbow_0206 <jiangwenjiang@huawei.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build_dpdk1805.sh82
1 files changed, 0 insertions, 82 deletions
diff --git a/scripts/build_dpdk1805.sh b/scripts/build_dpdk1805.sh
deleted file mode 100755
index 2727877..0000000
--- a/scripts/build_dpdk1805.sh
+++ /dev/null
@@ -1,82 +0,0 @@
-#!/bin/bash -x
-#########################################################################
-#
-# Copyright (c) 2018 Huawei Technologies Co.,Ltd.
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at:
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#########################################################################
-
-echo "check whether dpdk installed"
-cur_directory=${PWD}
-check_dpdk=$(rpm -qa | grep dpdk)
-if [ -z "$check_dpdk" ]; then
- echo "system will install the dpdk"
-else
- echo "system has installed the dpdk"
- echo "$check_dpdk"
- exit 0
-fi
-
-cd ~
-mkdir -p rpmbuild/SOURCES
-
-cd ~/rpmbuild/SOURCES
-
-if [ ! -s dpdk-18.05.tar.gz ]; then
-wget http://dpdk.org/browse/dpdk/snapshot/dpdk-18.05.tar.gz
-fi
-
-tar xzvf dpdk-18.05.tar.gz
-cp dpdk-18.05/pkg/dpdk.spec ~/rpmbuild/SOURCES/
-
-echo "modify the spec"
-
-#get rid of the dependence of texlive-collection
-sed -i '/BuildRequires: texlive-collection/s/^/#&/' dpdk.spec
-
-#delete something of generating doc
-sed -i '/%{target} doc/s/^/#&/' dpdk.spec
-sed -i '70d' dpdk.spec
-sed -i '69a datadir=%{_datadir}/dpdk' dpdk.spec
-sed -i '70a # datadir=%{_datadir}/dpdk docdir=%{_docdir}/dpdk' dpdk.spec
-sed -i '/%files doc/s/^/#&/' dpdk.spec
-sed -i '/%doc %{_docdir}/s/^/#&/' dpdk.spec
-
-sed -i '54a sed -i '\''s!CONFIG_RTE_EXEC_ENV=.*!CONFIG_RTE_EXEC_ENV=y!1'\'' config/common_base' dpdk.spec
-sed -i '55a sed -i '\''s!CONFIG_RTE_BUILD_SHARED_LIB=.*!CONFIG_RTE_BUILD_SHARED_LIB=y!1'\'' config/common_base' dpdk.spec
-sed -i '56a sed -i '\''s!CONFIG_RTE_LIBRTE_EAL=.*!CONFIG_RTE_LIBRTE_EAL=y!1'\'' config/common_base' dpdk.spec
-sed -i '57a sed -i '\''s!CONFIG_RTE_EAL_PMD_PATH=.*!CONFIG_RTE_EAL_PMD_PATH="/tmp/dpdk/drivers/"!1'\'' config/common_base' dpdk.spec
-sed -i '58a sed -i '\''s!CONFIG_RTE_LIBRTE_DPAA2_USE_PHYS_IOVA=.*!CONFIG_RTE_LIBRTE_DPAA2_USE_PHYS_IOVA=n!1'\'' config/common_base' dpdk.spec
-
-echo "build the dependence"
-#sudo yum-builddep -y dpdk.spec
-sudo yum install -y libpcap-devel python-sphinx inkscape kernel-devel-`uname -r` doxygen libnuma-devel kernel-`uname -r`
-
-
-echo "generate the rpm package"
-rpmbuild -ba dpdk.spec --define "_sourcedir ${PWD}"
-if [ $? -eq 0 ]; then
- echo "dpdk rpm build success"
-else
- echo "dpdk rpm build error"
- exit 1
-fi
-
-echo "install the rpm"
-cd ../RPMS/x86_64/
-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/
-
-cd ${cur_directory}