]> code.ossystems Code Review - openembedded-core.git/commitdiff
kernel.bbclass: ensure symlink_kernsrc task gets run even with externalsrc
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>
Fri, 25 Sep 2020 14:05:44 +0000 (16:05 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 28 Sep 2020 13:15:45 +0000 (14:15 +0100)
Commit c5dfc2586b41 (kernel.bbclass: run do_symlink_kernsrc before
do_patch) fixed a race between do_symlink_kernsrc and
do_populate_lic. However, I missed the fact that when
externalsrc.bbclass is in use, the do_patch task doesn't exist,
meaning that do_symlink_kernsrc now doesn't get run at all, breaking
the build.

We need this task to run regardless of whether do_patch exists or not,
so reinstate the configure->symlink_kernsrc dependency explicitly.

Fixes: c5dfc2586b41 (kernel.bbclass: run do_symlink_kernsrc before
do_patch)
Reported-by: Chanho Park <parkch98@gmail.com>
Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/kernel.bbclass

index 48135b3d419f6d7e87dfd4f2e0e909df1a5bc522..78def5bbc1a18012b179451a1897587ba4be3686 100644 (file)
@@ -172,7 +172,10 @@ python do_symlink_kernsrc () {
             shutil.move(s, kernsrc)
             os.symlink(kernsrc, s)
 }
-addtask symlink_kernsrc before do_patch after do_unpack
+# do_patch is normally ordered before do_configure, but
+# externalsrc.bbclass deletes do_patch, breaking the dependency of
+# do_configure on do_symlink_kernsrc.
+addtask symlink_kernsrc before do_patch do_configure after do_unpack
 
 inherit kernel-arch deploy