All of lore.kernel.org
 help / color / mirror / Atom feed
* [cip-dev] [PATCH 1/4] scripts/deploy-cip-core.sh: Fix uploading tar.gz image
@ 2021-05-10  1:34 Nobuhiro Iwamatsu
  2021-05-10  1:34 ` [cip-dev] [PATCH 2/4] scripts/deploy-cip-core.sh: Fix to correct filename with security extension Nobuhiro Iwamatsu
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Nobuhiro Iwamatsu @ 2021-05-10  1:34 UTC (permalink / raw)
  To: jan.kiszka; +Cc: cip-dev, Nobuhiro Iwamatsu

[-- Attachment #1: Type: text/plain, Size: 1490 bytes --]

Since *.wic.img is always compressed, if this file does not exist (for
example, the extension is tar.gz), the image file upload will fail.
This will check for the extension of the file.

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>
---
 scripts/deploy-cip-core.sh | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/scripts/deploy-cip-core.sh b/scripts/deploy-cip-core.sh
index 5b7eab9..3593d51 100755
--- a/scripts/deploy-cip-core.sh
+++ b/scripts/deploy-cip-core.sh
@@ -24,14 +24,17 @@ 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
+if [ -f $BASE_PATH.wic.img ] ; then
+	echo "Compressing cip-core-image-cip-core-$RELEASE-$TARGET.wic.img..."
+	xz -9 -k $BASE_PATH.wic.img
 
-echo "Uploading artifacts..."
-aws s3 cp --no-progress $BASE_PATH.wic.img.xz s3://download.cip-project.org/cip-core/$TARGET/
+	echo "Uploading artifacts..."
+	aws s3 cp --no-progress $BASE_PATH.wic.img.xz s3://download.cip-project.org/cip-core/$TARGET/
+fi
 
 if [ -f $BASE_PATH.tar.gz ]; then
-    aws s3 cp --no-progress $BASE_PATH.tar.gz s3://download.cip-project.org/cip-core/$TARGET/
+	echo "Uploading artifacts..."
+	aws s3 cp --no-progress $BASE_PATH.tar.gz s3://download.cip-project.org/cip-core/$TARGET/
 fi
 
 KERNEL_IMAGE=$BASE_PATH-vmlinuz
-- 
2.31.1


[-- Attachment #2: Type: text/plain, Size: 428 bytes --]


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#6442): https://lists.cip-project.org/g/cip-dev/message/6442
Mute This Topic: https://lists.cip-project.org/mt/82710742/4520388
Group Owner: cip-dev+owner@lists.cip-project.org
Unsubscribe: https://lists.cip-project.org/g/cip-dev/leave/8129055/4520388/727948398/xyzzy [cip-dev@archiver.kernel.org]
-=-=-=-=-=-=-=-=-=-=-=-


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [cip-dev] [PATCH 2/4] scripts/deploy-cip-core.sh: Fix to correct filename with security extension
  2021-05-10  1:34 [cip-dev] [PATCH 1/4] scripts/deploy-cip-core.sh: Fix uploading tar.gz image Nobuhiro Iwamatsu
@ 2021-05-10  1:34 ` Nobuhiro Iwamatsu
  2021-05-10  1:34 ` [cip-dev] [PATCH 3/4] .gitlab-ci.yml: Drop 'deploy: disable' from build:qemu-amd64-base Nobuhiro Iwamatsu
  2021-05-10  1:34 ` [cip-dev] [PATCH 4/4] .gitlab-ci.yml: Add build:qemu-amd64-test target Nobuhiro Iwamatsu
  2 siblings, 0 replies; 4+ messages in thread
From: Nobuhiro Iwamatsu @ 2021-05-10  1:34 UTC (permalink / raw)
  To: jan.kiszka; +Cc: cip-dev, Nobuhiro Iwamatsu

