public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Harald Seiler <hws@denx.de>
To: isar-users@googlegroups.com,
	Cedric Hombourger <chombourger@gmail.com>,
	 Henning Schild <henning.schild@siemens.com>
Subject: [PATCH v3] meta: Add targz image class
Date: Tue, 27 Nov 2018 10:13:02 +0100	[thread overview]
Message-ID: <c86c3308ca7bb9825abb04f316e0d26697686755.camel@denx.de> (raw)
In-Reply-To: <237732BF-CA75-4471-B8EC-C0121B103B01@gmail.com>

This commit adds a new image class: targz-img

This image type is intended to be used when deploying
using nfs.  Also adds a new ci target: qemuamd64-buster-tgz
to ensure building a targz image works.

Signed-off-by: Harald Seiler <hws@denx.de>
---
 meta/classes/targz-img.bbclass                       | 15 +++++++++++++++
 meta-isar/conf/multiconfig/qemuamd64-buster-tgz.conf | 15 +++++++++++++++
 meta-isar/conf/local.conf.sample                     |  1 +
 scripts/ci_build.sh                                  |  1 +
 4 files changed, 32 insertions(+)
 create mode 100644 meta/classes/targz-img.bbclass
 create mode 100644 meta-isar/conf/multiconfig/qemuamd64-buster-tgz.conf

diff --git a/meta/classes/targz-img.bbclass b/meta/classes/targz-img.bbclass
new file mode 100644
index 0000000..ef3748e
--- /dev/null
+++ b/meta/classes/targz-img.bbclass
@@ -0,0 +1,15 @@
+# This software is a part of ISAR.
+# Copyright (c) Siemens AG, 2018
+#
+# SPDX-License-Identifier: MIT
+
+TARGZ_IMAGE_FILE = "${DEPLOY_DIR_IMAGE}/${IMAGE_FULLNAME}.tar.gz"
+
+do_targz_image[stamp-extra-info] = "${DISTRO}-${MACHINE}"
+
+do_targz_image() {
+    rm -f ${TARGZ_IMAGE_FILE}
+    sudo tar -cvzf ${TARGZ_IMAGE_FILE} -C ${IMAGE_ROOTFS} .
+}
+
+addtask targz_image before do_build after do_mark_rootfs
diff --git a/meta-isar/conf/multiconfig/qemuamd64-buster-tgz.conf b/meta-isar/conf/multiconfig/qemuamd64-buster-tgz.conf
new file mode 100644
index 0000000..1894454
--- /dev/null
+++ b/meta-isar/conf/multiconfig/qemuamd64-buster-tgz.conf
@@ -0,0 +1,15 @@
+# This software is a part of ISAR.
+# Copyright (c) Siemens AG, 2018
+#
+# SPDX-License-Identifier: MIT
+
+MACHINE ?= "qemuamd64"
+
+DISTRO ?= "debian-buster"
+DISTRO_ARCH ?= "amd64"
+
+KERNEL_NAME ?= "amd64"
+
+IMAGE_TYPE ?= "targz-img"
+
+IMAGE_INSTALL += "sshd-regen-keys"
diff --git a/meta-isar/conf/local.conf.sample b/meta-isar/conf/local.conf.sample
index 4a60068..fe81f20 100644
--- a/meta-isar/conf/local.conf.sample
+++ b/meta-isar/conf/local.conf.sample
@@ -52,6 +52,7 @@ BBMULTICONFIG = " \
     de0-nano-soc-stretch \
     hikey-stretch \
     qemuamd64-buster \
+    qemuamd64-buster-tgz \
     rpi-jessie \
 "
 
diff --git a/scripts/ci_build.sh b/scripts/ci_build.sh
index 059df21..8f03935 100755
--- a/scripts/ci_build.sh
+++ b/scripts/ci_build.sh
@@ -104,6 +104,7 @@ else
         multiconfig:qemuamd64-jessie:isar-image-base \
         multiconfig:qemuamd64-stretch:isar-image-base \
         multiconfig:qemuamd64-buster:isar-image-base \
+        multiconfig:qemuamd64-buster-tgz:isar-image-base \
         multiconfig:rpi-jessie:isar-image-base
     # qemu-user-static of <= buster too old to build that
     #multiconfig:qemuarm64-buster:isar-image-base

-- 
Harald

DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-62  Fax: +49-8142-66989-80   Email: hws@denx.de 


  reply	other threads:[~2018-11-27  9:13 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-20 11:50 [PATCH] " Harald Seiler
2018-11-20 11:54 ` Jan Kiszka
2018-11-20 12:51 ` Henning Schild
2018-11-20 13:07   ` Harald Seiler
2018-11-20 13:14     ` chombourger
2018-11-20 13:19   ` [PATCH v2] " Harald Seiler
2018-11-23  7:32     ` Maxim Yu. Osipov
2018-11-23 11:38       ` Harald Seiler
2018-11-24 14:01         ` Cedric Hombourger
2018-11-27  9:13           ` Harald Seiler [this message]
2018-12-10 12:04             ` [PATCH v3] " Maxim Yu. Osipov

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=c86c3308ca7bb9825abb04f316e0d26697686755.camel@denx.de \
    --to=hws@denx.de \
    --cc=chombourger@gmail.com \
    --cc=henning.schild@siemens.com \
    --cc=isar-users@googlegroups.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox