From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
	by inbox.dpdk.org (Postfix) with ESMTP id F3F5B4318A;
	Tue, 17 Oct 2023 14:13:49 +0200 (CEST)
Received: from mails.dpdk.org (localhost [127.0.0.1])
	by mails.dpdk.org (Postfix) with ESMTP id 0F14742D66;
	Tue, 17 Oct 2023 14:13:33 +0200 (CEST)
Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31])
 by mails.dpdk.org (Postfix) with ESMTP id 84DA141143
 for <dev@dpdk.org>; Tue, 17 Oct 2023 14:13:30 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple;
 d=intel.com; i=@intel.com; q=dns/txt; s=Intel;
 t=1697544810; x=1729080810;
 h=from:to:cc:subject:date:message-id:in-reply-to:
 references:mime-version:content-transfer-encoding;
 bh=z6RtbglnMm22lWjy1qGvABoPGj95+vX1ZGY9X5/aW/4=;
 b=OjKpWMurCDCtDH24fsyVur5vDu2IErP6YUs0CIMS4wT3KsDPb92G/GSD
 CwaCauNc5AnOQ/k/l/t9w3DzKFDK6Ute7hAfvn0moB2pIaGJq+77vxsj9
 jEk3DkbsTJYbSMPcJ/KtAhyTgmHq4gnlA2j5utBgFTQBrRqzrlt812piT
 br6VvJn627pF81EzTagKnrm2cychecxRjzsX1o7I9dOZ4LGVUe1mu7bTN
 MRRNggvqo/3KLUQ7l58TQ2mmagttvXI12SgKBsDXul0kKjVFH7Csaqb1L
 J6R3SboYkAodyS+h5+cMbfvgjD8oBHCnLI6GnVGmf69r00hrThGyDEB/0 w==;
X-IronPort-AV: E=McAfee;i="6600,9927,10865"; a="449984777"
X-IronPort-AV: E=Sophos;i="6.03,232,1694761200"; d="scan'208";a="449984777"
Received: from fmviesa001.fm.intel.com ([10.60.135.141])
 by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;
 17 Oct 2023 05:13:30 -0700
X-ExtLoop1: 1
X-IronPort-AV: E=Sophos;i="6.03,232,1694761200"; 
   d="scan'208";a="4068868"
Received: from unknown (HELO silpixa00401385.ir.intel.com) ([10.237.214.41])
 by fmviesa001.fm.intel.com with ESMTP; 17 Oct 2023 05:13:34 -0700
From: Bruce Richardson <bruce.richardson@intel.com>
To: dev@dpdk.org
Cc: david.marchand@redhat.com, rjarry@redhat.com,
 Bruce Richardson <bruce.richardson@intel.com>,
 Aaron Conole <aconole@redhat.com>,
 Michael Santana <maicolgabriel@hotmail.com>
Subject: [PATCH v5 3/9] ci: allow use of DPDK tools when building examples
Date: Tue, 17 Oct 2023 13:13:12 +0100
Message-Id: <20231017121318.146007-4-bruce.richardson@intel.com>
X-Mailer: git-send-email 2.39.2
In-Reply-To: <20231017121318.146007-1-bruce.richardson@intel.com>
References: <20230802170052.955323-1-bruce.richardson@intel.com>
 <20231017121318.146007-1-bruce.richardson@intel.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org

To allow use of the DPDK python scripts (installed in $(prefix)/bin)
from within the makefiles of our examples, we need to export the PATH
variable with the location of our installed scripts from within our CI
scripts. This matches what is already done for other paths e.g. the
PKG_CONFIG_PATH variable.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
---
 .ci/linux-build.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/.ci/linux-build.sh b/.ci/linux-build.sh
index e0b62bac90..3db9d9de6e 100755
--- a/.ci/linux-build.sh
+++ b/.ci/linux-build.sh
@@ -174,6 +174,7 @@ fi
 if [ "$BUILD_EXAMPLES" = "true" ]; then
     [ -d install ] || DESTDIR=$(pwd)/install meson install -C build
     export LD_LIBRARY_PATH=$(dirname $(find $(pwd)/install -name librte_eal.so)):$LD_LIBRARY_PATH
+    export PATH=$(dirname $(find $(pwd)/install -name dpdk-devbind.py)):$PATH
     export PKG_CONFIG_PATH=$(dirname $(find $(pwd)/install -name libdpdk.pc)):$PKG_CONFIG_PATH
     export PKGCONF="pkg-config --define-prefix"
     find build/examples -maxdepth 1 -type f -name "dpdk-*" |
-- 
2.39.2