From: Jan Kiszka <jan.kiszka@siemens.com>
To: isar-users@googlegroups.com
Subject: Re: [PATCH] image: include image name in the kernel/initrd image copies
Date: Thu, 18 Oct 2018 15:53:19 +0200 [thread overview]
Message-ID: <27912c86-2c53-4986-bf9c-2f9b9796bd50@siemens.com> (raw)
In-Reply-To: <a3e40c68-8a8f-4b5e-82ef-014e5845a0a4@googlegroups.com>
On 18.10.18 13:45, chombourger@gmail.com wrote:
> Hi Jan,
>
> We have two use cases so far: QEMU and wic. Both work without downstream effort
> by just using those two variables. That by itself is not bad. An alternative
> might only by peeking directly into the rootfs trees of the images, i.e.
> avoiding the copying to deploy. Not sure, actually, what value this copy-out
> provides, at least as long as the user does not manual deployment of the
> artifacts.
>
>
> Same here, it just sounded like a bigger change (which I am happy to work on if
> we want to go down this path)
>
> Anyway. If we keep copy-out: Instead of appending further elements to the
> kernel/initrd prefix, we should really consolidate things. The image, maybe it
> be wic-generated or ext4-img or whatever, as well as associated artifacts
> should
> follow the same file naming scheme so that you can easily identify related
> artifacts.
>
>
> Aren't we there with this patch?
>
> $ ls *isar-image-base-debian-stretch-qemuamd64*
> initrd.img-4.9.0-8-amd64_isar-image-base-debian-stretch-qemuamd64
> isar-image-base-debian-stretch-qemuamd64.wic.img
> vmlinuz-4.9.0-8-amd64_isar-image-base-debian-stretch-qemuamd6
>
> The command returned as expected all the image artifacts we have for
> IMAGE=isar-image-base && DISTRO=debian-stretch && MACHINE=qemuamd64
> The name pattern would be: [<sub-image-name>-]<image>-<distro>-<machine>[<suffix>]
>
ext4-img does
EXT4_IMAGE_FILE = "${DEPLOY_DIR_IMAGE}/${PN}-${DISTRO}-${MACHINE}.ext4.img"
wic-img does
WIC_IMAGE_FILE ="${DEPLOY_DIR_IMAGE}/${PN}-${DISTRO}-${MACHINE}.wic.img"
Now I would expect something like
KERNEL_IMAGE = "${DEPLOY_DIR_IMAGE}/${PN}-${DISTRO}-${MACHINE}.vmlinuz"
and similar for initrd. If there is a value (dunno), we could keep
including the kernel version.
Moreover, we should probably ensure via a single variable that the "${PN}-${DISTRO}-${MACHINE}" image name core is always the same, not
ad-hoc constructed in multiple places.
Or we strictly model what Yocto does, but that seems different to me
(bzImage--<kernel-recipe-version>-<machine>-<builddate>.bin), not even
multiconfig-ready.
Jan
--
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux
next prev parent reply other threads:[~2018-10-18 13:53 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-18 9:04 Cedric Hombourger
2018-10-18 9:27 ` Jan Kiszka
2018-10-18 9:46 ` chombourger
2018-10-18 10:29 ` Jan Kiszka
2018-10-18 10:37 ` Jan Kiszka
2018-10-18 11:45 ` chombourger
2018-10-18 13:53 ` Jan Kiszka [this message]
2018-10-18 17:23 ` [PATCH v2] " Cedric Hombourger
2018-10-22 12:49 ` cedric_hombourger
2018-10-22 13:52 ` Jan Kiszka
2018-10-25 11:19 ` Maxim Yu. Osipov
2018-10-25 11:20 ` Cedric Hombourger
2018-10-22 15:24 ` Henning Schild
2018-10-25 11:50 ` Cedric Hombourger
2018-10-25 14:22 ` Henning Schild
2018-10-25 14:46 ` [PATCH v3] " Cedric Hombourger
2018-10-26 12:58 ` Maxim Yu. Osipov
2018-11-09 11:04 ` Jan Kiszka
2018-10-22 15:48 ` [PATCH] " Henning Schild
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=27912c86-2c53-4986-bf9c-2f9b9796bd50@siemens.com \
--to=jan.kiszka@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