diff options
author | Benjamin Szőke <egyszeregy@freemail.hu> | 2024-06-14 09:37:29 +0200 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2024-08-01 06:08:09 -0700 |
commit | 1935e4e8df5d5825a668202cf185628353cea930 (patch) | |
tree | 1f2e985e5054d3d5d95745676f869567b58311e7 | |
parent | 50cd98ac5ecb9e7cb05389378f9fbf9e3bf4fab8 (diff) | |
download | poky-1935e4e8df5d5825a668202cf185628353cea930.tar.gz |
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>
-rw-r--r-- | meta/classes/archiver.bbclass | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/archiver.bbclass b/meta/classes/archiver.bbclass index 2d0bbfbd42..9d286224d6 100644 --- a/meta/classes/archiver.bbclass +++ b/meta/classes/archiver.bbclass | |||
@@ -473,7 +473,8 @@ def create_diff_gz(d, src_orig, src, ar_outdir): | |||
473 | 473 | ||
474 | def is_work_shared(d): | 474 | def is_work_shared(d): |
475 | sharedworkdir = os.path.join(d.getVar('TMPDIR'), 'work-shared') | 475 | sharedworkdir = os.path.join(d.getVar('TMPDIR'), 'work-shared') |
476 | return d.getVar('S').startswith(sharedworkdir) | 476 | sourcedir = os.path.realpath(d.getVar('S')) |
477 | return sourcedir.startswith(sharedworkdir) | ||
477 | 478 | ||
478 | # Run do_unpack and do_patch | 479 | # Run do_unpack and do_patch |
479 | python do_unpack_and_patch() { | 480 | python do_unpack_and_patch() { |