]> code.ossystems Code Review - openembedded-core.git/commitdiff
archiver.bbclass: fix do_ar_configured failure for kernel
authorChangqing Li <changqing.li@windriver.com>
Wed, 28 Jul 2021 01:21:22 +0000 (09:21 +0800)
committerSteve Sakoman <steve@sakoman.com>
Wed, 4 Aug 2021 19:57:23 +0000 (09:57 -1000)
Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit d7776a23cbea836ddb8ac5ec77012af2449ab875)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes/archiver.bbclass

index 49717d4f5745989bf3fa554e140caba736f01539..9ef18ebd3c8eac38d81fedf574870ac30f211bd9 100644 (file)
@@ -281,7 +281,10 @@ python do_ar_configured() {
         # ${STAGING_DATADIR}/aclocal/libtool.m4, so we can't re-run the
         # do_configure, we archive the already configured ${S} to
         # instead of.
-        elif pn != 'libtool-native':
+        # The kernel class functions require it to be on work-shared, we
+        # don't unpack, patch, configure again, just archive the already
+        # configured ${S}
+        elif not (pn == 'libtool-native' or is_work_shared(d)):
             def runTask(task):
                 prefuncs = d.getVarFlag(task, 'prefuncs') or ''
                 for func in prefuncs.split():