[oe] Why not use config.guess in conf/bitbake.conf ?

Holger Freyther zecke at selfish.org
Tue Nov 6 16:06:48 UTC 2007


Am 06.11.2007 um 12:19 schrieb Esben Haabendal:

>
> What is the reason that conf/bitbake.conf is relying directly on  
> the 'uname' output for generating the BUILD_SYS string?
>
> I am trying to get OE building on Cygwin, and on my machine  
> bitbake.conf generates a BUILD_SYS that is not supported by  
> config.sub, which breaks a autotools packages.
>
> $ uname -a
> CYGWIN_NT-5.1 PC_K_EHA 1.5.24(0.156/4/2) 2007-01-31 10:57 i686 Cygwin
>
> As bitbake.conf takes the first field as BUILD_OS, and the 5th  
> field as BUILD_ARCH and then set BUILD_SYS to ${BUILD_ARCH}-$ 
> {BUILD_OS} I end up with
> i686-cygwin_nt-5.1
> which breaks config.sub due to the '-' in the os string.
>
> Using a current config.guess on this system, I get
> i686-pc-cygwin
> which is fine.
> On my laptop (running gutsy) it would give me a BUILD_SYS
> i686-pc-linux-gnu

A sane OS does return something sane on uname. But e.g. check  build/ 
Power\ Macintosh-darwin.conf on what can be done for none sane  
operating systems... So create your file for cygwin and send a patch ;)

z.

  




More information about the Openembedded-devel mailing list