[poky] Recompiles of "externalsrc" package in Yocto/Poky: root cause?
Kaz Kylheku (poky)
442-103-8455 at kylheku.com
Thu Feb 22 12:12:27 PST 2018
Hi All,
This is in reference to this 2016 thread, regarding the behavior of the
externalsrc .bbclass:
https://lists.yoctoproject.org/pipermail/poky/2016-June/010572.html
I have run into the problem (using Yocto 2.2).
There definitely are not any files in the source tree being regenerated
by the build. How I know that is that the build is done in a separate
build directory, where those files are placed. (The package in question
is the kernel; it does things like increment the .version file.)
Here is a possible root cause:
I have noticed that during the build of the package, BitBake creates a
file called "singletask.lock" right in the source tree. This may be what
is picked up into the build.
The "externalsrc" class performs a "git add ." to create a temporary git
index which contains all local changes which is then hashed (clever
trick). However, it seems to be picking up that lock file!
When I add "singletask.lock" to the repo's .gitignore file, the build
stabilizes. If I then bitbake the tree, the kernel rebuilds one more
time (understandably, due to the change in .gitignore) but then
subsequent bitbakes no longer exhibit the rebuilding.
Cheers ...
More information about the poky
mailing list