From patchwork Tue Jun 9 19:46:37 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Holmes X-Patchwork-Id: 49670 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f72.google.com (mail-la0-f72.google.com [209.85.215.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 41D31245D4 for ; Tue, 9 Jun 2015 19:47:00 +0000 (UTC) Received: by lagh7 with SMTP id h7sf7291293lag.2 for ; Tue, 09 Jun 2015 12:46:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:cc:subject:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version :content-type:content-transfer-encoding:errors-to:sender :x-original-sender:x-original-authentication-results:mailing-list; bh=fVrjDOKG/OawsgJ8bLZV7piwfhKdSFBxk0FOHFP0XGs=; b=OWhukWSQR/I8ne+Eze7XVgpYa009upt9Jmf9vITHKf0KL2G1ug8tWWdwpfO7Y1r7BL NzeRIszCAsWYCSkpzRCSK474XY/IizeuR2cyfl9WsbvOoqK9YYckai3KkGdIzt8p12T8 r0mqVymv99b6zI4FZ2MgNkzhGsxy1OBAMm4iwn2eN4H2cR1jstpNiuGqOpg90wUoESxu JdmQncBp5bKAd1wRDtUcYfMdS7mnNVS8wwssmbZ4mXqN2erKbk9N2NLfmPN/tdT7fg66 0jvuFTLTJgCNrPtx2mWByFSREnc61IeDAkjZddF4nB5/BNl3LmfO94uvD5OHiMwrGxrL ckcQ== X-Gm-Message-State: ALoCoQkrD+MGdauH/qXkqG6//Pzbc0XVlHju9oxYT2WGtlNY/aNzYVCsOoy6Wrlke21hejJ+BBwT X-Received: by 10.152.37.101 with SMTP id x5mr23120273laj.5.1433879219191; Tue, 09 Jun 2015 12:46:59 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.6.100 with SMTP id z4ls105646laz.57.gmail; Tue, 09 Jun 2015 12:46:59 -0700 (PDT) X-Received: by 10.152.44.132 with SMTP id e4mr24649702lam.34.1433879219048; Tue, 09 Jun 2015 12:46:59 -0700 (PDT) Received: from mail-lb0-f174.google.com (mail-lb0-f174.google.com. [209.85.217.174]) by mx.google.com with ESMTPS id kz10si6578227lab.140.2015.06.09.12.46.58 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Jun 2015 12:46:58 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.174 as permitted sender) client-ip=209.85.217.174; Received: by lbcue7 with SMTP id ue7so16494434lbc.0 for ; Tue, 09 Jun 2015 12:46:58 -0700 (PDT) X-Received: by 10.112.131.98 with SMTP id ol2mr24658022lbb.56.1433879218610; Tue, 09 Jun 2015 12:46:58 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.108.230 with SMTP id hn6csp2857982lbb; Tue, 9 Jun 2015 12:46:55 -0700 (PDT) X-Received: by 10.140.231.206 with SMTP id b197mr29771549qhc.32.1433879214384; Tue, 09 Jun 2015 12:46:54 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id mi8si6414046qcb.41.2015.06.09.12.46.52; Tue, 09 Jun 2015 12:46:54 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Received: by lists.linaro.org (Postfix, from userid 109) id B755661D9C; Tue, 9 Jun 2015 19:46:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from ip-10-142-244-252.ec2.internal (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 9353861D89; Tue, 9 Jun 2015 19:46:48 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id BDAE261D89; Tue, 9 Jun 2015 19:46:46 +0000 (UTC) Received: from mail-vn0-f52.google.com (mail-vn0-f52.google.com [209.85.216.52]) by lists.linaro.org (Postfix) with ESMTPS id B03F361CF9 for ; Tue, 9 Jun 2015 19:46:45 +0000 (UTC) Received: by vnbg190 with SMTP id g190so4449160vnb.6 for ; Tue, 09 Jun 2015 12:46:45 -0700 (PDT) X-Received: by 10.52.88.111 with SMTP id bf15mr11100639vdb.20.1433879205070; Tue, 09 Jun 2015 12:46:45 -0700 (PDT) Received: from mike-desktop.?.holmesfamily.ws (c-98-221-136-245.hsd1.nj.comcast.net. [98.221.136.245]) by mx.google.com with ESMTPSA id s2sm7956578vdh.8.2015.06.09.12.46.44 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 09 Jun 2015 12:46:44 -0700 (PDT) From: Mike Holmes To: anders.roxell@linaro.org Date: Tue, 9 Jun 2015 15:46:37 -0400 Message-Id: <1433879197-15307-1-git-send-email-mike.holmes@linaro.org> X-Mailer: git-send-email 2.1.4 X-Topics: patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [CHECK-ODP PATCH] display os details X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: mike.holmes@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.174 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Signed-off-by: Mike Holmes --- apply-and-build.sh | 2 ++ build.sh | 2 ++ helper/generic | 4 ++++ 3 files changed, 8 insertions(+) diff --git a/apply-and-build.sh b/apply-and-build.sh index 5c30e8c..a02e446 100755 --- a/apply-and-build.sh +++ b/apply-and-build.sh @@ -56,6 +56,8 @@ PLATFORM=${PLATFORM:-linux-generic} [[ ${ENABLE_NETMAP} -eq 1 ]] && PLATFORM="linux-netmap" [[ ${ENABLE_DPDK} -eq 1 ]] && PLATFORM="linux-dpdk" +display_os + prepare_platform GPLATFORM="--with-platform=${PLATFORM}" diff --git a/build.sh b/build.sh index 045bdd2..113cc0e 100755 --- a/build.sh +++ b/build.sh @@ -118,6 +118,8 @@ cleanup_exit() ###### # Main execution +display_os + prepare_platform if [[ "x$1" = "x-h" || "x$1" = "x--help" ]]; then diff --git a/helper/generic b/helper/generic index 1866ef0..b3b0fa2 100644 --- a/helper/generic +++ b/helper/generic @@ -33,6 +33,10 @@ common_usage() { echo -e "\tDISTCHECK:\t set to 1 to enable DISTCHECK build, default: 0" } +display_os(){ + cat /etc/*-release | uniq -u +} + remote_name(){ retval=$(echo ${1} |tr ':/.-' '_') echo "${retval}"