* [PATCH 0/2] A couple yocto-bsp fixes, v2
@ 2012-04-28 0:25 tom.zanussi
2012-04-28 0:25 ` [PATCH 1/2] yocto-kernel: use BUILDDIR to find bblayers.conf tom.zanussi
2012-04-28 0:25 ` [PATCH 2/2] yocto-bsp: clarify help with reference to meta-intel tom.zanussi
0 siblings, 2 replies; 6+ messages in thread
From: tom.zanussi @ 2012-04-28 0:25 UTC (permalink / raw)
To: yocto, dvhart
From: Tom Zanussi <tom.zanussi@intel.com>
Fixes for a couple yocto-bsp bugs.
v2: fixed up the yocto-bsp help text as suggested by Darren Hart.
The following changes since commit c47a869308cb0cccde0b1aee9a001352c99a8395:
Richard Purdie (1):
netbase: Correctly set FILESEXTRAPATHS to include the version
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/cgit.cgi/poky-contrib/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 | 46 ++++++++++++++++++++++++++++++++++++++++++--
scripts/lib/bsp/kernel.py | 7 +++++-
2 files changed, 49 insertions(+), 4 deletions(-)
^ permalink raw reply [flat|nested] 6+ messages in thread* [PATCH 1/2] yocto-kernel: use BUILDDIR to find bblayers.conf 2012-04-28 0:25 [PATCH 0/2] A couple yocto-bsp fixes, v2 tom.zanussi @ 2012-04-28 0:25 ` tom.zanussi 2012-04-28 5:42 ` Darren Hart 2012-04-28 0:25 ` [PATCH 2/2] yocto-bsp: clarify help with reference to meta-intel tom.zanussi 1 sibling, 1 reply; 6+ messages in thread From: tom.zanussi @ 2012-04-28 0:25 UTC (permalink / raw) To: yocto, dvhart 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] 6+ messages in thread
* Re: [PATCH 1/2] yocto-kernel: use BUILDDIR to find bblayers.conf 2012-04-28 0:25 ` [PATCH 1/2] yocto-kernel: use BUILDDIR to find bblayers.conf tom.zanussi @ 2012-04-28 5:42 ` Darren Hart 0 siblings, 0 replies; 6+ messages in thread From: Darren Hart @ 2012-04-28 5:42 UTC (permalink / raw) To: tom.zanussi; +Cc: yocto On 04/27/2012 05:25 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> Acked-by: Darren Hart <dvhart@linux.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 = [] > -- Darren Hart Intel Open Source Technology Center Yocto Project - Linux Kernel ^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 2/2] yocto-bsp: clarify help with reference to meta-intel 2012-04-28 0:25 [PATCH 0/2] A couple yocto-bsp fixes, v2 tom.zanussi 2012-04-28 0:25 ` [PATCH 1/2] yocto-kernel: use BUILDDIR to find bblayers.conf tom.zanussi @ 2012-04-28 0:25 ` tom.zanussi 2012-04-28 5:44 ` Darren Hart 1 sibling, 1 reply; 6+ messages in thread From: tom.zanussi @ 2012-04-28 0:25 UTC (permalink / raw) To: yocto, dvhart 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 | 46 +++++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 43 insertions(+), 3 deletions(-) diff --git a/scripts/lib/bsp/help.py b/scripts/lib/bsp/help.py index f78b09b..2355657 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. 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. - 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 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. Ensure the meta-intel + layer is present and added to bblayers.conf. + + For example, assuming your poky repo is at /path/to/poky, 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] 6+ messages in thread
* Re: [PATCH 2/2] yocto-bsp: clarify help with reference to meta-intel 2012-04-28 0:25 ` [PATCH 2/2] yocto-bsp: clarify help with reference to meta-intel tom.zanussi @ 2012-04-28 5:44 ` Darren Hart 2012-04-28 5:51 ` Tom Zanussi 0 siblings, 1 reply; 6+ messages in thread From: Darren Hart @ 2012-04-28 5:44 UTC (permalink / raw) To: tom.zanussi; +Cc: yocto On 04/27/2012 05:25 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> > --- > scripts/lib/bsp/help.py | 46 +++++++++++++++++++++++++++++++++++++++++++--- > 1 files changed, 43 insertions(+), 3 deletions(-) > > diff --git a/scripts/lib/bsp/help.py b/scripts/lib/bsp/help.py > index f78b09b..2355657 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 Gah, I didn't catch this the first time. Typo in "subsequently" above. Maybe just fix in the branch? No need to resend. > + 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. 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 Here too. Otherwise looks good, Acked-by: Darren Hart <dvhart@linux.intel.com> > modified by the yocto-kernel tool. > > - 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 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. Ensure the meta-intel > + layer is present and added to bblayers.conf. > + > + For example, assuming your poky repo is at /path/to/poky, 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 = """ -- Darren Hart Intel Open Source Technology Center Yocto Project - Linux Kernel ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 2/2] yocto-bsp: clarify help with reference to meta-intel 2012-04-28 5:44 ` Darren Hart @ 2012-04-28 5:51 ` Tom Zanussi 0 siblings, 0 replies; 6+ messages in thread From: Tom Zanussi @ 2012-04-28 5:51 UTC (permalink / raw) To: Darren Hart; +Cc: yocto On Fri, 2012-04-27 at 22:44 -0700, Darren Hart wrote: > > On 04/27/2012 05:25 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> > > --- > > scripts/lib/bsp/help.py | 46 +++++++++++++++++++++++++++++++++++++++++++--- > > 1 files changed, 43 insertions(+), 3 deletions(-) > > > > diff --git a/scripts/lib/bsp/help.py b/scripts/lib/bsp/help.py > > index f78b09b..2355657 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 > > Gah, I didn't catch this the first time. Typo in "subsequently" above. > Maybe just fix in the branch? No need to resend. > Good catch again, thanks. Updated in the branch... Tom > > + 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. 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 > > Here too. > > Otherwise looks good, > > Acked-by: Darren Hart <dvhart@linux.intel.com> > > > modified by the yocto-kernel tool. > > > > - 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 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. Ensure the meta-intel > > + layer is present and added to bblayers.conf. > > + > > + For example, assuming your poky repo is at /path/to/poky, 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 = """ > ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2012-04-28 5:51 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2012-04-28 0:25 [PATCH 0/2] A couple yocto-bsp fixes, v2 tom.zanussi 2012-04-28 0:25 ` [PATCH 1/2] yocto-kernel: use BUILDDIR to find bblayers.conf tom.zanussi 2012-04-28 5:42 ` Darren Hart 2012-04-28 0:25 ` [PATCH 2/2] yocto-bsp: clarify help with reference to meta-intel tom.zanussi 2012-04-28 5:44 ` Darren Hart 2012-04-28 5:51 ` 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.