Return-Path: Received: from mail-iy0-f176.google.com (mail-iy0-f176.google.com [209.85.210.176]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 81A78E013A7 for ; Fri, 9 Mar 2012 12:19:00 -0800 (PST) Received: by iagw33 with SMTP id w33so3443790iag.35 for ; Fri, 09 Mar 2012 12:18:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:organization :user-agent; bh=AmQgyuDwgsenFKEzU5Siu+wE43xrm0pCSJXuIoUqJhE=; b=RlEYck9azwWdqnAnsDydRZ9IoBQjTt5g18H0z0KSv2xrxQY7ru8uF0fcbLuqcZkvJI pUvbgk31XzA1ojOcsPPUTj0YNmdv7P4/t9hiNQnG9sKrup+/AJ0BFOv4RzXRhN0yFs8u /JXt/HTCyHCp7unrtCC3k0Ev96eYTVvLl2ubrSmttdd65JyUPjb/wV4p5mIu5ixWranV evUtUPxuMpzR9wP1/SLXO47N/UYwRTwHNW+bQkT2L/HIaLtGDMfvDi7IPVpSwnrfoYnj F3ZiF5r4+7Mr44pZSQmkoQTP6I00hjiAeCILzr/j40sGfQ6RVusICPFOpW3GNX6C4Hi0 rH4g== Received: by 10.42.19.5 with SMTP id z5mr4574319ica.51.1331324339735; Fri, 09 Mar 2012 12:18:59 -0800 (PST) Received: from bill-the-cat (ip68-230-54-74.ph.ph.cox.net. [68.230.54.74]) by mx.google.com with ESMTPS id gh8sm213330igb.16.2012.03.09.12.18.57 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 09 Mar 2012 12:18:58 -0800 (PST) Sender: Tom Rini Date: Fri, 9 Mar 2012 13:19:00 -0700 From: Tom Rini To: Denys Dmytriyenko Message-ID: <20120309201900.GC11879@bill-the-cat> References: <1331235244-5173-1-git-send-email-trini@ti.com> <20120308210125.GE10587@denix.org> <20120309150156.GA27573@denix.org> <733E8AC8-86F5-4673-AA9E-49D02AC2F400@dominion.thruhere.net> <20120309191716.GB27573@denix.org> <20120309193631.GC27573@denix.org> MIME-Version: 1.0 In-Reply-To: <20120309193631.GC27573@denix.org> Organization: Texas Instruments User-Agent: Mutt/1.5.20 (2009-06-14) Cc: meta-ti@yoctoproject.org Subject: Re: [PATCH 0/4] IMAGE_FSTYPES fixes / improvements X-BeenThere: meta-ti@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Mailing list for the meta-ti layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Mar 2012 20:19:00 -0000 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Mar 09, 2012 at 02:36:31PM -0500, Denys Dmytriyenko wrote: > On Fri, Mar 09, 2012 at 08:19:48PM +0100, Koen Kooi wrote: > > > > Op 9 mrt. 2012, om 20:17 heeft Denys Dmytriyenko het volgende geschreven: > > > > > On Fri, Mar 09, 2012 at 07:43:40PM +0100, Koen Kooi wrote: > > >> > > >> Op 9 mrt. 2012, om 16:01 heeft Denys Dmytriyenko het volgende geschreven: > > >> > > >>> On Fri, Mar 09, 2012 at 07:20:30AM +0100, Koen Kooi wrote: > > >>>> > > >>>> Op 8 mrt. 2012, om 22:01 heeft Denys Dmytriyenko het volgende geschreven: > > >>>> > > >>>>> 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. > > >>>> > > >>>> += is the OE classic way of doing things and is IMNSHO the right thing. > > >>> > > >>> Not convinced: > > >>> > > >>> $ grep IMAGE_FSTYPES openembedded/conf/machine/*|awk '{print $2}'|sort|uniq -c > > >>> 30 = > > >>> 1 - > > >>> 44 ?= > > >>> 31 += > > >>> > > >>> BTW, dash in there is a fluke coming from here: > > >>> cm-x270.conf:# - IMAGE_FSTYPES = "jffs2 tar cpio.gz" > > >>> > > >>>>> 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? > > >>>> > > >>>> See the discussion on OE-core a while back. There was a lot of handwaving > > >>>> done and suggested that IMAGE_FSTYPES_append_$machine = " foo" in local.conf > > >>>> is the right way to do this. I think it's not intuitive because you have to > > >>>> remember that += and _append are expanded in different points during > > >>>> parsing, which requires either deep bitbake knowledge or minor braindamage. > > >>> > > >>> Link or it never happened :) > > >> > > >> No link, but: > > >> > > >> 19:41 < Tartarus> But, where's the oe-core thread? > > >> 19:41 < koen> somewhere on OE-core > > >> 19:42 < koen> [OE-core] [PATCH 1/2] qemu.inc: append to IMAGE_FSTYPES instead of weakly assigning them > > >> 19:42 < koen> july 2011 > > > > > > Ok, here's the link: > > > http://thread.gmane.org/gmane.comp.handhelds.openembedded.core/2060/focus=2061 > > > > > > It was discussed, there was no resolution, there were no changes. > > > > > > Claiming that's how it's done in Classic OE (aka .dev) is not correct - as I > > > showed above, 44 machines use ?=, 31 use += and 31 use = > > > > And how many of those machines are broken/unmaintained/etc > > And how many were you responsible for changing to += in .dev? :) > > > > > OE-Core still uses ?= > > > > > > Please give me the use case that this is meant to enable, which is not > > > possible now. > > > > Setting a global, additional type in local.conf without needing deep > > knowledge of bitbake. People just don't understand why they need to do > > IMAGE_FSTYPES_append = foo instead of IMAGE_FSTYPES += or IMAGE_FSTYPE = "foo" > > Let's say a machine has IMAGE_FSTYPES ?= "jffs2 ubi". > And setting IMAGE_FSTYPES = "ubi tag.gz jffs2 ext3" in local.conf still works! > > On the other hand, with the change to += I won't be able to set it to just > "tar.gz" and NOT build everything that machine supports, i.e. jffs2, ubi etc. > > I still believe the change breaks an existing valid use case w/o adding much > value... But, I'm willing to be convinced otherwise, if people vote it that > way. So, we need more opinions to weigh on the topic. :) So, this is a fundamental issue that needs (should) be consistent at the highest level too. I'll bring this up on oe-core and point out the previous threads, current oe-core only behavior, etc. -- Tom