[bitbake-devel] bitbake functions

Fevralskikh, Sergey sfevral at mera.ru
Tue Dec 8 09:01:04 UTC 2015


Hello, all.

Two weeks ago my colleague wrote mail to you with the question (his mail below).
He is not working any more with us, but it will be great if you will try help us with the question that he asked.


Best regards
Sergey Fevralsky

From: Timofeev, Andrey
Sent: Thursday, November 26, 2015 3:45 PM
To: bitbake-devel at lists.openembedded.org
Cc: Fevralskikh, Sergey
Subject: bitbake functions

Hello, guys,

We are using bitbake for our project, but we have faced with an issue.

We have a large amount of files and modules and we have a problem with large amount of bb files and we would like to reduce it.

I try to explain our issue:

Imagine that you have more than 10 target load modules that include more than 100 code modules.
And this target load modules have the same code modules.

I try to show it in example:


1)      We have 2 .bb files (tests.bb and product.bb)

2)      They include the same dependencies:
DEPENDS += a
DEPENDS += b
DEPENDS += c

But for product we want that a,b,c use TEST flag for building when we are building tests.bb and TARGET when building product.bb

So, we want that a,b,c to be able to inherit FLAGS from target bitbake (produce or tests).
I mean we want that all bitbakes which are participants in building know what is main bitbake.

Now, we are using *.inc files to decide this issue but it requires many bitbake files.

If you do not understand what I mean, please send me letter. I will try to explain in details.

Thank you!

Best regards,
Andrey Timofeev



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/bitbake-devel/attachments/20151208/d8a85e46/attachment-0002.html>


More information about the bitbake-devel mailing list