Some layer "internal" recipes (e.g. https://git.openembedded.org/openembedded-core/tree/meta/recipes-core/initscripts/initscripts_1.0.bb?h=kirkstone) only add source code from within the layer repository. In these cases they set S = ${WORKDIR}. This causes do_osselot_create_s_checksums to create checksums for all of the WORKDIR, including the checksums output itself. This can also cause race conditions, when folders are deleted during the do_osselot_create_s_checksums process.
To fix this, do_osselot_create_s_checksums should only consider top level files as source files if S is set to ${WORKDIR}
Some layer "internal" recipes (e.g. https://git.openembedded.org/openembedded-core/tree/meta/recipes-core/initscripts/initscripts_1.0.bb?h=kirkstone) only add source code from within the layer repository. In these cases they set
S = ${WORKDIR}
. This causesdo_osselot_create_s_checksums
to create checksums for all of the WORKDIR, including the checksums output itself. This can also cause race conditions, when folders are deleted during the do_osselot_create_s_checksums process.To fix this, do_osselot_create_s_checksums should only consider top level files as source files if
S
is set to${WORKDIR}