]> code.ossystems Code Review - openembedded-core.git/commit
kernel.bbclass: run do_symlink_kernsrc before do_patch
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>
Tue, 25 Aug 2020 14:35:15 +0000 (16:35 +0200)
committerSteve Sakoman <steve@sakoman.com>
Tue, 1 Sep 2020 15:45:54 +0000 (05:45 -1000)
commit914d8a00e34a8edf75a349da6f5978e4ed60e6d5
tree1935aae2ad9397a7373a362d803bf5020fce1907
parentc5d9e41382e200aad51ba7869f5db931b7eaced5
kernel.bbclass: run do_symlink_kernsrc before do_patch

There's a race between do_symlink_kernsrc and do_populate_lic, since
the latter is ordered "after do_patch"; so the two may run in
parallel. In some cases, that actually causes do_populate_lic to fail
if it happens to look for a license file somewhere under ${S} in the
short window after shutil.move and before the symlink has been
created.

Fix that by simply ordering symlink_kernsrc before do_patch. Any task
that pokes around in ${S} looking for files should be ordered after
do_patch, so this should also fix similar latent races with other ad
hoc tasks.

Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit c5dfc2586b4135cc86e91bb04fed837daf505676)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes/kernel.bbclass