[oe] multiple entries in PREMIRRORS

Richard Purdie rpurdie at rpsys.net
Tue Jul 29 15:20:30 UTC 2008


On Tue, 2008-07-29 at 11:11 -0400, Cliff Brake wrote:
> But, if I define a new class:
> 
> bec-mirrors.bbclass:
> 
> PREMIRRORS_append () {
> ftp://.*/.*/	http://dev.bec-systems.com/oesources/
> http://.*/.*/	http://dev.bec-systems.com/oesources/
> http://downloads.sleepycat.com/db-4.3.29.tar.gz
> http://dev.bec-systems.com/oesources/db-4.3.29.tar.gz
> }
> 
> and put the following in *.conf:
> INHERIT += "bec-mirrors"
> 
> it works fine.
> 
> What is the difference?  Why do multiple lines work fine in a
> PREMIRRORS_append, but not directly assigning a variable?  I started
> tracing through the code, but its bouncing back and forth between
> bbclass and bitbake code, so I'm asking first :-)

There are two different parsers, one for .conf files and one
for .bbclass and .bb files although they share code and are
interconnected. Some syntax isn't valid in .conf files and I suspect
this is one of those cases. Poky has its mirrors in a .bbclass as we hit
similar issues.

Cheers,

Richard





More information about the Openembedded-devel mailing list