All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1][PULL] layer.conf: Define DISTRO in layer.conf
@ 2012-03-29 12:01 Dongxiao Xu
  2012-03-29 12:01 ` [PATCH 1/1] meta-yocto: " Dongxiao Xu
  0 siblings, 1 reply; 4+ messages in thread
From: Dongxiao Xu @ 2012-03-29 12:01 UTC (permalink / raw)
  To: poky

Hi Richard,

This pull request is a change for defining DISTRO variable.

Please help to review and pull.

Thanks,
Dongxiao

The following changes since commit 331f7fa3f26322367c6e298efd282267bfdb6501:

  ghostscript: Fix remaining CP_ prallel make races (2012-03-29 09:44:46 +0100)

are available in the git repository at:
  git://git.pokylinux.org/poky-contrib dxu4/hob-bugfix-yocto
  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=dxu4/hob-bugfix-yocto

Dongxiao Xu (1):
  meta-yocto: Define DISTRO in layer.conf

 meta-yocto/conf/distro/poky.conf  |    1 -
 meta-yocto/conf/layer.conf        |    1 +
 meta-yocto/conf/local.conf.sample |    4 ++--
 3 files changed, 3 insertions(+), 3 deletions(-)

-- 
1.7.4.1



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/1] meta-yocto: Define DISTRO in layer.conf
  2012-03-29 12:01 [PATCH 0/1][PULL] layer.conf: Define DISTRO in layer.conf Dongxiao Xu
@ 2012-03-29 12:01 ` Dongxiao Xu
  2012-03-29 13:23   ` Richard Purdie
  0 siblings, 1 reply; 4+ messages in thread
From: Dongxiao Xu @ 2012-03-29 12:01 UTC (permalink / raw)
  To: poky

Add the definition of DISTRO variable in meta-yocto/conf/layer.conf,
and remove the corresponding definition in local.conf.sample.

As we know, if we source oe-init-build-env in Yocto project environment,
we will have DISTRO="poky" set in local.conf by default, where the
"poky" DISTRO comes from the meta-yocto layer. If user deletes
meta-yocto layer from BBLAYERS in bblayers.conf, and then error will
happen when bitbake parsing the local.conf, since it could not find
where the "poky" DISTRO comes from.

Putting the DISTRO definition in layer.conf to avoid defining two
related variables (DISTRO and BBLAYERS) in two separate
configuration files (local.conf and bblayers.conf).

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
---
 meta-yocto/conf/distro/poky.conf  |    1 -
 meta-yocto/conf/layer.conf        |    1 +
 meta-yocto/conf/local.conf.sample |    4 ++--
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/meta-yocto/conf/distro/poky.conf b/meta-yocto/conf/distro/poky.conf
index e4d7c1d..31c3de5 100644
--- a/meta-yocto/conf/distro/poky.conf
+++ b/meta-yocto/conf/distro/poky.conf
@@ -1,4 +1,3 @@
-DISTRO = "poky"
 DISTRO_NAME = "Yocto (Built by Poky 6.0)"
 DISTRO_VERSION = "1.1+snapshot-${DATE}"
 SDK_VENDOR = "-pokysdk"
diff --git a/meta-yocto/conf/layer.conf b/meta-yocto/conf/layer.conf
index 7917962..b24d7e9 100644
--- a/meta-yocto/conf/layer.conf
+++ b/meta-yocto/conf/layer.conf
@@ -9,3 +9,4 @@ BBFILE_COLLECTIONS += "yocto"
 BBFILE_PATTERN_yocto := "^${LAYERDIR}/"
 BBFILE_PRIORITY_yocto = "5"
 
+DISTRO ?= "poky"
diff --git a/meta-yocto/conf/local.conf.sample b/meta-yocto/conf/local.conf.sample
index 38507e3..eca1fbe 100644
--- a/meta-yocto/conf/local.conf.sample
+++ b/meta-yocto/conf/local.conf.sample
@@ -99,12 +99,12 @@ MACHINE ??= "qemux86"
 # Ultimately when creating custom policy, people will likely end up subclassing 
 # these defaults.
 #
-DISTRO ?= "poky"
+# DISTRO = "poky"
 # As an example of a subclass there is a "bleeding" edge policy configuration
 # where many versions are set to the absolute latest code from the upstream 
 # source control systems. This is just mentioned here as an example, its not
 # useful to most new users.
-# DISTRO ?= "poky-bleeding"
+# DISTRO = "poky-bleeding"
 
 #
 # Package Management configuration
-- 
1.7.4.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/1] meta-yocto: Define DISTRO in layer.conf
  2012-03-29 12:01 ` [PATCH 1/1] meta-yocto: " Dongxiao Xu
