* Order of .conf processing? @ 2011-07-18 13:51 Gary Thomas 2011-07-18 13:59 ` Chris Larson 0 siblings, 1 reply; 7+ messages in thread From: Gary Thomas @ 2011-07-18 13:51 UTC (permalink / raw) To: Poky Project What's the order of processing of the various .conf files? It seems to me that bitbake.conf must be first as it seems impossible to override settings in that file using a soft assignment. In particular, local.conf often has soft settings but these dont' seem to change what's in bitbake.conf -- ------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------ ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Order of .conf processing? 2011-07-18 13:51 Order of .conf processing? Gary Thomas @ 2011-07-18 13:59 ` Chris Larson 2011-07-18 14:05 ` Gary Thomas 0 siblings, 1 reply; 7+ messages in thread From: Chris Larson @ 2011-07-18 13:59 UTC (permalink / raw) To: Gary Thomas; +Cc: Poky Project On Mon, Jul 18, 2011 at 6:51 AM, Gary Thomas <gary@mlbassoc.com> wrote: > What's the order of processing of the various .conf files? > > It seems to me that bitbake.conf must be first as it seems > impossible to override settings in that file using a soft > assignment. In particular, local.conf often has soft settings > but these dont' seem to change what's in bitbake.conf BitBake only parses one global configuration file, bitbake.conf. It's bitbake.conf that includes/requires all the other configuration files. You can see the order by reading those inclusions in bitbake.conf. Historically, the intention was for the configuration file load order to be relatively parallel to the overrides order -- two different mechanisms for implementing what is essentially a layered architecture for the metadata, allowing, generally, more specific information to override more general information. The configuration file order differs slightly from that, however, as it's not possible to load the distro or machine config files after local.conf, as local.conf is generally where DISTRO and MACHINE are defined. -- Christopher Larson clarson at kergoth dot com Founder - BitBake, OpenEmbedded, OpenZaurus Maintainer - Tslib Senior Software Engineer, Mentor Graphics ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Order of .conf processing? 2011-07-18 13:59 ` Chris Larson @ 2011-07-18 14:05 ` Gary Thomas 2011-07-18 14:12 ` Chris Larson 0 siblings, 1 reply; 7+ messages in thread From: Gary Thomas @ 2011-07-18 14:05 UTC (permalink / raw) To: Chris Larson; +Cc: Poky Project On 07/18/2011 07:59 AM, Chris Larson wrote: > On Mon, Jul 18, 2011 at 6:51 AM, Gary Thomas<gary@mlbassoc.com> wrote: >> What's the order of processing of the various .conf files? >> >> It seems to me that bitbake.conf must be first as it seems >> impossible to override settings in that file using a soft >> assignment. In particular, local.conf often has soft settings >> but these dont' seem to change what's in bitbake.conf > > BitBake only parses one global configuration file, bitbake.conf. It's > bitbake.conf that includes/requires all the other configuration files. > You can see the order by reading those inclusions in bitbake.conf. > Historically, the intention was for the configuration file load order > to be relatively parallel to the overrides order -- two different > mechanisms for implementing what is essentially a layered architecture > for the metadata, allowing, generally, more specific information to > override more general information. The configuration file order > differs slightly from that, however, as it's not possible to load the > distro or machine config files after local.conf, as local.conf is > generally where DISTRO and MACHINE are defined. In that case, isn't using ?= assignments in bitbake.conf a bit misleading? -- ------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------ ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Order of .conf processing? 2011-07-18 14:05 ` Gary Thomas @ 2011-07-18 14:12 ` Chris Larson 2011-07-18 14:28 ` Richard Purdie 0 siblings, 1 reply; 7+ messages in thread From: Chris Larson @ 2011-07-18 14:12 UTC (permalink / raw) To: Gary Thomas; +Cc: Poky Project On Mon, Jul 18, 2011 at 7:05 AM, Gary Thomas <gary@mlbassoc.com> wrote: > On 07/18/2011 07:59 AM, Chris Larson wrote: >> >> On Mon, Jul 18, 2011 at 6:51 AM, Gary Thomas<gary@mlbassoc.com> wrote: >>> >>> What's the order of processing of the various .conf files? >>> >>> It seems to me that bitbake.conf must be first as it seems >>> impossible to override settings in that file using a soft >>> assignment. In particular, local.conf often has soft settings >>> but these dont' seem to change what's in bitbake.conf >> >> BitBake only parses one global configuration file, bitbake.conf. It's >> bitbake.conf that includes/requires all the other configuration files. >> You can see the order by reading those inclusions in bitbake.conf. >> Historically, the intention was for the configuration file load order >> to be relatively parallel to the overrides order -- two different >> mechanisms for implementing what is essentially a layered architecture >> for the metadata, allowing, generally, more specific information to >> override more general information. The configuration file order >> differs slightly from that, however, as it's not possible to load the >> distro or machine config files after local.conf, as local.conf is >> generally where DISTRO and MACHINE are defined. > > In that case, isn't using ?= assignments in bitbake.conf a bit misleading? First, there is one place variables can come from before the configuration files, and that's the process environment, for variables which aren't filtered out. Second, it could use ?= sanely after the configuration files are included, as well. -- Christopher Larson clarson at kergoth dot com Founder - BitBake, OpenEmbedded, OpenZaurus Maintainer - Tslib Senior Software Engineer, Mentor Graphics ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Order of .conf processing? 2011-07-18 14:12 ` Chris Larson @ 2011-07-18 14:28 ` Richard Purdie 2011-07-18 14:34 ` Gary Thomas 0 siblings, 1 reply; 7+ messages in thread From: Richard Purdie @ 2011-07-18 14:28 UTC (permalink / raw) To: Chris Larson; +Cc: Poky Project On Mon, 2011-07-18 at 07:12 -0700, Chris Larson wrote: > On Mon, Jul 18, 2011 at 7:05 AM, Gary Thomas <gary@mlbassoc.com> wrote: > > On 07/18/2011 07:59 AM, Chris Larson wrote: > >> > >> On Mon, Jul 18, 2011 at 6:51 AM, Gary Thomas<gary@mlbassoc.com> wrote: > >>> > >>> What's the order of processing of the various .conf files? > >>> > >>> It seems to me that bitbake.conf must be first as it seems > >>> impossible to override settings in that file using a soft > >>> assignment. In particular, local.conf often has soft settings > >>> but these dont' seem to change what's in bitbake.conf > >> > >> BitBake only parses one global configuration file, bitbake.conf. It's > >> bitbake.conf that includes/requires all the other configuration files. > >> You can see the order by reading those inclusions in bitbake.conf. > >> Historically, the intention was for the configuration file load order > >> to be relatively parallel to the overrides order -- two different > >> mechanisms for implementing what is essentially a layered architecture > >> for the metadata, allowing, generally, more specific information to > >> override more general information. The configuration file order > >> differs slightly from that, however, as it's not possible to load the > >> distro or machine config files after local.conf, as local.conf is > >> generally where DISTRO and MACHINE are defined. > > > > In that case, isn't using ?= assignments in bitbake.conf a bit misleading? > > First, there is one place variables can come from before the > configuration files, and that's the process environment, for variables > which aren't filtered out. Second, it could use ?= sanely after the > configuration files are included, as well. It does this second part pretty clearly: [...] require conf/xxx.conf require conf/yyy.conf TUNE_ARCH ?= "INVALID" TUNE_FEATURES ?= "${TUNE_FEATURES_tune-${TUNENAME}}" ################################################################## # Weak variables (usually to retain backwards compatibility) ################################################################## DL_DIR ?= "${TOPDIR}/downloads" [...] so most of the ?= variables are after the includes. Looking at the file, there are some good candidates for either = or ??= though, including I suspect the console ones which are likely what prompted this? Cheers, Richard ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Order of .conf processing? 2011-07-18 14:28 ` Richard Purdie @ 2011-07-18 14:34 ` Gary Thomas 2011-07-21 19:17 ` Khem Raj 0 siblings, 1 reply; 7+ messages in thread From: Gary Thomas @ 2011-07-18 14:34 UTC (permalink / raw) To: Richard Purdie; +Cc: Chris Larson, Poky Project On 07/18/2011 08:28 AM, Richard Purdie wrote: > On Mon, 2011-07-18 at 07:12 -0700, Chris Larson wrote: >> On Mon, Jul 18, 2011 at 7:05 AM, Gary Thomas<gary@mlbassoc.com> wrote: >>> On 07/18/2011 07:59 AM, Chris Larson wrote: >>>> >>>> On Mon, Jul 18, 2011 at 6:51 AM, Gary Thomas<gary@mlbassoc.com> wrote: >>>>> >>>>> What's the order of processing of the various .conf files? >>>>> >>>>> It seems to me that bitbake.conf must be first as it seems >>>>> impossible to override settings in that file using a soft >>>>> assignment. In particular, local.conf often has soft settings >>>>> but these dont' seem to change what's in bitbake.conf >>>> >>>> BitBake only parses one global configuration file, bitbake.conf. It's >>>> bitbake.conf that includes/requires all the other configuration files. >>>> You can see the order by reading those inclusions in bitbake.conf. >>>> Historically, the intention was for the configuration file load order >>>> to be relatively parallel to the overrides order -- two different >>>> mechanisms for implementing what is essentially a layered architecture >>>> for the metadata, allowing, generally, more specific information to >>>> override more general information. The configuration file order >>>> differs slightly from that, however, as it's not possible to load the >>>> distro or machine config files after local.conf, as local.conf is >>>> generally where DISTRO and MACHINE are defined. >>> >>> In that case, isn't using ?= assignments in bitbake.conf a bit misleading? >> >> First, there is one place variables can come from before the >> configuration files, and that's the process environment, for variables >> which aren't filtered out. Second, it could use ?= sanely after the >> configuration files are included, as well. > > It does this second part pretty clearly: > > [...] > require conf/xxx.conf > require conf/yyy.conf > > TUNE_ARCH ?= "INVALID" > TUNE_FEATURES ?= "${TUNE_FEATURES_tune-${TUNENAME}}" > > ################################################################## > # Weak variables (usually to retain backwards compatibility) > ################################################################## > > DL_DIR ?= "${TOPDIR}/downloads" > [...] > > so most of the ?= variables are after the includes. > > Looking at the file, there are some good candidates for either = or ??= > though, including I suspect the console ones which are likely what > prompted this? Yes, I tried to override TERMCMD using ?= in local.conf and that didn't work. Using = fixed it though. -- ------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------ ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Order of .conf processing? 2011-07-18 14:34 ` Gary Thomas @ 2011-07-21 19:17 ` Khem Raj 0 siblings, 0 replies; 7+ messages in thread From: Khem Raj @ 2011-07-21 19:17 UTC (permalink / raw) To: Gary Thomas; +Cc: Chris Larson, Poky Project On Mon, Jul 18, 2011 at 7:34 AM, Gary Thomas <gary@mlbassoc.com> wrote: > On 07/18/2011 08:28 AM, Richard Purdie wrote: >> >> On Mon, 2011-07-18 at 07:12 -0700, Chris Larson wrote: >>> >>> On Mon, Jul 18, 2011 at 7:05 AM, Gary Thomas<gary@mlbassoc.com> wrote: >>>> >>>> On 07/18/2011 07:59 AM, Chris Larson wrote: >>>>> >>>>> On Mon, Jul 18, 2011 at 6:51 AM, Gary Thomas<gary@mlbassoc.com> >>>>> wrote: >>>>>> >>>>>> What's the order of processing of the various .conf files? >>>>>> >>>>>> It seems to me that bitbake.conf must be first as it seems >>>>>> impossible to override settings in that file using a soft >>>>>> assignment. In particular, local.conf often has soft settings >>>>>> but these dont' seem to change what's in bitbake.conf >>>>> >>>>> BitBake only parses one global configuration file, bitbake.conf. It's >>>>> bitbake.conf that includes/requires all the other configuration files. >>>>> You can see the order by reading those inclusions in bitbake.conf. >>>>> Historically, the intention was for the configuration file load order >>>>> to be relatively parallel to the overrides order -- two different >>>>> mechanisms for implementing what is essentially a layered architecture >>>>> for the metadata, allowing, generally, more specific information to >>>>> override more general information. The configuration file order >>>>> differs slightly from that, however, as it's not possible to load the >>>>> distro or machine config files after local.conf, as local.conf is >>>>> generally where DISTRO and MACHINE are defined. >>>> >>>> In that case, isn't using ?= assignments in bitbake.conf a bit >>>> misleading? >>> >>> First, there is one place variables can come from before the >>> configuration files, and that's the process environment, for variables >>> which aren't filtered out. Second, it could use ?= sanely after the >>> configuration files are included, as well. >> >> It does this second part pretty clearly: >> >> [...] >> require conf/xxx.conf >> require conf/yyy.conf >> >> TUNE_ARCH ?= "INVALID" >> TUNE_FEATURES ?= "${TUNE_FEATURES_tune-${TUNENAME}}" >> >> ################################################################## >> # Weak variables (usually to retain backwards compatibility) >> ################################################################## >> >> DL_DIR ?= "${TOPDIR}/downloads" >> [...] >> >> so most of the ?= variables are after the includes. >> >> Looking at the file, there are some good candidates for either = or ??= >> though, including I suspect the console ones which are likely what >> prompted this? > > Yes, I tried to override TERMCMD using ?= in local.conf and that didn't > work. Using = fixed it though. ?= means you still wanted others places to override it if any local.conf settings are mostly like what you want to have override over others so using = would be right here. ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2011-07-21 19:18 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2011-07-18 13:51 Order of .conf processing? Gary Thomas 2011-07-18 13:59 ` Chris Larson 2011-07-18 14:05 ` Gary Thomas 2011-07-18 14:12 ` Chris Larson 2011-07-18 14:28 ` Richard Purdie 2011-07-18 14:34 ` Gary Thomas 2011-07-21 19:17 ` Khem Raj
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.