From: Denys Dmytriyenko <denis@denix.org>
To: Tom Rini <trini@ti.com>
Cc: meta-ti@yoctoproject.org
Subject: Re: [PATCH 0/4] IMAGE_FSTYPES fixes / improvements
Date: Thu, 08 Mar 2012 16:01:25 -0500 [thread overview]
Message-ID: <20120308210125.GE10587@denix.org> (raw)
In-Reply-To: <1331235244-5173-1-git-send-email-trini@ti.com>
On Thu, Mar 08, 2012 at 12:34:00PM -0700, Tom Rini wrote:
> Hey all,
>
> This short series does two things. For 3 machines we fix a bug of using
> '?=' rather than '+=' for setting IMAGE_FSTYPES (these are all of the
> machines that have this issue today except for...) and on the 4th,
> am335x-evm we add UBI support as well. On the first three, these are
> correct by inspection and on the fourth, I've written to and mounted
> systemd-image from NAND on my EVM (it didn't work as I was using a custom
> uImage that's not systemd-sane, and fixing that and confirming the config
> used here works is on my list).
All,
Tom and I started talking on IRC and then decided to move the discussion back
to the mailing list for others to participate.
So, basically, the proposal is to do this in our machine.conf files:
-IMAGE_FSTYPES ?= "jffs2 tar.bz2"
+IMAGE_FSTYPES += "jffs2 tar.bz2"
My response was that we shouldn't do that. The conf files that may set, append
or overwrite IMAGE_FSTYPES are parsed in the order of local.conf, machine.conf
and distro.conf. And if none of those set IMAGE_FSTYPES, bitbake.conf defaults
to a sane tar.gz. From end-user perspective, they expect the setting in their
local.conf to be obeyed. If they don't care and don't set IMAGE_FSTYPES, then
machine.conf will set it to supported values, i.e. jffs2 and tar.bz2 in our
case. Of course, distro has the last word and potentially can alter it, but in
most cases it shouldn't. That's how it works now and I believe it's the
correct behaviour. Changing it to append additional values to what user wants
is slightly heavy-handed, in my opinion. In other words, those are suggested
image types, not enforced ones.
As Tom poined out, this is the same behaviour as currently used in OE-Core,
where qemu machines all have IMAGE_FSTYPES ?= "tar.bz2 ext3".
The original issue in question may be coming from the way some setup scripts
pre-configure user settings in local.conf, defaulting IMAGE_FSTYPES to
something, that is not very suitable for the machines being used. This needs
to be left unset and for the end-user to decide and set specifically, IMHO.
Comments, opinions?
--
Denys
next prev parent reply other threads:[~2012-03-08 21:01 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-08 19:34 [PATCH 0/4] IMAGE_FSTYPES fixes / improvements Tom Rini
2012-03-08 19:34 ` [PATCH 1/4] am37x-evm.conf: Use '+=' not '?=' in IMAGE_FSTYPES Tom Rini
2012-03-08 19:34 ` [PATCH 2/4] ti814x.inc: " Tom Rini
2012-03-08 19:34 ` [PATCH 3/4] omap3evm.conf: " Tom Rini
2012-03-08 19:34 ` [PATCH 4/4] am335x-evm.conf: Add 'ubi' to IMAGE_FSTYPES Tom Rini
2012-03-09 6:16 ` Koen Kooi
2012-03-09 15:54 ` Tom Rini
2012-03-09 18:38 ` Koen Kooi
2012-03-08 21:01 ` Denys Dmytriyenko [this message]
2012-03-09 6:20 ` [PATCH 0/4] IMAGE_FSTYPES fixes / improvements Koen Kooi
2012-03-09 15:01 ` Denys Dmytriyenko
2012-03-09 18:43 ` Koen Kooi
2012-03-09 19:17 ` Denys Dmytriyenko
2012-03-09 19:19 ` Koen Kooi
2012-03-09 19:36 ` Denys Dmytriyenko
2012-03-09 20:19 ` Tom Rini
2012-03-23 17:36 ` [PATCH v2 1/4] am37x-evm.conf: Use '=' not '?=' in IMAGE_FSTYPES Tom Rini
2012-03-28 18:14 ` [PATCH v3 01/10] am37x-evm.conf: Use '=+' " Tom Rini
2012-03-29 17:18 ` [PATCH v4 1/4] am37x-evm.conf: Use '+=' " Tom Rini
2012-03-29 17:18 ` [PATCH v4 2/4] ti814x.inc: " Tom Rini
2012-03-29 17:18 ` [PATCH v4 3/4] omap3evm.conf: " Tom Rini
2012-03-29 17:18 ` [PATCH v4 4/4] am335x-evm.conf: Add 'ubi' to IMAGE_FSTYPES, use '+=' in assignment Tom Rini
2012-03-28 18:14 ` [PATCH v3 02/10] ti814x.inc: Use '=+' not '?=' in IMAGE_FSTYPES Tom Rini
2012-03-28 18:14 ` [PATCH v3 03/10] omap3evm.conf: " Tom Rini
2012-03-28 18:14 ` [PATCH v3 04/10] am335x-evm.conf: Add 'ubi' to IMAGE_FSTYPES, use '=+' in assignment Tom Rini
2012-03-28 18:14 ` [PATCH v3 05/10] am3517-evm.conf: Use '=+' not '+=' in IMAGE_FSTYPES Tom Rini
2012-03-28 18:14 ` [PATCH v3 06/10] beagleboard.conf: " Tom Rini
2012-03-28 18:14 ` [PATCH v3 07/10] ti816x.inC: " Tom Rini
2012-03-28 18:14 ` [PATCH v3 08/10] beaglebone.conf: " Tom Rini
2012-03-28 18:14 ` [PATCH v3 09/10] omap3-touchbook.conf: " Tom Rini
2012-03-28 18:14 ` [PATCH v3 10/10] pandaboard.conf: " Tom Rini
2012-03-23 17:36 ` [PATCH v2 2/4] ti814x.inc: Use '=' not '?=' " Tom Rini
2012-03-23 17:36 ` [PATCH v2 3/4] omap3evm.conf: Use '+=' " Tom Rini
2012-03-23 17:38 ` Tom Rini
2012-03-23 17:51 ` Denys Dmytriyenko
2012-03-23 17:53 ` Tom Rini
2012-03-24 2:00 ` Denys Dmytriyenko
2012-03-23 17:36 ` [PATCH v2 4/4] am335x-evm.conf: Add 'ubi' to IMAGE_FSTYPES, use '=' in assignment Tom Rini
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=20120308210125.GE10587@denix.org \
--to=denis@denix.org \
--cc=meta-ti@yoctoproject.org \
--cc=trini@ti.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.