@ 2012-03-29 13:23   ` Richard Purdie
  2012-03-29 13:39     ` Carl Simonson
  0 siblings, 1 reply; 4+ messages in thread
From: Richard Purdie @ 2012-03-29 13:23 UTC (permalink / raw)
  To: Dongxiao Xu; +Cc: poky

On Thu, 2012-03-29 at 20:01 +0800, Dongxiao Xu wrote:
> Add the definition of DISTRO variable in meta-yocto/conf/layer.conf,
> and remove the corresponding definition in local.conf.sample.
> 
> As we know, if we source oe-init-build-env in Yocto project environment,
> we will have DISTRO="poky" set in local.conf by default, where the
> "poky" DISTRO comes from the meta-yocto layer. If user deletes
> meta-yocto layer from BBLAYERS in bblayers.conf, and then error will
> happen when bitbake parsing the local.conf, since it could not find
> where the "poky" DISTRO comes from.
> 
> Putting the DISTRO definition in layer.conf to avoid defining two
> related variables (DISTRO and BBLAYERS) in two separate
> configuration files (local.conf and bblayers.conf).
> 
> Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
> ---
>  meta-yocto/conf/distro/poky.conf  |    1 -
>  meta-yocto/conf/layer.conf        |    1 +
>  meta-yocto/conf/local.conf.sample |    4 ++--
>  3 files changed, 3 insertions(+), 3 deletions(-)

I'm afraid this is the wrong approach. The UI should simply not allow
selection of a DISTRO option which is no longer available.

Setting DISTRO in local.conf is the way people expect to use the system
and we can't change that.

Cheers,

Richard



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/1] meta-yocto: Define DISTRO in layer.conf
  2012-03-29 13:23   ` Richard Purdie
@ 2012-03-29 13:39     ` Carl Simonson
  0 siblings, 0 replies; 4+ messages in thread
From: Carl Simonson @ 2012-03-29 13:39 UTC (permalink / raw)
  To: poky

On Thu, Mar 29, 2012 at 8:23 AM, Richard Purdie
<richard.purdie@linuxfoundation.org> wrote:
> On Thu, 2012-03-29 at 20:01 +0800, Dongxiao Xu wrote:
>> Add the definition of DISTRO variable in meta-yocto/conf/layer.conf,
>> and remove the corresponding definition in local.conf.sample.
>>
>> As we know, if we source oe-init-build-env in Yocto project environment,
>> we will have DISTRO="poky" set in local.conf by default, where the
>> "poky" DISTRO comes from the meta-yocto layer. If user deletes
>> meta-yocto layer from BBLAYERS in bblayers.conf, and then error will
>> happen when bitbake parsing the local.conf, since it could not find
>> where the "poky" DISTRO comes from.
>>
>> Putting the DISTRO definition in layer.conf to avoid defining two
>> related variables (DISTRO and BBLAYERS) in two separate
>> configuration files (local.conf and bblayers.conf).
>>
>> Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
>> ---
>>  meta-yocto/conf/distro/poky.conf  |    1 -
>>  meta-yocto/conf/layer.conf        |    1 +
>>  meta-yocto/conf/local.conf.sample |    4 ++--
>>  3 files changed, 3 insertions(+), 3 deletions(-)
>
> I'm afraid this is the wrong approach. The UI should simply not allow
> selection of a DISTRO option which is no longer available.
>
> Setting DISTRO in local.conf is the way people expect to use the system
> and we can't change that.
>
> Cheers,
>
> Richard
>
> _______________________________________________
> poky mailing list
> poky@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/poky

Agreed. It's important that DISTRO remains in local.conf. Remember,
also, that local.conf.sample is only a suggestion as to how to
configure your build. The real configuration is in
build/conf/local.conf, and that is meant to be changed freely.

Carl Simonson
simonsonc@gmail.com


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-03-29 13:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-29 12:01 [PATCH 0/1][PULL] layer.conf: Define DISTRO in layer.conf Dongxiao Xu
2012-03-29 12:01 ` [PATCH 1/1] meta-yocto: " Dongxiao Xu
2012-03-29 13:23   ` Richard Purdie
2012-03-29 13:39     ` Carl Simonson

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.