From patchwork Thu Aug 16 18:00:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 144442 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp2378189ljj; Thu, 16 Aug 2018 11:04:19 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzSVKZDYnilCY2vLFfQFzZjJwiNBQAVHDtMRAT63CHM7rwBXpUi9K3kk6cY9O+e/bzEwPvu X-Received: by 2002:a0c:f804:: with SMTP id r4-v6mr27852184qvn.156.1534442659719; Thu, 16 Aug 2018 11:04:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534442659; cv=none; d=google.com; s=arc-20160816; b=swRR95BBN04s7iYZjhG5NldN73cD3PdxZaeWf4RCDFa8TKHM4oB7YD3nO8MWtw7Exx ohzW3UJ7LaNCPWjrPw4jns8O8F9bKVuvfF+gVPBtiGsHJ7wMoN5wrproBQo3SHTIqyqZ Ble5G9CSzVFOkmf7k2waaQLcMzaNycL+YS8U4wQK1bdfNZeYX3O7biMDMx0vdXckzEbN D5wfh0CnTpLFGS6OsoEyqvYVBrZTJBHzhOQ3uIgQybFuXrytlNhVkR7exfJV5RF/j/mP VTswYZJdFhec018nQlFXYttTVeVawBoT0ReX8u99t5E/pBtROEDX4FRDbcbTuuTHxmHr MlUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=HX3dSXdilPJ3DLrMxmWsUvlMEXidywa2bO9rUqOkAko=; b=jpRw00ys0b9qMkIo71E/FDfJGMI5GqwRK+HRBVeGS+pCbxuYI88Q1CPZTEKzQHBgbb ex7P9Lv29p55jNA9Bd8Ig2ivZOnM49+qb8rCm9RmUBwf1XRsjTRGp9F7QsK581QQs3fz p+0pUHDKhTdQj+FslCBDG2y/9W1JOYYHh1kiIbj8UyKxPzggsvyRkstGsF0NApkjRFvD oLnv69gF6yNJuYEfs3tIt9s75sMm1UjrMpCbEglnZl+YU4/BnWOXynVgVOnBlzKnBczX f8n8gKhZv4WhZhcqziij4/azialMcYnauNCmiE74VobEoqSsyTsup904NaGDkWXp2+Lw Ma2Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id 46-v6si104404qtv.342.2018.08.16.11.04.19; Thu, 16 Aug 2018 11:04:19 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id 6A4F96863F; Thu, 16 Aug 2018 18:04:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_LOW autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 3A1F868620; Thu, 16 Aug 2018 18:00:53 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id C21EC685E8; Thu, 16 Aug 2018 18:00:25 +0000 (UTC) Received: from forward103j.mail.yandex.net (forward103j.mail.yandex.net [5.45.198.246]) by lists.linaro.org (Postfix) with ESMTPS id 7A089685FC for ; Thu, 16 Aug 2018 18:00:20 +0000 (UTC) Received: from mxback10o.mail.yandex.net (mxback10o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::24]) by forward103j.mail.yandex.net (Yandex) with ESMTP id 0ACEC34C3D68 for ; Thu, 16 Aug 2018 21:00:19 +0300 (MSK) Received: from smtp1o.mail.yandex.net (smtp1o.mail.yandex.net [2a02:6b8:0:1a2d::25]) by mxback10o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id wA7oGnuoLE-0I4GmAWr; Thu, 16 Aug 2018 21:00:19 +0300 Received: by smtp1o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 161oJSJY57-0HfqoMfF; Thu, 16 Aug 2018 21:00:17 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Thu, 16 Aug 2018 18:00:04 +0000 Message-Id: <1534442411-9502-7-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1534442411-9502-1-git-send-email-odpbot@yandex.ru> References: <1534442411-9502-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 647 Subject: [lng-odp] [PATCH v6 6/13] ci: use dpdk installed with apt-get X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: Maxim Uvarov Signed-off-by: Maxim Uvarov --- /** Email created from pull request 647 (muvarov:master_docker2) ** https://github.com/Linaro/odp/pull/647 ** Patch: https://github.com/Linaro/odp/pull/647.patch ** Base sha: 6886a2ca3d3dd1157302ddee424c36f632903bd0 ** Merge commit sha: f6c5d19f7fb9f83b8a2cbbed692a510146ca7df9 **/ scripts/ci/build_dpdk.sh | 89 -------------------------------------- scripts/ci/build_x86_64.sh | 8 +--- scripts/ci/coverage.sh | 6 +-- 3 files changed, 2 insertions(+), 101 deletions(-) delete mode 100755 scripts/ci/build_dpdk.sh diff --git a/scripts/ci/build_dpdk.sh b/scripts/ci/build_dpdk.sh deleted file mode 100755 index 9ceac4529..000000000 --- a/scripts/ci/build_dpdk.sh +++ /dev/null @@ -1,89 +0,0 @@ -#!/bin/bash -x - -set -e - -DPDK_VERS="17.11.2" -CROSS= - - -case "$CROSS_ARCH" in - "arm64") - DPDK_TARGET="arm64-armv8a-linuxapp-" - ;; - "armhf") - DPDK_TARGET="arm-armv7a-linuxapp-" - ;; - "i386") - DPDK_TARGET="i686-native-linuxapp-" - ;; - "") - DPDK_TARGET="x86_64-native-linuxapp-" - DPDK_MACHINE=snb - ;; -esac - - -if [ -n "$DPDK_TARGET" ] ; then - if [ "${CC#clang}" != "${CC}" ] ; then - DPDKCC=clang ; - else - DPDKCC=gcc ; - fi - if [ -n "$DPDK_SHARED" ] ; then - TARGET="${DPDK_TARGET}$DPDKCC"-shared - LIBDPDKEXT=so - export LD_LIBRARY_PATH="`pwd`/${TARGET}:$LD_LIBRARY_PATH" - echo $LD_LIBRARY_PATH - else - TARGET="${DPDK_TARGET}$DPDKCC" - LIBDPDKEXT=a - fi - DPDK_TARGET="${DPDK_TARGET}gcc" - CACHED_DPDK_VERS=`fgrep Version dpdk/pkg/dpdk.spec | cut -d " " -f 2` - if [ ! -d dpdk -o "${CACHED_DPDK_VERS}" != "${DPDK_VERS}" ]; then - rm -rf dpdk - mkdir dpdk - pushd dpdk - git init - git -c advice.detachedHead=false fetch -q --depth=1 http://dpdk.org/git/dpdk-stable v${DPDK_VERS} - git checkout -f FETCH_HEAD - popd - fi - if [ ! -f "dpdk/${TARGET}/usr/local/lib/libdpdk.$LIBDPDKEXT" ]; then - pushd dpdk - git log --oneline --decorate - # AArch64 && ARMv7 fixup - sed -i -e 's/40900/40800/g' lib/librte_eal/common/include/arch/arm/rte_vect.h - sed -i -e 's/!(/!(defined(__arm__) \&\& defined(__clang__) || /g' lib/librte_eal/common/include/arch/arm/rte_byteorder.h - sed -i -e 's/__GNUC__/defined(__arm__) \&\& defined(__clang__) || __GNUC__/' lib/librte_eal/common/include/generic/rte_byteorder.h - sed -i -e 's,\$(CC),\0 $(EXTRA_CFLAGS),g' lib/librte_acl/Makefile - make config T=${DPDK_TARGET} O=${TARGET} - pushd ${TARGET} - sed -ri 's,(CONFIG_RTE_LIBRTE_PMD_PCAP=).*,\1y,' .config - # OCTEON TX driver includes ARM v8.1 instructions - sed -ri 's,(CONFIG_RTE_LIBRTE_OCTEONTX_PMD=).*,\1n,' .config - sed -ri 's,(CONFIG_RTE_LIBRTE_PMD_OCTEONTX_SSOVF=).*,\1n,' .config - sed -ri 's,(CONFIG_RTE_LIBRTE_OCTEONTX_MEMPOOL=).*,\1n,' .config - if test -n "${DPDK_MACHINE}" ; then - sed -ri 's,(CONFIG_RTE_MACHINE=).*,\1"'${DPDK_MACHINE}'",' .config - fi - if test -n "${DPDK_SHARED}" ; then - sed -ri 's,(CONFIG_RTE_BUILD_SHARED_LIB=).*,\1y,' .config - fi - if test -n "$CROSS_ARCH" ; then - sed -ri -e 's,(CONFIG_RTE_EAL_IGB_UIO=).*,\1n,' .config - sed -ri -e 's,(CONFIG_RTE_KNI_KMOD=).*,\1n,' .config - fi - sed -ri -e 's,(CONFIG_RTE_TOOLCHAIN=).*,\1"'${DPDKCC}'",' .config - sed -ri -e '/CONFIG_RTE_TOOLCHAIN_.*/d' .config - echo CONFIG_RTE_TOOLCHAIN_${DPDKCC^^}=y >> .config - popd - make build O=${TARGET} EXTRA_CFLAGS="-fPIC $DPDK_CFLAGS" CROSS="$DPDK_CROSS" CC="${CC}" HOSTCC="gcc" -j $(nproc) - make install O=${TARGET} DESTDIR=${TARGET} - pwd - rm -r ./doc ./${TARGET}/app ./${TARGET}/build - popd - fi -fi - -echo "`pwd`/dpdk/${TARGET}/usr/local" > /tmp/dpdk_install_dir diff --git a/scripts/ci/build_x86_64.sh b/scripts/ci/build_x86_64.sh index d49271d9e..1356dcdc9 100755 --- a/scripts/ci/build_x86_64.sh +++ b/scripts/ci/build_x86_64.sh @@ -10,12 +10,6 @@ CWD=$(dirname "$0") TDIR=`mktemp -d -p ~` cd ${TDIR} -export CROSS_ARCH="" - -export TARGET="x86_64$DPDKCC" - -$CWD/build_dpdk.sh -DPDKPATH=`cat /tmp/dpdk_install_dir` echo 1000 | tee /proc/sys/vm/nr_hugepages mkdir -p /mnt/huge @@ -25,7 +19,7 @@ git clone ${CWD}/../../ odp cd ./odp ./bootstrap ./configure ${CONF} \ - --with-dpdk-path=${DPDKPATH} + --enable-dpdk make -j 8 # Ignore possible failures there because these tests depends on measurements diff --git a/scripts/ci/coverage.sh b/scripts/ci/coverage.sh index 0d812e82b..279ab5dcf 100755 --- a/scripts/ci/coverage.sh +++ b/scripts/ci/coverage.sh @@ -10,17 +10,13 @@ CWD=$(dirname "$0") TDIR=`mktemp -d -p ~` cd ${TDIR} -export CROSS_ARCH="" -export TARGET="x86_64$DPDKCC" - -$CWD/build_dpdk.sh git clone ${CWD}/../../ odp cd ./odp ./bootstrap ./configure \ CFLAGS="-O0 -coverage" CXXFLAGS="-O0 -coverage" LDFLAGS="--coverage" \ - --enable-debug=full --enable-helper-linux + --enable-debug=full --enable-helper-linux --enable-dpdk export CCACHE_DISABLE=1 make -j $(nproc)