[oe] Binary packages (was: Task-base is big :( )
dv at vollmann.ch
Wed Sep 12 14:02:31 CEST 2007
This thread touches two very interesting, but not directly
related issues, so I decided to split here.
Graeme Gregory wrote:
> I personally think this discussion is a clear example of why Koen's
> work on packaged staging needs to be finished.
> Just think how much faster you could build if all the system did was
> download and install these dependencies rather than build them
> from scratch.
For our current project, we have a build system based on
Gentoo's portage, and we're currently planning to switch to
We want to be able to build everything ourselves from scratch,
and we do that. But we don't want to do that each time we
build an (internal) release (we do sometimes several releases
a week and a full build including toolchain takes about
So in our current build system, we just use portage's --usepkg,
and if the package we want to build is already built and in
our repository, we just unpack that (unfortunately this doesn't
always work as expected, but that's a different story).
For OpenEmbedded, I looked at options how I could do something
similar, and I came up with some ideas.
First, we need to care for everything a recipe does.
For the staging part I hoped that packaged staging solves the
problem (and from the discussion in
I thought it might already work, but I didn't test it yet).
But there are other things (like ipkg-make-index) and I don't
know what to do about those. Possibly just not allowing
binary packages for such recipes.
Then we have the problem that most recipes build more than one ipk,
so we have to put all of them into one combined file, probably
an ipk package that just contains other ipk packages.
So I thought about two possible solutions to get binary packages:
one - to add an option like '--usepkg' to bitbake and let bitbake
take care of everything.
two - putting the required actions into the recipes themselves
(possibly by using some bbclasses).
seems to implement this approach at least partly, but
I don't understand that fully yet and I still have to
test it to get a better feeling for it.
Detlef Vollmann vollmann engineering gmbh
Linux and C++ for Embedded Systems http://www.vollmann.ch/
More information about the Openembedded-devel