[poky] Recompiles in Yocto/Poky

Peter Kjellerstedt peter.kjellerstedt at axis.com
Fri Jun 3 00:00:14 PDT 2016


This is a feature introduced to complement the main use of externalsrc, which is together with devtool. When you use "devtool modify -x <recipe>", it fetches the sources as specified in the recipe and makes them available locally. At the same time it sets up a bbappend in the workspace layer which uses externalsrc to use those sources when building the recipe. This is intended to make it easy to use BitBake to actually work on and develop the sources. However, for this to work in practice, BitBake must rebuild the package if there are any changes in the sources, but since BitBake normally only looks at the meta data to determine if a recipe task needs to run, there is nothing telling it that the sources have changed. Therefore changes were made so that code specified using externalsrc is always rebuilt.

//Peter

From: poky-bounces at yoctoproject.org [mailto:poky-bounces at yoctoproject.org] On Behalf Of Keskinarkaus, Teemu
Sent: den 2 juni 2016 06:28
To: poky at yoctoproject.org
Subject: [poky] Recompiles in Yocto/Poky

Hi,

I have Yocto based system for iMX6. First Yocto 1.7 was used and system implemented with that. Later Yocto (and meta-layers) were updated to 2.1.

We have several libraries/applications/modules that use externalsrc ie. sources sources are not fetched from git repository, but they are locally available.

I noticed with Yocto 2.1 that if I recreate image without changing anything, all those externalsrc recipes get recompiled/created. This didn't happened with Yocto 1.7. I checked the recipes and they are the same.

Why are those recipes that use externalsrc - feature recompiled every time? In Yocto 1.7 if you try to re-create image without changing anything, nothing happen, but in Yocto 2.1 you do the same all those externalsrc recipes get recompiled and image file also recreated.

Teemu Keskinarkaus
Software system engineer
Cell: +358 400 330047
Fax: +358 207 669199
www.maximatecc.com<http://www.maximatecc.com/>
maximatecc
making machines smart, safe and productive


________________________________

Actuant Corporation Email Notice

This message is intended only for the use of the Addressee and may contain information that is PRIVILEGED and/or CONFIDENTIAL.
This email is intended only for the personal and confidential use of the recipient(s) named above. If the reader of this email is not an intended recipient, you have received this email in error and any review, dissemination, distribution or copying is strictly prohibited.
If you have received this email in error, please notify the sender immediately by return mail and permanently delete the copy you received.

Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/poky/attachments/20160603/7e37970d/attachment-0001.html>


More information about the poky mailing list