Openembedded Bitbake Development
 help / color / mirror / Atom feed
From: Aleh Arol <aleh.arol@gmail.com>
To: bitbake-devel@lists.openembedded.org
Subject: configuration based builds with BB
Date: Sat, 10 Mar 2012 00:30:25 +0300	[thread overview]
Message-ID: <4F5A7671.4080604@gmail.com> (raw)

Hi,

I'm using BB outside of OE for building pythonogre and its deps from
source(around 15 recipes). I stripped OE's environment to the minimal
subset that works (another goal is to deeply understand OE's
infrastructure) - with no cross compilation and assuming toolchain is
always provided.

Now I'm trying to have builds driven by configuration concept (similar
to the project configuration in MS Visual Studio - e.g. debug, release,
devel, prof and so on). Configuration in my case is renders to just a
set of different compiler flags. so I have a global metadata called
CONFIGURATION which is "devel" by default. And that implies using for
example "-g -O2". After I have all built I'd like to rebuild release
packages and what I did that just made a .conf file per configuration:
cat release.conf -> CONFIGURATION = "release"
cat debug.conf -> CONFIGURATION = "debug"

And then folder's metadata as WORKDIR, STAGEDIR and STAMP are all
depends on currend selected conf - so in my staging dir I get
/release/
	/include
	/lib
	...
	/bin
/devel
	/include
	/lib
	...
	/bin
and so on.

And I run nondevel conf build like: bitbake ... -r ./conf/release.conf
However recipes is cached with bb when I build first time(and stamps of
the tasks of the same recipes are cached as I got from the source - so
the effect I want - change a portion of the stamp dir - is not working)
and I need to do explicit touch ./conf/release.conf to force rebuild
with release.conf influence on the metadata defined.

That a situation... questions:
1) Is there's a true BB way of having config driven builds(I know this
can be weird and maybe I don't understand something in OE environment -
so any explanations will be greatly appreciated)
2) What are setscene tasks - couldn't google anything descriptive. (also
not so much comments in the code)

Thanks in advance.

-- 
Best regards,
Aleh Arol




                 reply	other threads:[~2012-03-09 21:39 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=4F5A7671.4080604@gmail.com \
    --to=aleh.arol@gmail.com \
    --cc=bitbake-devel@lists.openembedded.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox