mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 01:19:52 +00:00
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.
(From OE-Core rev: 914d8a00e34a8edf75a349da6f5978e4ed60e6d5)
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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
f18af9dc89
commit
70f3451b26
@@ -152,7 +152,7 @@ python do_symlink_kernsrc () {
|
||||
shutil.move(s, kernsrc)
|
||||
os.symlink(kernsrc, s)
|
||||
}
|
||||
addtask symlink_kernsrc before do_configure after do_unpack
|
||||
addtask symlink_kernsrc before do_patch after do_unpack
|
||||
|
||||
inherit kernel-arch deploy
|
||||
|
||||
|
||||
Reference in New Issue
Block a user