Skip to contentSkip to conversation

kas: Add opt/targz-img.yml

PATCH Nobuhiro Iwamatsu 1 participant 1 message Apr 2, 2021 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Hi,

This patch is for isar-cip-core.

Best regards,
Nobuhiro

Quoted 72 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Nobuhiro Iwamatsu
Sent: Friday, April 2, 2021 9:54 AM
To: [email protected]
Cc: [email protected]; iwamatsu nobuhiro(岩松 信洋 □SWC◯ACT) <[email protected]>
Subject: [cip-dev] [PATCH] kas: Add opt/targz-img.yml

This provides the function to specify 'targz-img' for IMAGE_TYPE. This is used when creating a tar.gz image that does not support wic.

---
 .gitlab-ci.yml        |  3 +++
 kas/opt/targz-img.yml | 20 ++++++++++++++++++++
 2 files changed, 23 insertions(+)
 create mode 100644 kas/opt/targz-img.yml
.gitlab-ci.yml +3 -0
index d14c72f..8802af1 100644
@@ -6,6 +6,7 @@ variables:
   extention: base
   use_rt: enable
   wic_targz: enable
+  targz: disable
   dtb: none
   deploy: enable
 
@@ -30,6 +31,7 @@ default:
     - 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 [ "${wic_targz}" = "enable" ]; then base_yaml="${base_yaml}:kas/opt/wic-targz-img.yml"; fi;
+    - if [ "${targz}" = "enable" ]; then base_yaml="${base_yaml}:kas/opt/targz-img.yml"; fi;
     - kas build ${base_yaml}
     - if [ "${deploy}" = "enable" ]; then scripts/deploy-cip-core.sh ${release} ${target} ${extention} ${dtb}; fi
 
@@ -69,6 +71,7 @@ build:qemu-amd64-base:
     extention: security
     use_rt: disable
     wic_targz: disable
+    targz: enable
     deploy: disable
 
 # test
kas/opt/targz-img.yml new file +20 -1
new file mode 100644
index 0000000..43c545e
@@ -0,0 +1,20 @@
+#
+# CIP Core, generic profile
+#
+# Copyright (c) Siemens AG, 2019
+#
+# Authors:
+#  Quirin Gylstorff <[email protected]>
+#
+# SPDX-License-Identifier: MIT
+#
+
+header:
+  version: 10
+
+# lava uses nfs to deploy the image. For this we need a tarball instead of
+# full image
+
+local_conf_header:
+  image-type: |
+    IMAGE_TYPE = "targz-img"
--
Quoted 1 line

2.30.0.rc2

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#6340): https://lists.cip-project.org/g/cip-dev/message/6340
Mute This Topic: https://lists.cip-project.org/mt/81792957/4520388
Group Owner: [email protected]
Unsubscribe: https://lists.cip-project.org/g/cip-dev/leave/8129055/4520388/727948398/xyzzy [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-