diff options
| author | Benjamin Szőke <egyszeregy@freemail.hu> | 2024-06-14 09:37:29 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-06-18 08:44:41 +0100 |
| commit | dbe070b602bf2f04943f02054abf60946b84be94 (patch) | |
| tree | bd81e4021f68c17f2785cfe36620ad46456d7867 /meta/classes | |
| parent | 702c29ba0cefb1febf50830157ae25e046621f11 (diff) | |
| download | poky-dbe070b602bf2f04943f02054abf60946b84be94.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: 9191aa685418af32f003e067ef7c5737a271e3a5)
Signed-off-by: Benjamin Szőke <egyszeregy@freemail.hu>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
| -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() { |
