From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-f67.google.com (mail-pg0-f67.google.com [74.125.83.67]) by dpdk.org (Postfix) with ESMTP id 21E1D1BB76 for ; Thu, 21 Jun 2018 11:35:54 +0200 (CEST) Received: by mail-pg0-f67.google.com with SMTP id d2-v6so1159781pga.13 for ; Thu, 21 Jun 2018 02:35:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=lF5JQnrRWzPRACHLD/E7SXmnRujAWKKEudfPvYNZ+44=; b=S1HJkoBKKUlm8+3gSoyWxT4q7kAE2qgAMnKU9TO74U3vTEpKRweEk5b80uBlNgDcZS CIcUTuGyiXkMF+FMhRCr1XspMCPKtaBrWhFeKfMNQg+izB1LYuPuAaA24hPLAeiG68Ed M3OVL+jcsZd/qJe/QESyb8olE2blQIAGvfaE4zc8jyr4HsCUwoYO8u9iIWkHMAMQYmii In49d/ywTEuQMrQMToVyUzKA9iw94+CJZMosGFb7ciGZZ33Xdj8TsdrkYo2/xxDAirlA 557bkRJEVyAZ4RXUCH3M5CgsIYic+fDwBIwb7aDKC8yoqNRA8Fe3bgDxJNkm4KB6/C/5 nO8Q== 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:in-reply-to :references; bh=lF5JQnrRWzPRACHLD/E7SXmnRujAWKKEudfPvYNZ+44=; b=E6Kefy7bO6DLHZeGKCRyX4qBa5Q0TjksFI+y1lkd9Sk2+6KY+I8KhorAIKimd4H6M1 SjP+bBc0eDqEcz+DbajRX43GHXdqbKPZAk+ISRbK7XiDAKRmxbiM+8MqAxcpCNHr2znD WJcypTOAEqJxaQ27Ti0LR1edhf7Bflc+BZIrk2jLtnm668LWtT02HLuuK2D4TLt/GgLT 9TTj8gHKzvZ3+cZukMgKjzQvi+UEZBb31vzYHBrr9C0jWajOXxPxNBHuTbhSHoHoQKod 8hZGCnRSeTKGMgjavXB3OoayPLZpX2KkFcHIxJwHVRUTG54PRJrdL/lzGg50J5xeMzbE V+XQ== X-Gm-Message-State: APt69E0K5wwT9yKBHPepk3Q0HFzYGxX1pJfkOZalccJZCEaLC7Z0C1ej D4V/puRlHFRrpDtCwxndPmwrXWz+ X-Google-Smtp-Source: ADUXVKLdLpkMxZDLeECkPCn1bYmhijxyDL8TLaLtCpXNtv0r+YaLFFaHRBGp8YzRqA+c+rERzs+CTQ== X-Received: by 2002:a62:1c43:: with SMTP id c64-v6mr26397611pfc.176.1529573752954; Thu, 21 Jun 2018 02:35:52 -0700 (PDT) Received: from choonho-dev2.ap-northeast-2.compute.internal (ec2-13-124-255-4.ap-northeast-2.compute.amazonaws.com. [13.124.255.4]) by smtp.gmail.com with ESMTPSA id q19-v6sm6858097pff.9.2018.06.21.02.35.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 21 Jun 2018 02:35:52 -0700 (PDT) From: Choonho Son To: dev@dpdk.org Cc: Choonho Son Date: Thu, 21 Jun 2018 09:35:41 +0000 Message-Id: <1529573741-9606-2-git-send-email-choonho.son@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1529573741-9606-1-git-send-email-choonho.son@gmail.com> References: <1529573741-9606-1-git-send-email-choonho.son@gmail.com> Subject: [dpdk-dev] [PATCH] usertools: fix build with gcc 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: , X-List-Received-Date: Thu, 21 Jun 2018 09:35:54 -0000 dpdk-setup.sh fails to build with lack of environment variable Build complete [x86_64-native-linuxapp-gcc] Installation cannot run with T defined and DESTDIR undefined Signed-off-by: Choonho Son --- usertools/dpdk-setup.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usertools/dpdk-setup.sh b/usertools/dpdk-setup.sh index 5eebbce..5248e7a 100755 --- a/usertools/dpdk-setup.sh +++ b/usertools/dpdk-setup.sh @@ -65,6 +65,7 @@ setup_target() { option=$1 export RTE_TARGET=${TARGETS[option]} + export DESTDIR=${DESTDIR:-install} compiler=${RTE_TARGET##*-} if [ "$compiler" == "icc" ] ; then @@ -76,7 +77,7 @@ setup_target() fi fi if [ "$QUIT" == "0" ] ; then - make install T=${RTE_TARGET} + make install T=${RTE_TARGET} DESTDIR=${DESTDIR} fi echo "------------------------------------------------------------------------------" echo " RTE_TARGET exported as $RTE_TARGET" -- 2.7.4