From: "Maxim Yu. Osipov" <mosipov@ilbers.de>
To: Harald Seiler <hws@denx.de>,
isar-users@googlegroups.com,
Cedric Hombourger <chombourger@gmail.com>,
Henning Schild <henning.schild@siemens.com>
Subject: Re: [PATCH v3] meta: Add targz image class
Date: Mon, 10 Dec 2018 15:04:19 +0300 [thread overview]
Message-ID: <7c8247c8-a5c2-20de-f742-a93912b22bb7@ilbers.de> (raw)
In-Reply-To: <c86c3308ca7bb9825abb04f316e0d26697686755.camel@denx.de>
On 11/27/18 12:13 PM, Harald Seiler wrote:
> 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.
Applied to the 'next'.
Sorry for the delay - build in 'next' had to be repaired first.
Thanks,
Maxim.
> 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
>
--
Maxim Osipov
ilbers GmbH
Maria-Merian-Str. 8
85521 Ottobrunn
Germany
+49 (151) 6517 6917
mosipov@ilbers.de
http://ilbers.de/
Commercial register Munich, HRB 214197
General Manager: Baurzhan Ismagulov
prev parent reply other threads:[~2018-12-10 12:04 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 ` [PATCH v3] " Harald Seiler
2018-12-10 12:04 ` Maxim Yu. Osipov [this message]
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=7c8247c8-a5c2-20de-f742-a93912b22bb7@ilbers.de \
--to=mosipov@ilbers.de \
--cc=chombourger@gmail.com \
--cc=henning.schild@siemens.com \
--cc=hws@denx.de \
--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