Skip to content

Commit

Permalink
archiver.bbclass: Fix work-shared checking for kernel recipes
Browse files Browse the repository at this point in the history
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: 952095943ce87eeb7e57402f0e1c3381df2f1e2c)

Signed-off-by: Benjamin Szőke <[email protected]>
Signed-off-by: Alexandre Belloni <[email protected]>
  • Loading branch information
Livius90 authored and kraj committed Jun 16, 2024
1 parent f95bb5b commit 0db9bf5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion meta/classes/archiver.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 0db9bf5

Please sign in to comment.