From patchwork Thu Aug 20 08:24:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nobuhiro Iwamatsu X-Patchwork-Id: 11725857 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 848A1722 for ; Thu, 20 Aug 2020 08:24:54 +0000 (UTC) Received: from web01.groups.io (web01.groups.io [66.175.222.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2AB8522CA1 for ; Thu, 20 Aug 2020 08:24:53 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=lists.cip-project.org header.i=@lists.cip-project.org header.b="DK4pbwSY" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2AB8522CA1 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=toshiba.co.jp Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=bounce+64572+5158+4520428+8129116@lists.cip-project.org X-Received: by 127.0.0.2 with SMTP id CBByYY4521763xMF8aldBVUT; Thu, 20 Aug 2020 01:24:53 -0700 X-Received: from mo-csw.securemx.jp (mo-csw.securemx.jp [210.130.202.154]) by mx.groups.io with SMTP id smtpd.web12.105817.1597911890781720913 for ; Thu, 20 Aug 2020 01:24:52 -0700 X-Received: by mo-csw.securemx.jp (mx-mo-csw1515) id 07K8Oml7030256; Thu, 20 Aug 2020 17:24:48 +0900 X-Iguazu-Qid: 34tKqQuZ1S15EyHSYX X-Iguazu-QSIG: v=2; s=0; t=1597911888; q=34tKqQuZ1S15EyHSYX; m=o+JwWHOdTrZ8mEXqFEonfyWfx+Getgr3KL29lZLKdPg= X-Received: from imx2.toshiba.co.jp (imx2.toshiba.co.jp [106.186.93.51]) by relay.securemx.jp (mx-mr1510) id 07K8Olsx024711; Thu, 20 Aug 2020 17:24:48 +0900 X-Received: from enc01.localdomain ([106.186.93.100]) by imx2.toshiba.co.jp with ESMTP id 07K8OlPx024713; Thu, 20 Aug 2020 17:24:47 +0900 (JST) X-Received: from hop001.toshiba.co.jp ([133.199.164.63]) by enc01.localdomain with ESMTP id 07K8Olnm018543; Thu, 20 Aug 2020 17:24:47 +0900 From: "Nobuhiro Iwamatsu" To: cip-dev@lists.cip-project.org Cc: jan.kiszka@siemens.com, Nobuhiro Iwamatsu Subject: [cip-dev] [isar-cip-core][PATCH 1/2] ci: Rewrite using extends Date: Thu, 20 Aug 2020 17:24:33 +0900 X-TSB-HOP: ON Message-Id: <20200820082434.1302460-1-nobuhiro1.iwamatsu@toshiba.co.jp> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: Sender: cip-dev@lists.cip-project.org List-Id: Mailing-List: list cip-dev@lists.cip-project.org; contact cip-dev+owner@lists.cip-project.org Delivered-To: mailing list cip-dev@lists.cip-project.org Reply-To: cip-dev@lists.cip-project.org X-Gm-Message-State: rbDHm1RTCUw2tKhXpvMYyLQXx4520428AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lists.cip-project.org; q=dns/txt; s=20140610; t=1597911893; bh=wIU6EulUJUw653f2w/WAMUGKxdbvzL9tazWvJVQgAmY=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=DK4pbwSYGF9QYAAShEwGkMF0QX3TCEhjMqS/VpavreqLY1ybOX4qXQ7tzu0hnO2SKCL alK3dpoOnkHguvB+0G2sV7KofYiZWigwGHvhlBKJU/SGUpR8jx8V1cA6KO+9S4fwzmQPK V2XQmyeTrcbtlXmBl3ooF9RynUPZm1wvP9M= Signed-off-by: Nobuhiro Iwamatsu --- .gitlab-ci.yml | 70 +++++++++++++++++++++++++++++--------- scripts/deploy-cip-core.sh | 8 +++-- 2 files changed, 60 insertions(+), 18 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3fe7af2..e23345f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,10 +2,17 @@ image: kasproject/kas-isar:1.1 variables: GIT_STRATEGY: clone + release: buster + extention: base + use_rt: enable + targz: enable + dtb: none -all: - stage: build - script: +stages: + - build + +default: + before_script: - export http_proxy=$HTTP_PROXY - export https_proxy=$HTTPS_PROXY - export ftp_proxy=$FTP_PROXY @@ -13,20 +20,51 @@ all: - export AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID - export AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY - - kas build kas-cip.yml:kas/board/simatic-ipc227e.yml:kas/opt/rt.yml:kas/opt/targz-img.yml - - scripts/deploy-cip-core.sh buster simatic-ipc227e - +.build_base: + stage: build + variables: + base_yaml: "kas-cip.yml:kas/board/${target}.yml" + script: - sudo rm -rf build/tmp - - kas build kas-cip.yml:kas/board/bbb.yml:kas/opt/rt.yml:kas/opt/targz-img.yml - - scripts/deploy-cip-core.sh buster bbb am335x-boneblack.dtb + - if [ "${use_rt}" = "enable" ]; then base_yaml="${base_yaml}:kas/opt/rt.yml"; fi; + - if [ "${extention}" != "base" ]; then base_yaml="${base_yaml}:kas/opt/${extention}.yml"; fi; + - if [ "${targz}" = "enable" ]; then base_yaml="${base_yaml}:kas/opt/targz-img.yml"; fi; + - kas build ${base_yaml} + - scripts/deploy-cip-core.sh ${release} ${target} ${extention} ${dtb} - - sudo rm -rf build/tmp - - kas build kas-cip.yml:kas/board/iwg20m.yml:kas/opt/rt.yml:kas/opt/targz-img.yml - - scripts/deploy-cip-core.sh buster iwg20m r8a7743-iwg20d-q7-dbcm-ca.dtb +# base image +build:simatic-ipc227e-base: + extends: + - .build_base + variables: + target: simatic-ipc227e - - sudo rm -rf build/tmp - - kas build kas-cip.yml:kas/board/rzg2m.yml:kas/opt/rt.yml:kas/opt/targz-img.yml - - scripts/deploy-cip-core.sh buster hihope-rzg2m renesas/r8a774a1-hihope-rzg2m-ex.dtb +build:bbb-base: + extends: + - .build_base + variables: + target: bbb + dtb: am335x-boneblack.dtb - - sudo rm -rf build/tmp - - kas build kas-cip.yml:kas/board/qemu-amd64.yml:kas/opt/security.yml +build:iwg20m-base: + extends: + - .build_base + variables: + target: iwg20m + dtb: r8a7743-iwg20d-q7-dbcm-ca.dtb + +build:hihope-rzg2m-base: + extends: + - .build_base + variables: + target: rzg2m + dtb: renesas/r8a774a1-hihope-rzg2m-ex.dtb + +build:qemu-amd64-base: + extends: + - .build_base + variables: + target: qemu-amd64 + extention: security + use_rt: disable + targz: disable diff --git a/scripts/deploy-cip-core.sh b/scripts/deploy-cip-core.sh index 4c8d4c9..5b7eab9 100755 --- a/scripts/deploy-cip-core.sh +++ b/scripts/deploy-cip-core.sh @@ -16,9 +16,13 @@ fi RELEASE=$1 TARGET=$2 -DTB=$3 +EXTENSION=$3 +DTB=$4 BASE_PATH=build/tmp/deploy/images/$TARGET/cip-core-image-cip-core-$RELEASE-$TARGET +if [ "${EXTENSION}" != "base" ] ; then + BASE_PATH=build/tmp/deploy/images/$TARGET/cip-core-image-cip-core-$RELEASE-$TARGET-$EXTENSION +fi echo "Compressing cip-core-image-cip-core-$RELEASE-$TARGET.wic.img..." xz -9 -k $BASE_PATH.wic.img @@ -38,6 +42,6 @@ fi aws s3 cp --no-progress $KERNEL_IMAGE s3://download.cip-project.org/cip-core/$TARGET/ aws s3 cp --no-progress $BASE_PATH-initrd.img s3://download.cip-project.org/cip-core/$TARGET/ -if [ -n "$DTB" ]; then +if [ "$DTB" != "none" ]; then aws s3 cp --no-progress build/tmp/work/cip-core-*/linux-cip*/*/linux-cip-*/debian/linux-image-cip*/usr/lib/linux-image-*/$DTB s3://download.cip-project.org/cip-core/$TARGET/ fi From patchwork Thu Aug 20 08:24:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nobuhiro Iwamatsu X-Patchwork-Id: 11725859 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4A748722 for ; Thu, 20 Aug 2020 08:25:14 +0000 (UTC) Received: from web01.groups.io (web01.groups.io [66.175.222.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 245F622BED for ; Thu, 20 Aug 2020 08:25:14 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=lists.cip-project.org header.i=@lists.cip-project.org header.b="qFDaTuBc" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 245F622BED Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=toshiba.co.jp Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=bounce+64572+5159+4520428+8129116@lists.cip-project.org X-Received: by 127.0.0.2 with SMTP id MmDaYY4521763xzvjPNNhvjF; Thu, 20 Aug 2020 01:25:13 -0700 X-Received: from mo-csw.securemx.jp (mo-csw.securemx.jp [210.130.202.154]) by mx.groups.io with SMTP id smtpd.web11.106410.1597911913197352301 for ; Thu, 20 Aug 2020 01:25:13 -0700 X-Received: by mo-csw.securemx.jp (mx-mo-csw1515) id 07K8PBNu031546; Thu, 20 Aug 2020 17:25:11 +0900 X-Iguazu-Qid: 34tMSeeoSnfSZQ0GCT X-Iguazu-QSIG: v=2; s=0; t=1597911911; q=34tMSeeoSnfSZQ0GCT; m=6Yabheg7uotivSLYHxAd1lSFOiLnTah1Hc4KxHu80Oo= X-Received: from imx2.toshiba.co.jp (imx2.toshiba.co.jp [106.186.93.51]) by relay.securemx.jp (mx-mr1513) id 07K8PAGx002317; Thu, 20 Aug 2020 17:25:11 +0900 X-Received: from enc01.localdomain ([106.186.93.100]) by imx2.toshiba.co.jp with ESMTP id 07K8PAEV024990; Thu, 20 Aug 2020 17:25:10 +0900 (JST) X-Received: from hop001.toshiba.co.jp ([133.199.164.63]) by enc01.localdomain with ESMTP id 07K8PA3u019002; Thu, 20 Aug 2020 17:25:10 +0900 From: "Nobuhiro Iwamatsu" To: cip-dev@lists.cip-project.org Cc: jan.kiszka@siemens.com, Nobuhiro Iwamatsu Subject: [cip-dev] [isar-cip-core][PATCH 2/2] ci: Add support for test image Date: Thu, 20 Aug 2020 17:24:34 +0900 X-TSB-HOP: ON Message-Id: <20200820082434.1302460-2-nobuhiro1.iwamatsu@toshiba.co.jp> In-Reply-To: <20200820082434.1302460-1-nobuhiro1.iwamatsu@toshiba.co.jp> References: <20200820082434.1302460-1-nobuhiro1.iwamatsu@toshiba.co.jp> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: Sender: cip-dev@lists.cip-project.org List-Id: Mailing-List: list cip-dev@lists.cip-project.org; contact cip-dev+owner@lists.cip-project.org Delivered-To: mailing list cip-dev@lists.cip-project.org Reply-To: cip-dev@lists.cip-project.org X-Gm-Message-State: aLK1ZlVenHYrYJAA2cOl8Bkyx4520428AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lists.cip-project.org; q=dns/txt; s=20140610; t=1597911913; bh=tezr5ueCPQ0ODqIB8He34RKe6rmqY6eKT4OyiQearf8=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=qFDaTuBc0vdaGVW5osIrCtbPm9YmeI+aZD6W0V+V4HFKBSdaanoZKRa1xtOF9Pp570r 0tjt/IyJI9zwjD+cvWlgyWGsyxjrWz9Su1N3ytULxqA6FJMq5IHXgQBE039XmbiblKF2+ YuP4tmh4OOo1OuEVPxiYkAr6tB5dZyxPuWY= Signed-off-by: Nobuhiro Iwamatsu --- .gitlab-ci.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e23345f..802dbcd 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -68,3 +68,35 @@ build:qemu-amd64-base: extention: security use_rt: disable targz: disable + +# test +build:simatic-ipc227e-test: + extends: + - .build_base + variables: + target: simatic-ipc227e + extention: test + +build:bbb-test: + extends: + - .build_base + variables: + target: bbb + extention: test + dtb: am335x-boneblack.dtb + +build:iwg20m-test: + extends: + - .build_base + variables: + target: iwg20m + extention: test + dtb: r8a7743-iwg20d-q7-dbcm-ca.dtb + +build:hihope-rzg2m-test: + extends: + - .build_base + variables: + target: rzg2m + extention: test + dtb: renesas/r8a774a1-hihope-rzg2m-ex.dtb