From: Sai.Sathujoda@toshiba-tsip.com
To: cip-dev@lists.cip-project.org, jan.kiszka@siemens.com
Cc: Sai Sathujoda <Sai.Sathujoda@toshiba-tsip.com>,
dinesh.kumar@toshiba-tsip.com, kazuhiro3.hayashi@toshiba.co.jp
Subject: [isar-cip-core 2/3][v2] deploy-cip-core.sh: Deploy only the .wic image if it is present
Date: Fri, 8 Sep 2023 18:12:36 +0530 [thread overview]
Message-ID: <20230908124237.508469-3-Sai.Sathujoda@toshiba-tsip.com> (raw)
In-Reply-To: <20230908124237.508469-1-Sai.Sathujoda@toshiba-tsip.com>
From: Sai Sathujoda <Sai.Sathujoda@toshiba-tsip.com>
Deploy seperate artifacts like tar.gz, kernel and initrd image only
if .wic image is not present.
Signed-off-by: Sai Sathujoda <Sai.Sathujoda@toshiba-tsip.com>
---
scripts/deploy-cip-core.sh | 32 ++++++++++++++++----------------
1 file changed, 16 insertions(+), 16 deletions(-)
diff --git a/scripts/deploy-cip-core.sh b/scripts/deploy-cip-core.sh
index eaa8974..5855acb 100755
--- a/scripts/deploy-cip-core.sh
+++ b/scripts/deploy-cip-core.sh
@@ -34,22 +34,22 @@ if [ -f "${BASE_PATH}.wic" ]; then
echo "Uploading artifacts..."
aws s3 cp --no-progress --acl public-read "${BASE_PATH}.wic.xz" "${S3_TARGET}"
-fi
-
-if [ -f "${BASE_PATH}.tar.gz" ]; then
- echo "Uploading artifacts..."
- aws s3 cp --no-progress --acl public-read "${BASE_PATH}.tar.gz" "${S3_TARGET}"
-fi
+else
+ if [ -f "${BASE_PATH}.tar.gz" ]; then
+ echo "Uploading artifacts..."
+ aws s3 cp --no-progress --acl public-read "${BASE_PATH}.tar.gz" "${S3_TARGET}"
+ fi
-KERNEL_IMAGE="$BASE_PATH-vmlinu[xz]"
-# iwg20m workaround
-if [ -f "build/tmp/deploy/images/$TARGET/zImage" ]; then
- KERNEL_IMAGE=build/tmp/deploy/images/$TARGET/zImage
-fi
-# shellcheck disable=SC2086
-aws s3 cp --no-progress --acl public-read $KERNEL_IMAGE "${S3_TARGET}"
-aws s3 cp --no-progress --acl public-read "${BASE_PATH}-initrd.img" "${S3_TARGET}"
+ KERNEL_IMAGE="$BASE_PATH-vmlinu[xz]"
+ # iwg20m workaround
+ if [ -f "build/tmp/deploy/images/$TARGET/zImage" ]; then
+ KERNEL_IMAGE=build/tmp/deploy/images/$TARGET/zImage
+ fi
+ # shellcheck disable=SC2086
+ aws s3 cp --no-progress --acl public-read $KERNEL_IMAGE "${S3_TARGET}"
+ aws s3 cp --no-progress --acl public-read "${BASE_PATH}-initrd.img" "${S3_TARGET}"
-if [ "$DTB" != "none" ]; then
- aws s3 cp --no-progress --acl public-read build/tmp/deploy/images/*/"$DTB" "${S3_TARGET}"
+ if [ "$DTB" != "none" ]; then
+ aws s3 cp --no-progress --acl public-read build/tmp/deploy/images/*/"$DTB" "${S3_TARGET}"
+ fi
fi
--
2.30.2
next prev parent reply other threads:[~2023-09-08 12:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20230908124237.508469-1-Sai.Sathujoda@toshiba-tsip.com>
2023-09-08 12:42 ` [isar-cip-core 1/3][v2] Kconfig: Opt additional IEC 62443-4-2 features when security option is selected Sai.Sathujoda
2023-09-09 11:06 ` Jan Kiszka
2023-09-08 12:42 ` Sai.Sathujoda [this message]
2023-09-08 12:42 ` [isar-cip-core 3/3][v2] security.yml: Add additional features to security image Sai.Sathujoda
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230908124237.508469-3-Sai.Sathujoda@toshiba-tsip.com \
--to=sai.sathujoda@toshiba-tsip.com \
--cc=cip-dev@lists.cip-project.org \
--cc=dinesh.kumar@toshiba-tsip.com \
--cc=jan.kiszka@siemens.com \
--cc=kazuhiro3.hayashi@toshiba.co.jp \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.