From: Henning Schild <henning.schild@siemens.com>
To: Felix Moessbauer <felix.moessbauer@siemens.com>
Cc: isar-users@googlegroups.com,
Adriaan Schmidt <adriaan.schmidt@siemens.com>
Subject: Re: [PATCH v2] use xz and gzip on host (outside chroot)
Date: Mon, 8 Aug 2022 17:30:49 +0200 [thread overview]
Message-ID: <20220808173049.23ea9579@md1za8fc.ad001.siemens.net> (raw)
In-Reply-To: <20220808073613.133842-1-felix.moessbauer@siemens.com>
Am Mon, 8 Aug 2022 09:36:12 +0200
schrieb Felix Moessbauer <felix.moessbauer@siemens.com>:
> From: Adriaan Schmidt <adriaan.schmidt@siemens.com>
>
> This patch significantly speeds up the final image compression
> as the compression itself is no longer emulated.
>
> For gzip, no additional dep has to be installed on the system,
> for xz the xz-utils package has to be installed but this will
> be required from bitbake 2.0 on anyways.
>
> Signed-off-by: Adriaan Schmidt <adriaan.schmidt@siemens.com>
> Acked-by: Felix Moessbauer <felix.moessbauer@siemens.com>
> ---
> doc/user_manual.md | 3 ++-
> meta/classes/imagetypes.bbclass | 8 ++++----
> 2 files changed, 6 insertions(+), 5 deletions(-)
>
> diff --git a/doc/user_manual.md b/doc/user_manual.md
> index 546ae75c..932bfbe5 100644
> --- a/doc/user_manual.md
> +++ b/doc/user_manual.md
> @@ -83,7 +83,8 @@ apt install \
> reprepro \
> sudo \
> git-buildpackage \
> - pristine-tar
> + pristine-tar \
> + xz-utils
> ```
>
> Additional setup is required since `sbuild` is now used for package
> build. diff --git a/meta/classes/imagetypes.bbclass
> b/meta/classes/imagetypes.bbclass index 1e8e223d..319e9dc8 100644
> --- a/meta/classes/imagetypes.bbclass
> +++ b/meta/classes/imagetypes.bbclass
> @@ -95,13 +95,13 @@ IMAGE_CMD_ubi[depends] =
> "${PN}:do_transform_template" # image conversions
> IMAGE_CONVERSIONS = "gz xz"
>
> -CONVERSION_CMD_gz = "${SUDO_CHROOT} sh -c 'gzip -f -9 -n -c
> --rsyncable ${IMAGE_FILE_CHROOT} > ${IMAGE_FILE_CHROOT}.gz'"
> -CONVERSION_DEPS_gz = "gzip" +CONVERSION_CMD_gz ?= "gzip -f -9 -n -c
> --rsyncable ${IMAGE_FILE_HOST} > ${IMAGE_FILE_HOST}.gz"
> +CONVERSION_DEPS_gz ?= ""
No. Please only add the ? so you can take the shortcut in your layer,
without changing the conservative and slow isar defaults.
Henning
> XZ_MEMLIMIT ?= "50%"
> XZ_THREADS ?= "${@oe.utils.cpu_count(at_least=2)}"
> XZ_THREADS[vardepvalue] = "1"
> XZ_OPTIONS ?= "--memlimit=${XZ_MEMLIMIT} --threads=${XZ_THREADS}"
> XZ_OPTIONS[vardepsexclude] += "XZ_MEMLIMIT XZ_THREADS"
> -CONVERSION_CMD_xz = "${SUDO_CHROOT} sh -c 'xz -c ${XZ_OPTIONS}
> ${IMAGE_FILE_CHROOT} > ${IMAGE_FILE_CHROOT}.xz'" -CONVERSION_DEPS_xz
> = "xz-utils" +CONVERSION_CMD_xz ?= "xz -c ${XZ_OPTIONS}
> ${IMAGE_FILE_HOST} > ${IMAGE_FILE_HOST}.xz" +CONVERSION_DEPS_xz ?= ""
next prev parent reply other threads:[~2022-08-08 15:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-08 7:36 Felix Moessbauer
2022-08-08 15:30 ` Henning Schild [this message]
2022-08-15 10:47 ` Baurzhan Ismagulov
2022-08-16 15:11 ` Anton Mikanovich
2022-08-30 15:38 ` Moessbauer, Felix
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=20220808173049.23ea9579@md1za8fc.ad001.siemens.net \
--to=henning.schild@siemens.com \
--cc=adriaan.schmidt@siemens.com \
--cc=felix.moessbauer@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