]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
kernel: Fix path comparison in kernel staging dir symlinking
authorStaffan Rydén <staffan.ryden@axis.com>
Thu, 20 Jul 2023 11:02:56 +0000 (13:02 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 21 Jul 2023 10:47:45 +0000 (11:47 +0100)
commitafd2038ef8a66a5e6433be31a14e1eb0d9f9a1d3
tree456c8d57cf80cacaa4bcff7af5036288cf6044e1
parent0e2bc425a6094a5816c9f4e73993baf27c9a51f5
kernel: Fix path comparison in kernel staging dir symlinking

Due to an oversight in the do_symlink_kernsrc function, the path
comparison between "S" and "STAGING_KERNEL_DIR" is broken. The code
obtains both variables, but modifies the local copy of "S" before
comparing them, causing the comparison to always return false.

This can cause the build to fail when the EXTERNALSRC flag is enabled,
since the code will try to create a symlink even if one already exists.

This patch resolves the issue by comparing the variables before they are
modified.

Signed-off-by: Staffan Rydén <staffan.ryden@axis.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
meta/classes-recipe/kernel.bbclass