[oe] oe for two target boards at the same time

Cliff Brake cliff.brake at gmail.com
Mon Oct 8 20:20:14 UTC 2007


On 10/5/07, Cliff Brake <cliff.brake at gmail.com> wrote:
> On 10/5/07, Alex <mailinglist at miromico.ch> wrote:
> > Hi all
> >
> > How do I setup my directory structure to use oe for two target boards.
> >
> > I have an AVR32 board and an AT91 board and would like to use oe for
> > both of them with at less dublicated software as possible.

> I'd be interested in hearing how others set up their build directory.

After studying Marcin's build setup, and Koen's autobuilder script,
I've come up with the following which is very similiar to Marcin's
setup.  My needs are:

- track several machines and distros, and possibly in the future
different OE trees, etc
- easily to automatically produce time-stamped snapshot builds (not done yet)
- easy for me to replicate on other machines
- easy for customers to replicate on other machines

With the multimachine, you typically need one build directory per
distro, so the following is what I ended up with:

|-- Makefile
`-- oe
|    `-- custom (bbcollections overlay)
|    `-- org.openembedded.dev
`-- bitbake
`-- downloads
`-- build
    |-- angstrom-2007.1
    |   `-- conf
    |       |-- local.conf
    |       |-- auto.conf
    |       `-- site.conf -> ../../conf/site.conf
    |-- angstrom-2008.1
    |   `-- conf
    |       |-- local.conf
    |       |-- auto.conf
    |       `-- site.conf -> ../../conf/site.conf
    |-- conf
    |   `-- site.conf
    `-- openmoko
        `-- conf
            |-- local.conf
            |-- auto.conf
            `-- site.conf -> ../../conf/site.conf


There is a common site.conf file that contains settings for my build
machine.  local.conf contains the DISTRO variable, and thats about it.
 auto.conf contains MACHINE and uclibc settings and is changed between
builds.

The downside of multimachine is you need to reparse the OE directory
every time you change machine, but the benefit of sharing tmp
directories for a bunch of machines in a distro more than makes up for
that.

Cliff

-- 
=======================
Cliff Brake
http://bec-systems.com




More information about the Openembedded-devel mailing list