mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 12:29:55 +00:00
archiver: Fix archive for linked kernel source
When archiving a kernel, if S is ${WORKDIR}/git, then
${WORKDIR}/git is in fact a soft link into work-shared,
and the archive contains just the soft link. Fix by
archiving the real directory.
(From OE-Core rev: 564204dd6b73697ef4b6c17243067892876cc323)
Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
c2eec907cb
commit
a6567a4c21
@@ -277,6 +277,11 @@ def create_tarball(d, srcdir, suffix, ar_outdir):
|
||||
if (d.getVar('SRC_URI') == ""):
|
||||
return
|
||||
|
||||
# For the kernel archive, srcdir may just be a link to the
|
||||
# work-shared location. Use os.path.realpath to make sure
|
||||
# that we archive the actual directory and not just the link.
|
||||
srcdir = os.path.realpath(srcdir)
|
||||
|
||||
bb.utils.mkdirhier(ar_outdir)
|
||||
if suffix:
|
||||
filename = '%s-%s.tar.gz' % (d.getVar('PF'), suffix)
|
||||
|
||||
Reference in New Issue
Block a user