DPDK patches and discussions
 help / color / mirror / Atom feed
From: Sarosh Arif <sarosh.arif@emumba.com>
To: dev@dpdk.org
Cc: Sarosh Arif <sarosh.arif@emumba.com>, stable@dpdk.org
Subject: [dpdk-dev] [PATCH] usertools/dpdk-setup: ask user the name of build directory if RTE_TARGET is empty
Date: Mon, 30 Mar 2020 13:23:04 +0500	[thread overview]
Message-ID: <20200330082304.17655-1-sarosh.arif@emumba.com> (raw)

Bugzilla ID: 423
Cc: stable@dpdk.org
Signed-off-by: Sarosh Arif <sarosh.arif@emumba.com>
---
 usertools/dpdk-setup.sh | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/usertools/dpdk-setup.sh b/usertools/dpdk-setup.sh
index e5bbe9fee..d7e4bc43d 100755
--- a/usertools/dpdk-setup.sh
+++ b/usertools/dpdk-setup.sh
@@ -366,6 +366,10 @@ run_test_app()
 	echo "  Example: to execute app on cores 0 to 7, enter 0xff"
 	echo -n "bitmask: "
 	read Bitmask
+	if [ -z "$RTE_TARGET" ]; then
+    	echo -n "build directory: "
+		read RTE_TARGET
+	fi
 	echo "Launching app"
 	sudo ${RTE_TARGET}/app/test -c $Bitmask $EAL_PARAMS
 }
@@ -380,6 +384,10 @@ run_testpmd_app()
 	echo "  Example: to execute app on cores 0 to 7, enter 0xff"
 	echo -n "bitmask: "
 	read Bitmask
+	if [ -z "$RTE_TARGET" ]; then
+    	echo -n "build directory: "
+		read RTE_TARGET
+	fi
 	echo "Launching app"
 	sudo ${RTE_TARGET}/app/testpmd -c $Bitmask $EAL_PARAMS -- -i
 }
-- 
2.17.1


                 reply	other threads:[~2020-03-30  8:23 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200330082304.17655-1-sarosh.arif@emumba.com \
    --to=sarosh.arif@emumba.com \
    --cc=dev@dpdk.org \
    --cc=stable@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).