All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Robert P. J. Day" <rpjday@crashcourse.ca>
To: Yocto discussion list <yocto@yoctoproject.org>
Subject: observations on bitbake user manual, chapter 2
Date: Tue, 10 Mar 2015 16:01:13 -0400 (EDT)	[thread overview]
Message-ID: <alpine.LFD.2.11.1503101253390.14541@localhost> (raw)


  more random thoughts ...

intro:

 in the note: "Prior to executing BitBake, you should take advantage
of available parallel thread execution on your build host by setting
the BB_NUMBER_THREADS variable in your project's local.conf
configuration file. "

  as in chapter 1, i think there will be some confusion since the
bitbake manual seems to jump between what you will see WRT bitbake in
a *direct* checkout, and what you will more likely see if you've
checked out poky.  as you well know, in the poky checkout,
bitbake.conf is considerably enhanced and already contains:

  # Default to setting automatically based on cpu count
  BB_NUMBER_THREADS ?= "${@oe.utils.cpu_count()}"

  # Default to setting automatically based on cpu count
  PARALLEL_MAKE ?= "-j ${@oe.utils.cpu_count()}"

and while i understand that the bitbake manual is meant to be build
system agnostic, i think trying too hard to do that is going to make
part of it unnecessarily confusing.

  oh, and that note mentions BB_NUMBER_THREADS while saying nothing
about PARALLEL_MAKE, which seems odd.

2.3 Providers

  while this section describes how a recipe can *extend* the things it
provides with "+=", it might be worth mentioning how it can simply
override what it provides with

  PROVIDES = "..."

  this is fairly common with libraries, as in:

meta/recipes-graphics/xorg-lib/libxext_git.bb:PROVIDES = "xext"
meta/recipes-graphics/xorg-lib/libxxf86misc_1.0.3.bb:PROVIDES = "xxf86misc"
meta/recipes-graphics/xorg-lib/libx11.inc:PROVIDES = "virtual/libx11"
meta/recipes-graphics/xorg-lib/libxmu_1.1.2.bb:PROVIDES = "xmu"
meta/recipes-graphics/xorg-lib/libxext_1.3.3.bb:PROVIDES = "xext"
meta/recipes-graphics/xorg-lib/libxdamage_1.1.4.bb:PROVIDES = "xdamage"
meta/recipes-graphics/xorg-lib/libxdmcp_1.1.1.bb:PROVIDES = "xdmcp"

2.4 Preferences

  if i remember this correctly, there is nothing special about a
preferred provider containing a slash, such as "virtual/kernel", is
there? that might be worth mentioning here.

  also, in note, busybox is now up to 1.23.1, not 1.22.1.

2.7 Executing Tasks

  with text like "${T}/log.do_taskname.pid", the "taskname" part
should be tagged with something like <replaceable> to show that it is
not verbatim.

  that's it for chapter 2 ...

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================


                 reply	other threads:[~2015-03-10 20:01 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.LFD.2.11.1503101253390.14541@localhost \
    --to=rpjday@crashcourse.ca \
    --cc=yocto@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.