archiver.bbclass: Fix work-shared checking for kernel recipes

Source dir can be a symbolic link in some BSP's linux kernel recipe
which points to work-shared path (like linux-fslc in meta-freescale).
Change to use os.path.realpath() in order to get real path of
source dir.

(From OE-Core rev: 340dc094df5eda4a3834a90578b331d9edcffa94)

Signed-off-by: Benjamin Szőke <egyszeregy@freemail.hu>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 9191aa685418af32f003e067ef7c5737a271e3a5)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
This commit is contained in:
Benjamin Szőke
2024-06-14 09:37:29 +02:00
committed by Steve Sakoman
parent 50cd98ac5e
commit 1935e4e8df

View File

@@ -473,7 +473,8 @@ def create_diff_gz(d, src_orig, src, ar_outdir):
def is_work_shared(d):
sharedworkdir = os.path.join(d.getVar('TMPDIR'), 'work-shared')
return d.getVar('S').startswith(sharedworkdir)
sourcedir = os.path.realpath(d.getVar('S'))
return sourcedir.startswith(sharedworkdir)
# Run do_unpack and do_patch
python do_unpack_and_patch() {