Skip to contentSkip to conversation

archiver.bbclass: fix do_ar_configured failure for kernel

PATCH New Changqing Li 1 participant 1 message Jul 28, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 archiver.bbclass: fix do_ar_configured failure for kernel

From: Changqing Li <[email protected]>

---
 meta/classes/archiver.bbclass | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
meta/classes/archiver.bbclass +4 -1
index 900268971c..dd31dc0cd8 100644
@@ -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():
Signature · 1 line
2.17.1