Skip to contentSkip to conversation

Building for multiple machines

DISCUSSION Elvis Dowson 3 participants 6 messages Oct 11, 2010

lore
Share & tools
lore
#0 lore raw

Hi,
What should I do build for multiple machines ?

I have an overo-oe repository, but I need to temporarily build u-boot for a different board.

In my auto.conf, the entry is MACHINE="overo"

u-boot board definitions for say beagleboard, have named the board "beagle"

So, would an appropriate command be

bitbake u-boot-omap3 MACHINE="beagle"

Elvis Dowson

#1 lore raw

2010/10/11 Elvis Dowson <[email protected]>:

Quoted 7 lines

Hi,
       What should I do build for multiple machines ?

I have an overo-oe repository, but I need to temporarily build u-boot for a different board.

In my auto.conf, the entry is MACHINE="overo"

Quoted 8 lines

u-boot board definitions for say beagleboard, have named the board "beagle"

So, would an appropriate command be

bitbake u-boot-omap3 MACHINE="beagle"

Elvis Dowson

I guess trying this would ahve been much faster than waiting for an answer here.

And OE does not have an auto.conf

Frans

#2 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 12 lines · Frans Meulenbroeks

2010/10/11 Elvis Dowson <[email protected]>:

Quoted 11 lines

Hi,
What should I do build for multiple machines ?

I have an overo-oe repository, but I need to temporarily build u-boot for a different board.

In my auto.conf, the entry is MACHINE="overo"

u-boot board definitions for say beagleboard, have named the board "beagle"

So, would an appropriate command be

Quoted 8 lines
Quoted 4 lines

bitbake u-boot-omap3 MACHINE="beagle"

Elvis Dowson

I guess trying this would ahve been much faster than waiting for an answer here.

And OE does not have an auto.conf

OE *does* have an auto.conf, pretty much since the start:

koen@dominion:/OE/org.openembedded.dev/conf$ git blame bitbake.conf |
grep auto.conf
00f6a165 (Chris Larson 2004-12-09 01:08:40 +0000 695) include conf/auto.conf
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFMssEUMkyGM64RGpERAqxMAJ9ORcv5iii/70qi6c7EC7ReXlKSQgCgm4UF qgXeKzlpaIRCTrylt4wM+hU=
=eNId
-----END PGP SIGNATURE-----

#3 lore raw

2010/10/11 Koen Kooi <[email protected]>:

Quoted 23 lines

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 19 lines · Frans Meulenbroeks

2010/10/11 Elvis Dowson <[email protected]>:

Quoted 7 lines

Hi,
       What should I do build for multiple machines ?

I have an overo-oe repository, but I need to temporarily build u-boot for a different board.

In my auto.conf, the entry is MACHINE="overo"

Quoted 8 lines

u-boot board definitions for say beagleboard, have named the board "beagle"

So, would an appropriate command be

bitbake u-boot-omap3 MACHINE="beagle"

Elvis Dowson

I guess trying this would ahve been much faster than waiting for an answer here.

Quoted 7 lines
Quoted 1 line

And OE does not have an auto.conf

OE *does* have an auto.conf, pretty much since the start:

koen@dominion:/OE/org.openembedded.dev/conf$ git blame bitbake.conf |
grep auto.conf
00f6a165 (Chris Larson 2004-12-09 01:08:40 +0000 695) include conf/auto.conf

Yeah, that line is there. What I wanted to say is that if you pull from git there is no auto.conf file

frans@frans-desktop:~/workspace/openembedded.git$ find | grep auto.conf
frans@frans-desktop:~/workspace/openembedded.git$

So I still feel we do not have an auto.conf (but the user can provide an auto.conf if (s)he wishes)

Frans

PS: I normally set MACHINE in either the environment (as a bash env var) or in local.conf

#4 lore raw
In reply to Koen Kooi
Quoted 6 lines · Koen Kooi
Quoted 4 lines

I guess trying this would ahve been much faster than waiting for an answer here.

And OE does not have an auto.conf

OE *does* have an auto.conf, pretty much since the start:

There was a reason why I didn't try it right away. A while back, i had a working overo-oe, and auto.conf was set to MACHINE="overo"

After that, I changed it to MACHINE="beagleboard".

It created two output folders in tmp/deply for both the targets, but the images didn't work properly, I had some issues. Can't recall exactly what it was. So, I had to delete my tmp folder, and repeat the build process afresh, this time, with only MACHINE='beagleboard".

I was wondering what the recommended process is for building for multiple machine architectures?

Elvis Dowson

#5 lore raw

2010/10/11 Elvis Dowson <[email protected]>:

Quoted 11 lines · Koen Kooi
Quoted 6 lines
Quoted 4 lines

I guess trying this would ahve been much faster than waiting for an answer here.

And OE does not have an auto.conf

OE *does* have an auto.conf, pretty much since the start:

There was a reason why I didn't try it right away. A while back, i had a working overo-oe, and auto.conf was set to MACHINE="overo"

Quoted 7 lines

After that, I changed it to MACHINE="beagleboard".

It created two output folders in tmp/deply for both the targets, but the images didn't work properly, I had some issues. Can't recall exactly what it was. So, I had to delete my tmp folder, and repeat the build process afresh, this time, with only MACHINE='beagleboard".

I was wondering what the recommended process is for building for multiple machine architectures?

Elvis Dowson

I've build multiple machines in one tmp but often they are for different architectures (e.g. hawkboard and beagleboard (whcih is armv5 and armv7a resp)
If you are going to mix distro's things might become more troublesome (and machine specific pinnings (with DEFAULT_PREFERENCE) might also cause mismatches).

Of course you can also change your TMPDIR (and set it e.g. to tmp_${DISTRO}_${MACHINE})
That way you'll get different tmp dirs (probably you want to inherit rm_work to keep the space usage manageable).

Have fun! Frans

Frans