From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Martin Jansa <martin.jansa@gmail.com>,
openembedded-core@lists.openembedded.org
Subject: Re: [PATCH] bitbake.conf: move IMAGE_NAME_SUFFIX variable from image_types.bbclass
Date: Mon, 01 Oct 2018 13:03:00 +0100 [thread overview]
Message-ID: <ef30e9f17c0bef54dab54d024f2fb2bf0a36be27.camel@linuxfoundation.org> (raw)
In-Reply-To: <20181001111233.29181-1-Martin.Jansa@gmail.com>
On Mon, 2018-10-01 at 11:12 +0000, Martin Jansa wrote:
> * currently it's used only by image.bbclass, image_types.bbclass and
> meta/recipes-core/images/build-appliance-image_15.0.0.bb
> but if it's needed by some recipe which isn't itself an image, then
> it's useful in bitbake.conf, e.g. we have a recipe for creating
> VirtualBox appliances which combines .wic.vmdk with .ovf file to
> create .zip with appliance, but for that we need the filename of
> .wic.vmdk which now contains IMAGE_NAME_SUFFIX
> https://github.com/webOS-ports/meta-webos-ports/blob/4980ce52a43ac6
> 897657602810313af359f0b839/meta-luneos/recipes-core/images/luneos-
> emulator-appliance.inc#L24
>
> * we were hardcoding .rootfs suffix where needed, but for quite long
> time it's configurable with IMAGE_NAME_SUFFIX and might not match:
>
> commit 380ee36811939d947024bf78de907e3c071b834f
> Author: Patrick Ohly <patrick.ohly@intel.com>
> Date: Mon Mar 7 18:07:52 2016 +0100
>
> image creation: allow overriding .rootfs suffix
>
> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
> ---
> meta/classes/image_types.bbclass | 6 ------
> meta/conf/bitbake.conf | 6 ++++++
> 2 files changed, 6 insertions(+), 6 deletions(-)
You could make this argument for many of the class variables, with
other code needing some small piece and we end up importing a ton of
stuff into bitbake.conf and global scope. My worry is this isn't
scalable and leads to code which is hard to disentangle.
How about we create imagevars.conf which the class could include, or
other users could include without pulling in the main class?
Cheers,
Richard
next prev parent reply other threads:[~2018-10-01 12:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-01 11:12 [PATCH] bitbake.conf: move IMAGE_NAME_SUFFIX variable from image_types.bbclass Martin Jansa
2018-10-01 11:33 ` ✗ patchtest: failure for " Patchwork
2018-10-01 12:03 ` Richard Purdie [this message]
2018-10-01 12:07 ` [PATCH] " Martin Jansa
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=ef30e9f17c0bef54dab54d024f2fb2bf0a36be27.camel@linuxfoundation.org \
--to=richard.purdie@linuxfoundation.org \
--cc=martin.jansa@gmail.com \
--cc=openembedded-core@lists.openembedded.org \
/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