[-- Attachment #1: Type: text/plain, Size: 1329 bytes --]

Since security extension uses the bb file, not the extension using local.conf,
the generated filename is different.
This sets the correct filename for security extensions.

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>
---
 scripts/deploy-cip-core.sh | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/scripts/deploy-cip-core.sh b/scripts/deploy-cip-core.sh
index 3593d51..0b8bbe6 100755
--- a/scripts/deploy-cip-core.sh
+++ b/scripts/deploy-cip-core.sh
@@ -19,13 +19,19 @@ TARGET=$2
 EXTENSION=$3
 DTB=$4
 
-BASE_PATH=build/tmp/deploy/images/$TARGET/cip-core-image-cip-core-$RELEASE-$TARGET
+BASE_FILENAME=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
+	if [ "${EXTENSION}" = "security" ] ; then
+		BASE_FILENAME=cip-core-image-$EXTENSION-cip-core-$RELEASE-$TARGET
+	else
+		BASE_FILENAME=cip-core-image-cip-core-$RELEASE-$TARGET-$EXTENSION
+	fi
 fi
 
+BASE_PATH=build/tmp/deploy/images/$TARGET/$BASE_FILENAME
+
 if [ -f $BASE_PATH.wic.img ] ; then
-	echo "Compressing cip-core-image-cip-core-$RELEASE-$TARGET.wic.img..."
+	echo "Compressing $BASE_FILENAME.wic.img..."
 	xz -9 -k $BASE_PATH.wic.img
 
 	echo "Uploading artifacts..."
-- 
2.31.1


[-- Attachment #2: Type: text/plain, Size: 428 bytes --]


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#6439): https://lists.cip-project.org/g/cip-dev/message/6439
Mute This Topic: https://lists.cip-project.org/mt/82710739/4520388
Group Owner: cip-dev+owner@lists.cip-project.org
Unsubscribe: https://lists.cip-project.org/g/cip-dev/leave/8129055/4520388/727948398/xyzzy [cip-dev@archiver.kernel.org]
-=-=-=-=-=-=-=-=-=-=-=-


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [cip-dev] [PATCH 3/4] .gitlab-ci.yml: Drop 'deploy: disable' from build:qemu-amd64-base
  2021-05-10  1:34 [cip-dev] [PATCH 1/4] scripts/deploy-cip-core.sh: Fix uploading tar.gz image Nobuhiro Iwamatsu
  2021-05-10  1:34 ` [cip-dev] [PATCH 2/4] scripts/deploy-cip-core.sh: Fix to correct filename with security extension Nobuhiro Iwamatsu
@ 2021-05-10  1:34 ` Nobuhiro Iwamatsu
  2021-05-10  1:34 ` [cip-dev] [PATCH 4/4] .gitlab-ci.yml: Add build:qemu-amd64-test target Nobuhiro Iwamatsu
  2 siblings, 0 replies; 4+ messages in thread
From: Nobuhiro Iwamatsu @ 2021-05-10  1:34 UTC (permalink / raw)
  To: jan.kiszka; +Cc: cip-dev, Nobuhiro Iwamatsu

[-- Attachment #1: Type: text/plain, Size: 487 bytes --]

This enables uploading of images built with build:qemu-amd64-base.

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>
---
 .gitlab-ci.yml | 1 -
 1 file changed, 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b53d9cc..64c7b20 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -72,7 +72,6 @@ build:qemu-amd64-base:
     use_rt: disable
     wic_targz: disable
     targz: enable
-    deploy: disable
 
 build:qemu-arm64-base:
   extends:
-- 
2.31.1


[-- Attachment #2: Type: text/plain, Size: 428 bytes --]


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#6441): https://lists.cip-project.org/g/cip-dev/message/6441
Mute This Topic: https://lists.cip-project.org/mt/82710741/4520388
Group Owner: cip-dev+owner@lists.cip-project.org
Unsubscribe: https://lists.cip-project.org/g/cip-dev/leave/8129055/4520388/727948398/xyzzy [cip-dev@archiver.kernel.org]
-=-=-=-=-=-=-=-=-=-=-=-


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [cip-dev] [PATCH 4/4] .gitlab-ci.yml: Add build:qemu-amd64-test target
  2021-05-10  1:34 [cip-dev] [PATCH 1/4] scripts/deploy-cip-core.sh: Fix uploading tar.gz image Nobuhiro Iwamatsu
  2021-05-10  1:34 ` [cip-dev] [PATCH 2/4] scripts/deploy-cip-core.sh: Fix to correct filename with security extension Nobuhiro Iwamatsu
  2021-05-10  1:34 ` [cip-dev] [PATCH 3/4] .gitlab-ci.yml: Drop 'deploy: disable' from build:qemu-amd64-base Nobuhiro Iwamatsu
@ 2021-05-10  1:34 ` Nobuhiro Iwamatsu
  2 siblings, 0 replies; 4+ messages in thread
From: Nobuhiro Iwamatsu @ 2021-05-10  1:34 UTC (permalink / raw)
  To: jan.kiszka; +Cc: cip-dev, Nobuhiro Iwamatsu

[-- Attachment #1: Type: text/plain, Size: 664 bytes --]

This adds a target for the test image for QEMU/amd64 architecture.

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>
---
 .gitlab-ci.yml | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 64c7b20..84c1257 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -125,6 +125,15 @@ build:hihope-rzg2m-test:
     extention: test
     dtb: renesas/r8a774a1-hihope-rzg2m-ex.dtb
 
+build:qemu-amd64-test:
+  extends:
+    - .build_base
+  variables:
+    target:  qemu-amd64
+    extention: test
+    wic_targz: disable
+    targz: enable
+
 build:qemu-arm64-test:
   extends:
     - .build_base
-- 
2.31.1


[-- Attachment #2: Type: text/plain, Size: 428 bytes --]


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#6440): https://lists.cip-project.org/g/cip-dev/message/6440
Mute This Topic: https://lists.cip-project.org/mt/82710740/4520388
Group Owner: cip-dev+owner@lists.cip-project.org
Unsubscribe: https://lists.cip-project.org/g/cip-dev/leave/8129055/4520388/727948398/xyzzy [cip-dev@archiver.kernel.org]
-=-=-=-=-=-=-=-=-=-=-=-


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-05-10  1:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-10  1:34 [cip-dev] [PATCH 1/4] scripts/deploy-cip-core.sh: Fix uploading tar.gz image Nobuhiro Iwamatsu
2021-05-10  1:34 ` [cip-dev] [PATCH 2/4] scripts/deploy-cip-core.sh: Fix to correct filename with security extension Nobuhiro Iwamatsu
2021-05-10  1:34 ` [cip-dev] [PATCH 3/4] .gitlab-ci.yml: Drop 'deploy: disable' from build:qemu-amd64-base Nobuhiro Iwamatsu
2021-05-10  1:34 ` [cip-dev] [PATCH 4/4] .gitlab-ci.yml: Add build:qemu-amd64-test target Nobuhiro Iwamatsu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.