From patchwork Thu Dec 22 06:20:34 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stewart Smith X-Patchwork-Id: 708159 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3tkhHq6xJWz9t0w for ; Thu, 22 Dec 2016 17:21:43 +1100 (AEDT) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3tkhHq68KFzDwcl for ; Thu, 22 Dec 2016 17:21:43 +1100 (AEDT) X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3tkhGm2PrFzDwNc for ; Thu, 22 Dec 2016 17:20:48 +1100 (AEDT) Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.17/8.16.0.17) with SMTP id uBM6JXlb130785 for ; Thu, 22 Dec 2016 01:20:46 -0500 Received: from e17.ny.us.ibm.com (e17.ny.us.ibm.com [129.33.205.207]) by mx0a-001b2d01.pphosted.com with ESMTP id 27g1v864r6-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Thu, 22 Dec 2016 01:20:46 -0500 Received: from localhost by e17.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 22 Dec 2016 01:20:45 -0500 Received: from d01dlp02.pok.ibm.com (9.56.250.167) by e17.ny.us.ibm.com (146.89.104.204) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Thu, 22 Dec 2016 01:20:43 -0500 Received: from b01cxnp22035.gho.pok.ibm.com (b01cxnp22035.gho.pok.ibm.com [9.57.198.25]) by d01dlp02.pok.ibm.com (Postfix) with ESMTP id BB3726E803C for ; Thu, 22 Dec 2016 01:20:15 -0500 (EST) Received: from b01ledav001.gho.pok.ibm.com (b01ledav001.gho.pok.ibm.com [9.57.199.106]) by b01cxnp22035.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id uBM6KfC043319500; Thu, 22 Dec 2016 06:20:42 GMT Received: from b01ledav001.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 9FD6C28057; Thu, 22 Dec 2016 01:20:42 -0500 (EST) Received: from birb.localdomain (unknown [9.185.16.22]) by b01ledav001.gho.pok.ibm.com (Postfix) with ESMTP id 24C072803F; Thu, 22 Dec 2016 01:20:42 -0500 (EST) Received: by birb.localdomain (Postfix, from userid 1000) id 30F4C226D947; Thu, 22 Dec 2016 17:20:37 +1100 (AEDT) From: Stewart Smith To: skiboot@lists.ozlabs.org Date: Thu, 22 Dec 2016 17:20:34 +1100 X-Mailer: git-send-email 2.9.3 In-Reply-To: <20161222062036.8454-1-stewart@linux.vnet.ibm.com> References: <20161222062036.8454-1-stewart@linux.vnet.ibm.com> X-TM-AS-GCONF: 00 X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16122206-0040-0000-0000-00000230ED97 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00006294; HX=3.00000240; KW=3.00000007; PH=3.00000004; SC=3.00000198; SDB=6.00797304; UDB=6.00387054; IPR=6.00575111; BA=6.00004998; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00013682; XFM=3.00000011; UTC=2016-12-22 06:20:43 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 16122206-0041-0000-0000-00000623F48E Message-Id: <20161222062036.8454-10-stewart@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2016-12-22_05:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1612050000 definitions=main-1612220106 Subject: [Skiboot] [PATCH 09/11] travis: build and test more on centos7 X-BeenThere: skiboot@lists.ozlabs.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Mailing list for skiboot development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot" Signed-off-by: Stewart Smith --- opal-ci/Dockerfile-centos7 | 3 +-- opal-ci/build-centos7.sh | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 2 deletions(-) create mode 100755 opal-ci/build-centos7.sh diff --git a/opal-ci/Dockerfile-centos7 b/opal-ci/Dockerfile-centos7 index fa51128..1f4d829 100644 --- a/opal-ci/Dockerfile-centos7 +++ b/opal-ci/Dockerfile-centos7 @@ -10,5 +10,4 @@ RUN curl -O http://public.dhe.ibm.com/software/server/powerfuncsim/p9/packages/v RUN yum install -y systemsim-p9-1.0-0.el7.x86_64.rpm COPY . /build/ WORKDIR /build -# We don't have a custom centos 7 build, same script for now -ENTRYPOINT ./opal-ci/build-centos6.sh +ENTRYPOINT ./opal-ci/build-centos7.sh diff --git a/opal-ci/build-centos7.sh b/opal-ci/build-centos7.sh new file mode 100755 index 0000000..0a44fc8 --- /dev/null +++ b/opal-ci/build-centos7.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +set -uo pipefail +set -e + +# We're limited as to what we want to bother to run on CentOS7 +# It's fairly old and some of the things (e.g. build+run qemu) we don't +# want to bother doing. + +export CROSS=/opt/cross/gcc-4.8.0-nolibc/powerpc64-linux/bin/powerpc64-linux- + +MAKE_J=`grep -c processor /proc/cpuinfo` + +make -j${MAKE_J} all +make -j${MAKE_J} check +(make clean; cd external/gard && CROSS= make -j${MAKE_J}) +(cd external/pflash; make -j${MAKE_J}) +make clean +SKIBOOT_GCOV=1 make -j${MAKE_J} +SKIBOOT_GCOV=1 make -j${MAKE_J} check + +make clean +rm -rf builddir +mkdir builddir +make SRC=`pwd` -f ../Makefile -C builddir -j${MAKE_J} +make clean