[oe-commits] [openembedded-core] 02/74: archiver: Fix archive for linked kernel source

git at git.openembedded.org git at git.openembedded.org
Wed Apr 4 15:37:53 UTC 2018


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit e54c42cc1620070f3b16537ea74406b9c928ea4a
Author: Tom Hochstein <tom.hochstein at nxp.com>
AuthorDate: Tue Apr 3 08:51:15 2018 -0500

    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.
    
    Signed-off-by: Tom Hochstein <tom.hochstein at nxp.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/classes/archiver.bbclass | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/meta/classes/archiver.bbclass b/meta/classes/archiver.bbclass
index c107615..31c9b7e 100644
--- a/meta/classes/archiver.bbclass
+++ b/meta/classes/archiver.bbclass
@@ -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)

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list