* [PATCH 0/2] A couple yocto-bsp fixes
@ 2012-04-18 21:26 tom.zanussi
2012-04-18 21:26 ` [PATCH 1/2] yocto-kernel: use BUILDDIR to find bblayers.conf tom.zanussi
2012-04-18 21:26 ` [PATCH 2/2] yocto-bsp: clarify help with reference to meta-intel tom.zanussi
0 siblings, 2 replies; 10+ messages in thread
From: tom.zanussi @ 2012-04-18 21:26 UTC (permalink / raw)
To: yocto
From: Tom Zanussi <tom.zanussi@intel.com>
Fixes for a couple yocto-bsp bugs.
The following changes since commit 1a03b7dfba464fde770ba69b618427d13e0a3b8b:
Scott Rifenbark (1):
documentation/bsp-guide/bsp.xml: spelling corrected.
are available in the git repository at:
git://git.yoctoproject.org/poky-contrib.git tzanussi/yocto-bsp-fixes-2219-2330
http://git.yoctoproject.org/cgit.cgi//log/?h=tzanussi/yocto-bsp-fixes-2219-2330
Tom Zanussi (2):
yocto-kernel: use BUILDDIR to find bblayers.conf
yocto-bsp: clarify help with reference to meta-intel
scripts/lib/bsp/help.py | 40 ++++++++++++++++++++++++++++++++++++++++
scripts/lib/bsp/kernel.py | 7 ++++++-
2 files changed, 46 insertions(+), 1 deletions(-)
^ permalink raw reply [flat|nested] 10+ messages in thread* [PATCH 1/2] yocto-kernel: use BUILDDIR to find bblayers.conf 2012-04-18 21:26 [PATCH 0/2] A couple yocto-bsp fixes tom.zanussi @ 2012-04-18 21:26 ` tom.zanussi 2012-04-27 23:56 ` Darren Hart 2012-04-18 21:26 ` [PATCH 2/2] yocto-bsp: clarify help with reference to meta-intel tom.zanussi 1 sibling, 1 reply; 10+ messages in thread From: tom.zanussi @ 2012-04-18 21:26 UTC (permalink / raw) To: yocto From: Tom Zanussi <tom.zanussi@intel.com> The current code assumes that builddir == srcdir/build, which it obviously isn't sometimes. Use BUILDDIR to get the actual builddir being used. Fixes [YOCTO #2219]. Signed-off-by: Tom Zanussi <tom.zanussi@intel.com> --- scripts/lib/bsp/kernel.py | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/scripts/lib/bsp/kernel.py b/scripts/lib/bsp/kernel.py index 360851b..8b3aa72 100644 --- a/scripts/lib/bsp/kernel.py +++ b/scripts/lib/bsp/kernel.py @@ -37,7 +37,12 @@ def find_bblayers(scripts_path): """ Find and return a sanitized list of the layers found in BBLAYERS. """ - bblayers_conf = os.path.join(scripts_path, "../build/conf/bblayers.conf") + try: + builddir = os.environ["BUILDDIR"] + except KeyError: + print "BUILDDIR not found, exiting. (Did you forget to source oe-init-build-env?)" + sys.exit(1) + bblayers_conf = os.path.join(builddir, "conf/bblayers.conf") layers = [] -- 1.7.0.4 ^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH 1/2] yocto-kernel: use BUILDDIR to find bblayers.conf 2012-04-18 21:26 ` [PATCH 1/2] yocto-kernel: use BUILDDIR to find bblayers.conf tom.zanussi @ 2012-04-27 23:56 ` Darren Hart 0 siblings, 0 replies; 10+ messages in thread From: Darren Hart @ 2012-04-27 23:56 UTC (permalink / raw) To: tom.zanussi; +Cc: yocto On 04/27/2012 12:00 PM, tom.zanussi@intel.com wrote: > From: Tom Zanussi <tom.zanussi@intel.com> > > The current code assumes that builddir == srcdir/build, which it > obviously isn't sometimes. Use BUILDDIR to get the actual builddir > being used. > > Fixes [YOCTO #2219]. > > Signed-off-by: Tom Zanussi <tom.zanussi@intel.com> > --- > scripts/lib/bsp/kernel.py | 7 ++++++- > 1 files changed, 6 insertions(+), 1 deletions(-) > > diff --git a/scripts/lib/bsp/kernel.py b/scripts/lib/bsp/kernel.py > index 360851b..8b3aa72 100644 > --- a/scripts/lib/bsp/kernel.py > +++ b/scripts/lib/bsp/kernel.py > @@ -37,7 +37,12 @@ def find_bblayers(scripts_path): > """ > Find and return a sanitized list of the layers found in BBLAYERS. > """ > - bblayers_conf = os.path.join(scripts_path, "../build/conf/bblayers.conf") > + try: > + builddir = os.environ["BUILDDIR"] > + except KeyError: > + print "BUILDDIR not found, exiting. (Did you forget to source oe-init-build-env?)" We should probably update the bsp tools to use the logging module, I'll open a feature request for that. https://bugzilla.yoctoproject.org/show_bug.cgi?id=2375 This should make it easier to instrument the code with verbosity levels as well as make these go to the right file descriptor. I believe this is consistent with the rest of the source though, so this looks fine as is. > + sys.exit(1) > + bblayers_conf = os.path.join(builddir, "conf/bblayers.conf") > > layers = [] > Acked-by: Darren Hart <dvhart@linux.intel.com> -- Darren Hart Intel Open Source Technology Center Yocto Project - Linux Kernel ^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 2/2] yocto-bsp: clarify help with reference to meta-intel 2012-04-18 21:26 [PATCH 0/2] A couple yocto-bsp fixes tom.zanussi 2012-04-18 21:26 ` [PATCH 1/2] yocto-kernel: use BUILDDIR to find bblayers.conf tom.zanussi @ 2012-04-18 21:26 ` tom.zanussi 2012-04-28 0:01 ` Darren Hart 1 sibling, 1 reply; 10+ messages in thread From: tom.zanussi @ 2012-04-18 21:26 UTC (permalink / raw) To: yocto From: Tom Zanussi <tom.zanussi@intel.com> The current yocto-bsp help assumes knowledge that the meta-intel layer needs to be cloned before it's put into the BBLAYERS. Avoid the guesswork and state the details explicitly in the help. Also, the shorter 'usage' string doesn't mention it at all; it would help to at minimum mention it and refer the user to the detailed help. Fixes [YOCTO #2330]. Signed-off-by: Tom Zanussi <tom.zanussi@intel.com> --- scripts/lib/bsp/help.py | 40 ++++++++++++++++++++++++++++++++++++++++ 1 files changed, 40 insertions(+), 0 deletions(-) diff --git a/scripts/lib/bsp/help.py b/scripts/lib/bsp/help.py index f78b09b..f849833 100644 --- a/scripts/lib/bsp/help.py +++ b/scripts/lib/bsp/help.py @@ -115,6 +115,18 @@ yocto_bsp_create_usage = """ 'properties' that will be used to fill out the BSP-specific portions of the BSP. The possible values for the 'karch' paramter can be listed via 'yocto-bsp list karch'. + + NOTE: Once created, you should add your new layer to your + bblayers.conf file in order for it to be subsquently seen and + modified by the yocto-kernel tool. + + See 'yocto bsp help create' for more detailed instructions. + + NOTE for x86- and x86_64-based BSPs: The generated BSP assumes the + presence of the of the meta-intel layer, so you should also have a + meta-intel layer present and added to your bblayers.conf as well. + + See 'yocto bsp help create' for more detailed instructions. """ yocto_bsp_create_help = """ @@ -159,9 +171,37 @@ DESCRIPTION bblayers.conf file in order for it to be subsquently seen and modified by the yocto-kernel tool. + For example, assuming your poky repo is at /path/to/poky, your + your new BSP layer is at /path/to/poky/meta-mybsp, and your build + directory is /path/to/build: + + $ gedit /path/to/build/conf/bblayers.conf + + BBLAYERS ?= " \\ + /path/to/poky/meta \\ + /path/to/poky/meta-yocto \\ + /path/to/poky/meta-mybsp \\ + " + NOTE for x86- and x86_64-based BSPs: The generated BSP assumes the presence of the of the meta-intel layer, so you should also have a meta-intel layer present and added to your bblayers.conf as well. + + For example, assuming your poky repo is at /path/to/poky, your + your new BSP layer is at /path/to/poky/meta-mybsp, and your build + directory is /path/to/build: + + $ cd /path/to/poky + $ git clone git://git.yoctoproject.org/meta-intel.git + + $ gedit /path/to/build/conf/bblayers.conf + + BBLAYERS ?= " \\ + /path/to/poky/meta \\ + /path/to/poky/meta-yocto \\ + /path/to/poky/meta-intel \\ + /path/to/poky/meta-mybsp \\ + " """ yocto_bsp_list_usage = """ -- 1.7.0.4 ^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH 2/2] yocto-bsp: clarify help with reference to meta-intel 2012-04-18 21:26 ` [PATCH 2/2] yocto-bsp: clarify help with reference to meta-intel tom.zanussi @ 2012-04-28 0:01 ` Darren Hart 2012-04-28 0:26 ` Tom Zanussi 2012-04-30 17:31 ` William Mills 0 siblings, 2 replies; 10+ messages in thread From: Darren Hart @ 2012-04-28 0:01 UTC (permalink / raw) To: tom.zanussi; +Cc: yocto On 04/27/2012 12:00 PM, tom.zanussi@intel.com wrote: > From: Tom Zanussi <tom.zanussi@intel.com> > > The current yocto-bsp help assumes knowledge that the meta-intel layer > needs to be cloned before it's put into the BBLAYERS. Avoid the > guesswork and state the details explicitly in the help. > > Also, the shorter 'usage' string doesn't mention it at all; it would > help to at minimum mention it and refer the user to the detailed help. > > Fixes [YOCTO #2330]. > > Signed-off-by: Tom Zanussi <tom.zanussi@intel.com> Some minor nits below: > --- > scripts/lib/bsp/help.py | 40 ++++++++++++++++++++++++++++++++++++++++ > 1 files changed, 40 insertions(+), 0 deletions(-) > > diff --git a/scripts/lib/bsp/help.py b/scripts/lib/bsp/help.py > index f78b09b..f849833 100644 > --- a/scripts/lib/bsp/help.py > +++ b/scripts/lib/bsp/help.py > @@ -115,6 +115,18 @@ yocto_bsp_create_usage = """ > 'properties' that will be used to fill out the BSP-specific portions > of the BSP. The possible values for the 'karch' paramter can be > listed via 'yocto-bsp list karch'. > + > + NOTE: Once created, you should add your new layer to your > + bblayers.conf file in order for it to be subsquently seen and > + modified by the yocto-kernel tool. > + > + See 'yocto bsp help create' for more detailed instructions. > + > + NOTE for x86- and x86_64-based BSPs: The generated BSP assumes the > + presence of the of the meta-intel layer, so you should also have a > + meta-intel layer present and added to your bblayers.conf as well. Consider: + NOTE: For x86- and x86_64-based BSPs, the generated BSP assumes the + presence of the of the meta-intel layer. Ensure the meta-intel layer + is present and added to bblayers.conf. > + > + See 'yocto bsp help create' for more detailed instructions. > """ > > yocto_bsp_create_help = """ > @@ -159,9 +171,37 @@ DESCRIPTION > bblayers.conf file in order for it to be subsquently seen and > modified by the yocto-kernel tool. > > + For example, assuming your poky repo is at /path/to/poky, your > + your new BSP layer is at /path/to/poky/meta-mybsp, and your build The word "your" appears twice in a row. > + directory is /path/to/build: > + > + $ gedit /path/to/build/conf/bblayers.conf > + > + BBLAYERS ?= " \\ > + /path/to/poky/meta \\ > + /path/to/poky/meta-yocto \\ > + /path/to/poky/meta-mybsp \\ > + " > + > NOTE for x86- and x86_64-based BSPs: The generated BSP assumes the > presence of the of the meta-intel layer, so you should also have a > meta-intel layer present and added to your bblayers.conf as well. OK, this is just context, but same comment as above. > + > + For example, assuming your poky repo is at /path/to/poky, your > + your new BSP layer is at /path/to/poky/meta-mybsp, and your build Same double "your" here as well. > + directory is /path/to/build: > + > + $ cd /path/to/poky > + $ git clone git://git.yoctoproject.org/meta-intel.git > + > + $ gedit /path/to/build/conf/bblayers.conf > + > + BBLAYERS ?= " \\ > + /path/to/poky/meta \\ > + /path/to/poky/meta-yocto \\ > + /path/to/poky/meta-intel \\ > + /path/to/poky/meta-mybsp \\ > + " > """ > > yocto_bsp_list_usage = """ -- Darren Hart Intel Open Source Technology Center Yocto Project - Linux Kernel ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 2/2] yocto-bsp: clarify help with reference to meta-intel 2012-04-28 0:01 ` Darren Hart @ 2012-04-28 0:26 ` Tom Zanussi 2012-04-30 17:31 ` William Mills 1 sibling, 0 replies; 10+ messages in thread From: Tom Zanussi @ 2012-04-28 0:26 UTC (permalink / raw) To: Darren Hart; +Cc: yocto On Fri, 2012-04-27 at 17:01 -0700, Darren Hart wrote: > > On 04/27/2012 12:00 PM, tom.zanussi@intel.com wrote: > > From: Tom Zanussi <tom.zanussi@intel.com> > > > > The current yocto-bsp help assumes knowledge that the meta-intel layer > > needs to be cloned before it's put into the BBLAYERS. Avoid the > > guesswork and state the details explicitly in the help. > > > > Also, the shorter 'usage' string doesn't mention it at all; it would > > help to at minimum mention it and refer the user to the detailed help. > > > > Fixes [YOCTO #2330]. > > > > Signed-off-by: Tom Zanussi <tom.zanussi@intel.com> > > Some minor nits below: Thanks for catching those, patches resubmitted... Tom > > > --- > > scripts/lib/bsp/help.py | 40 ++++++++++++++++++++++++++++++++++++++++ > > 1 files changed, 40 insertions(+), 0 deletions(-) > > > > diff --git a/scripts/lib/bsp/help.py b/scripts/lib/bsp/help.py > > index f78b09b..f849833 100644 > > --- a/scripts/lib/bsp/help.py > > +++ b/scripts/lib/bsp/help.py > > @@ -115,6 +115,18 @@ yocto_bsp_create_usage = """ > > 'properties' that will be used to fill out the BSP-specific portions > > of the BSP. The possible values for the 'karch' paramter can be > > listed via 'yocto-bsp list karch'. > > + > > + NOTE: Once created, you should add your new layer to your > > + bblayers.conf file in order for it to be subsquently seen and > > + modified by the yocto-kernel tool. > > + > > + See 'yocto bsp help create' for more detailed instructions. > > + > > + NOTE for x86- and x86_64-based BSPs: The generated BSP assumes the > > + presence of the of the meta-intel layer, so you should also have a > > + meta-intel layer present and added to your bblayers.conf as well. > > Consider: > > + NOTE: For x86- and x86_64-based BSPs, the generated BSP assumes the > + presence of the of the meta-intel layer. Ensure the meta-intel layer > + is present and added to bblayers.conf. > > > > + > > + See 'yocto bsp help create' for more detailed instructions. > > """ > > > > yocto_bsp_create_help = """ > > @@ -159,9 +171,37 @@ DESCRIPTION > > bblayers.conf file in order for it to be subsquently seen and > > modified by the yocto-kernel tool. > > > > + For example, assuming your poky repo is at /path/to/poky, your > > + your new BSP layer is at /path/to/poky/meta-mybsp, and your build > > > The word "your" appears twice in a row. > > > > + directory is /path/to/build: > > + > > + $ gedit /path/to/build/conf/bblayers.conf > > + > > + BBLAYERS ?= " \\ > > + /path/to/poky/meta \\ > > + /path/to/poky/meta-yocto \\ > > + /path/to/poky/meta-mybsp \\ > > + " > > + > > NOTE for x86- and x86_64-based BSPs: The generated BSP assumes the > > presence of the of the meta-intel layer, so you should also have a > > meta-intel layer present and added to your bblayers.conf as well. > > OK, this is just context, but same comment as above. > > > + > > + For example, assuming your poky repo is at /path/to/poky, your > > + your new BSP layer is at /path/to/poky/meta-mybsp, and your build > > Same double "your" here as well. > > > + directory is /path/to/build: > > + > > + $ cd /path/to/poky > > + $ git clone git://git.yoctoproject.org/meta-intel.git > > + > > + $ gedit /path/to/build/conf/bblayers.conf > > + > > + BBLAYERS ?= " \\ > > + /path/to/poky/meta \\ > > + /path/to/poky/meta-yocto \\ > > + /path/to/poky/meta-intel \\ > > + /path/to/poky/meta-mybsp \\ > > + " > > """ > > > > yocto_bsp_list_usage = """ > ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 2/2] yocto-bsp: clarify help with reference to meta-intel 2012-04-28 0:01 ` Darren Hart 2012-04-28 0:26 ` Tom Zanussi @ 2012-04-30 17:31 ` William Mills 2012-04-30 17:36 ` Darren Hart 2012-04-30 19:13 ` Tom Zanussi 1 sibling, 2 replies; 10+ messages in thread From: William Mills @ 2012-04-30 17:31 UTC (permalink / raw) To: Darren Hart; +Cc: yocto nit of nit On 04/27/2012 08:01 PM, Darren Hart wrote: > On 04/27/2012 12:00 PM, tom.zanussi@intel.com wrote: >> From: Tom Zanussi<tom.zanussi@intel.com> >> >> + NOTE for x86- and x86_64-based BSPs: The generated BSP assumes the >> + presence of the of the meta-intel layer, so you should also have a >> + meta-intel layer present and added to your bblayers.conf as well. > Consider: > > + NOTE: For x86- and x86_64-based BSPs, the generated BSP assumes the > + presence of the of the meta-intel layer. Ensure the meta-intel layer > + is present and added to bblayers.conf. > Unless I am really mis-reading this I think "presence of the of the" should just be "presence of the" ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 2/2] yocto-bsp: clarify help with reference to meta-intel 2012-04-30 17:31 ` William Mills @ 2012-04-30 17:36 ` Darren Hart 2012-04-30 18:33 ` Autif Khan 2012-04-30 19:13 ` Tom Zanussi 1 sibling, 1 reply; 10+ messages in thread From: Darren Hart @ 2012-04-30 17:36 UTC (permalink / raw) To: William Mills; +Cc: yocto On 04/30/2012 10:31 AM, William Mills wrote: > nit of nit > > On 04/27/2012 08:01 PM, Darren Hart wrote: >> On 04/27/2012 12:00 PM, tom.zanussi@intel.com wrote: >>> From: Tom Zanussi<tom.zanussi@intel.com> >>> >>> + NOTE for x86- and x86_64-based BSPs: The generated BSP assumes the >>> + presence of the of the meta-intel layer, so you should also have a >>> + meta-intel layer present and added to your bblayers.conf as well. >> Consider: >> >> + NOTE: For x86- and x86_64-based BSPs, the generated BSP assumes the >> + presence of the of the meta-intel layer. Ensure the meta-intel layer >> + is present and added to bblayers.conf. >> > > Unless I am really mis-reading this I think "presence of the of the" > should just be "presence of the" Oh wow. :-) -- Darren Hart Intel Open Source Technology Center Yocto Project - Linux Kernel ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 2/2] yocto-bsp: clarify help with reference to meta-intel 2012-04-30 17:36 ` Darren Hart @ 2012-04-30 18:33 ` Autif Khan 0 siblings, 0 replies; 10+ messages in thread From: Autif Khan @ 2012-04-30 18:33 UTC (permalink / raw) To: Darren Hart; +Cc: yocto [-- Attachment #1: Type: text/plain, Size: 387 bytes --] >>> + NOTE: For x86- and x86_64-based BSPs, the generated BSP assumes the >>> + presence of the of the meta-intel layer. Ensure the meta-intel layer >>> + is present and added to bblayers.conf. >>> >> >> Unless I am really mis-reading this I think "presence of the of the" >> should just be "presence of the" > > Oh wow. :-) > There is an illusion like this (attached jpeg) [-- Attachment #2: illusion.jpg --] [-- Type: image/jpeg, Size: 19297 bytes --] ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 2/2] yocto-bsp: clarify help with reference to meta-intel 2012-04-30 17:31 ` William Mills 2012-04-30 17:36 ` Darren Hart @ 2012-04-30 19:13 ` Tom Zanussi 1 sibling, 0 replies; 10+ messages in thread From: Tom Zanussi @ 2012-04-30 19:13 UTC (permalink / raw) To: William Mills; +Cc: yocto, Darren Hart On Mon, 2012-04-30 at 13:31 -0400, William Mills wrote: > nit of nit > > On 04/27/2012 08:01 PM, Darren Hart wrote: > > On 04/27/2012 12:00 PM, tom.zanussi@intel.com wrote: > >> From: Tom Zanussi<tom.zanussi@intel.com> > >> > >> + NOTE for x86- and x86_64-based BSPs: The generated BSP assumes the > >> + presence of the of the meta-intel layer, so you should also have a > >> + meta-intel layer present and added to your bblayers.conf as well. > > Consider: > > > > + NOTE: For x86- and x86_64-based BSPs, the generated BSP assumes the > > + presence of the of the meta-intel layer. Ensure the meta-intel layer > > + is present and added to bblayers.conf. > > > > Unless I am really mis-reading this I think "presence of the of the" > should just be "presence of the" Doh, you're correct, good catch. Third version of the most perused help text in history submitted... Thanks, Tom ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2012-04-30 19:13 UTC | newest] Thread overview: 10+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2012-04-18 21:26 [PATCH 0/2] A couple yocto-bsp fixes tom.zanussi 2012-04-18 21:26 ` [PATCH 1/2] yocto-kernel: use BUILDDIR to find bblayers.conf tom.zanussi 2012-04-27 23:56 ` Darren Hart 2012-04-18 21:26 ` [PATCH 2/2] yocto-bsp: clarify help with reference to meta-intel tom.zanussi 2012-04-28 0:01 ` Darren Hart 2012-04-28 0:26 ` Tom Zanussi 2012-04-30 17:31 ` William Mills 2012-04-30 17:36 ` Darren Hart 2012-04-30 18:33 ` Autif Khan 2012-04-30 19:13 ` Tom Zanussi
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.