From mboxrd@z Thu Jan 1 00:00:00 1970 From: Timothy Redaelli Subject: [pktgen PATCH] Fix dpdk-version.sh on Fedora Date: Fri, 28 Jul 2017 18:08:52 +0200 Message-ID: <4711b98574eee0efd9e6867c4413b82be98c6167.1501258132.git.tredaelli@redhat.com> To: dev@dpdk.org Return-path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id D281B995A for ; Fri, 28 Jul 2017 18:09:01 +0200 (CEST) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id F1820CCB78 for ; Fri, 28 Jul 2017 16:09:00 +0000 (UTC) Received: from graphite.redhat.com (ovpn-116-250.ams2.redhat.com [10.36.116.250]) by smtp.corp.redhat.com (Postfix) with ESMTP id 63E005D9C1 for ; Fri, 28 Jul 2017 16:09:00 +0000 (UTC) List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Fedora and RHEL dpdk-devel package installs rte_version.h inside $RTE_INCLUDE (/usr/include/dpdk) instead of $RTE_SDK Signed-off-by: Timothy Redaelli --- tools/dpdk-version.sh | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/tools/dpdk-version.sh b/tools/dpdk-version.sh index 0989aa4..75146cf 100755 --- a/tools/dpdk-version.sh +++ b/tools/dpdk-version.sh @@ -87,15 +87,19 @@ EOM exit 1 } -if [ -z ${RTE_SDK} ] ; then - echo "*** RTE_SDK is not set, using "${PWD} - sdk=${PWD} +if [ -n ${RTE_INCLUDE} ] ; then + fpath=${RTE_INCLUDE}/${fname} else - sdk=${RTE_SDK} + if [ -z ${RTE_SDK} ] ; then + echo "*** RTE_SDK is not set, using "${PWD} + sdk=${PWD} + else + sdk=${RTE_SDK} + fi + + fpath=${sdk}/lib/librte_eal/common/include/${fname} fi -fpath=${sdk}/lib/librte_eal/common/include/${fname} - if [ ! -e ${fpath} ]; then echo "File not found @ "${fpath} usage -- 2.13.3