From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f41.google.com (mail-wm0-f41.google.com [74.125.82.41]) by dpdk.org (Postfix) with ESMTP id 2DC6D5595 for ; Tue, 29 Mar 2016 18:18:07 +0200 (CEST) Received: by mail-wm0-f41.google.com with SMTP id p65so34106626wmp.0 for ; Tue, 29 Mar 2016 09:18:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references; bh=buuSoUvKRJOQQtseGa3odPs9G/melYQv7LwrY77Wxho=; b=08yHGm3CUXPsxhSMUf8zIQj9nn6q961RgeBdjlkUssPhHftmgEJ9L6Y5hPLYi7Osjn 8GHvDG5Xp14H8r9Fs985OIHhduF3/pMuGHyaJqKd9eV0B+relVt1BR6x5g4C4pA1X+7Q oyWCDMrsWyJwLl8G3tQeApN0YH3tGtx9TA7kBAcfSdWKekv5QE7J9MgMpr83DnAXb1TG YPiX4TQd1jBXyQIpRAspQNifN/RGDC5YGJPK+nr18o841GpX7nK3P+BmgUN6wEooh/Le MKjD95ELMZSvsk6NN92KsGJJk5xIVgbO/xNLO2Jg4gKqK0Vj4WVNlSHAvcw29tfqV4LU QfGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=buuSoUvKRJOQQtseGa3odPs9G/melYQv7LwrY77Wxho=; b=EY2MpcTBzUQoQpE3YouYGKUBG3FgeAY0xuQW3SsPcm91ZejkG0zRA9xkrNg+Z7nqoW 6b149tP53bTspg5v9Sm0zpm1M6isPoMJOUX6oVySUHjFVHxqBJUbRAf1enSx/ImwZzty 9oVinSQxVkNeKutmJJwhvbhGOE2SCJuE2LYQX2qbAdvrEndz4PoRqu1PeRC4zZO4/AVw w0J0UrTOc7UwUlkxDyfZU2Ws+Df130fyaNfas1TGQrp6pOJjitHw9u4GFoiaMlF0DYL8 npu6vmHLf1o9H5uHam/3i2rAjIhoHd/eXeAliy4Vi5RvgEbHazTzBK1jl/n4IePQC0uU 9pEA== X-Gm-Message-State: AD7BkJLtaeV31wg85C4Y4HwOKmWJ8IGqA0dLbYl7nd5Ldr7e80EtzLuJwpVdfkXi8OVyb8rv X-Received: by 10.28.1.207 with SMTP id 198mr7425387wmb.83.1459268286954; Tue, 29 Mar 2016 09:18:06 -0700 (PDT) Received: from XPS13.dev.6wind.com (guy78-3-82-239-227-177.fbx.proxad.net. [82.239.227.177]) by smtp.gmail.com with ESMTPSA id jf6sm30004635wjb.2.2016.03.29.09.18.05 for (version=TLSv1/SSLv3 cipher=OTHER); Tue, 29 Mar 2016 09:18:06 -0700 (PDT) From: Thomas Monjalon To: dev@dpdk.org Date: Tue, 29 Mar 2016 18:15:48 +0200 Message-Id: <1459268154-29558-3-git-send-email-thomas.monjalon@6wind.com> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1459268154-29558-1-git-send-email-thomas.monjalon@6wind.com> References: <1459268154-29558-1-git-send-email-thomas.monjalon@6wind.com> Subject: [dpdk-dev] [PATCH 2/8] scripts: remove legacy build method test X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Mar 2016 16:18:07 -0000 Building with "make install T=" is now deprecated. The script will test only the standard "make" command. Signed-off-by: Thomas Monjalon --- scripts/test-build.sh | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/scripts/test-build.sh b/scripts/test-build.sh index be8275e..b23d6c8 100755 --- a/scripts/test-build.sh +++ b/scripts/test-build.sh @@ -96,7 +96,7 @@ cd $(dirname $(readlink -m $0))/.. config () # { if [ ! -e $1/.config ] ; then - echo Custom configuration + echo "================== Configure $1" make T=$2 O=$1 config echo $3 | grep -q next || \ sed -ri 's,(NEXT_ABI=)y,\1n,' $1/.config @@ -140,21 +140,23 @@ for conf in $configs ; do options=$(echo $conf | cut -d'+' -sf2- --output-delimiter='-') if [ -z "$options" ] ; then dir=$target - config $dir $target - # Use install rule - make -j$J T=$target install EXTRA_CFLAGS="$DPDK_DEP_CFLAGS" EXTRA_LDFLAGS="$DPDK_DEP_LDFLAGS" - $short || make -j$J T=$target examples O=$dir/examples EXTRA_LDFLAGS="$DPDK_DEP_LDFLAGS" else dir=$target-$options - config $dir $target $options - echo "================== Build $dir" - # Use O variable without install - make -j$J O=$dir EXTRA_CFLAGS="$DPDK_DEP_CFLAGS" EXTRA_LDFLAGS="$DPDK_DEP_LDFLAGS" - echo "================== Build examples for $dir" - make -j$J -sC examples RTE_SDK=$(pwd) RTE_TARGET=$dir O=$(readlink -m $dir/examples) EXTRA_LDFLAGS="$DPDK_DEP_LDFLAGS" fi - echo "################## $dir done." + config $dir $target $options + + echo "================== Build $dir" + make -j$J EXTRA_CFLAGS="$DPDK_DEP_CFLAGS" \ + EXTRA_LDFLAGS="$DPDK_DEP_LDFLAGS" O=$dir ! $short || break + echo "================== Build examples for $dir" + export RTE_SDK=$(pwd) + export RTE_TARGET=$dir + make -j$J -sC examples \ + EXTRA_LDFLAGS="$DPDK_DEP_LDFLAGS" \ + O=$(readlink -m $dir/examples) + unset RTE_TARGET + echo "################## $dir done." done if ! $short ; then -- 2.7.0