Skip to content
Commit 76ca96eb authored by Staffan Rydén's avatar Staffan Rydén Committed by Steve Sakoman
Browse files

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: default avatarStaffan Rydén <staffan.ryden@axis.com>
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
(cherry picked from commit afd2038e)
Signed-off-by: default avatarSteve Sakoman <steve@sakoman.com>
parent c8fbba7c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment