From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 67E3EA0562; Mon, 30 Mar 2020 10:23:59 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 04C2D1C033; Mon, 30 Mar 2020 10:23:58 +0200 (CEST) Received: from mail-lf1-f65.google.com (mail-lf1-f65.google.com [209.85.167.65]) by dpdk.org (Postfix) with ESMTP id E0B6C1C02D for ; Mon, 30 Mar 2020 10:23:55 +0200 (CEST) Received: by mail-lf1-f65.google.com with SMTP id n20so13353132lfl.10 for ; Mon, 30 Mar 2020 01:23:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=emumba-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=rX0hV9YrQ4e+E3Hkcgnv23bimB+D4RaTyqhPToP5Nm8=; b=vuS5cNlKuLgxtaV/aZRjyIjSKXaEm8Xh7fk1YxnOc7SzOsriOhL/ZQsvqTEUYBr1Uf w40M0MtUWxLtvsyDZ//NffvJq+R8u2+6TJqJYYMvdQtVGLYrVPEYbLnQ5UgmwP5DerGH Am4HUHqIe2M69rbYvrkR1ZkAjnIHN86cIv5cxX8tKe/I51J5LJ/iLULlhh48J58bLzGX k8Kp0AWC9/VeRjVe5fUtLbGcHG3QffOl1n0MHkk9iYlz/n76QvUHmunJaJk9Hd2fQAil VsU2TbBdEd+kxRIuu5R9zU8WkpfFyzuZd85JmvKjQYteyTR5d3tfMnyo+ci6+FuFmT5k ao1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=rX0hV9YrQ4e+E3Hkcgnv23bimB+D4RaTyqhPToP5Nm8=; b=CGzoGUd3kdaL9NI9QNkUI+LwrESZwAPXtx/S4uucfPEAiIN2E8+CWiZAGoKUyn9YuX 10Xj5YRx+8Prv+vPLMyLEDHKe70n2EURpbn/TXuU26nGzGJ9hcPFoDOohAIhENm7dUSD iAafys8KYCQLPu7OFpEXjHhjg03M9K0wJUyZ4Vzzocy2FxCgLiwGi2vVVjZt7erwcFFV BbVtNderQiCXL2MkUpqAAYmWd+JUwvx+dtMfiAt0nBSknkWpmxuGGvw/7IJBEnPyGwst ePXF9+8NNyRFawR64BFkZ2f0LFjajrEcWiXnuevfvdsiqbOOidTlNQq7OitAUe3Qkp6W cyLQ== X-Gm-Message-State: AGi0PubRVTbcLMYAyxvyK5xthh1qY5FlOMB+gNpqprHKD08F38fXnmbX lREnfAi3xpfw8T/uEtQ3ZQoakeHBbuM= X-Google-Smtp-Source: APiQypIkR1yHnRWVfH4bEy038pyeIVwVt1FGM+vcHDGb+zKmi29UnUK0EgFCNj0YBSGtTvs+CH8fWg== X-Received: by 2002:ac2:44bb:: with SMTP id c27mr7425402lfm.91.1585556634860; Mon, 30 Mar 2020 01:23:54 -0700 (PDT) Received: from localhost.localdomain ([39.40.60.163]) by smtp.gmail.com with ESMTPSA id o5sm7429377lfb.0.2020.03.30.01.23.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Mar 2020 01:23:54 -0700 (PDT) From: Sarosh Arif To: dev@dpdk.org Cc: Sarosh Arif , stable@dpdk.org Date: Mon, 30 Mar 2020 13:23:04 +0500 Message-Id: <20200330082304.17655-1-sarosh.arif@emumba.com> X-Mailer: git-send-email 2.17.1 Subject: [dpdk-dev] [PATCH] usertools/dpdk-setup: ask user the name of build directory if RTE_TARGET is empty X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Bugzilla ID: 423 Cc: stable@dpdk.org Signed-off-by: Sarosh Arif --- 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