aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChangqing Li <changqing.li@windriver.com>2021-07-28 09:21:22 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-07-28 23:46:56 +0100
commitd7776a23cbea836ddb8ac5ec77012af2449ab875 (patch)
tree317d06dc7bd53697d67960200efa24ff055195fb
parente03fda4df5d2865d5ac516f45aa120e2caf7de47 (diff)
downloadopenembedded-core-contrib-d7776a23cbea836ddb8ac5ec77012af2449ab875.tar.gz
openembedded-core-contrib-d7776a23cbea836ddb8ac5ec77012af2449ab875.tar.bz2
openembedded-core-contrib-d7776a23cbea836ddb8ac5ec77012af2449ab875.zip
archiver.bbclass: fix do_ar_configured failure for kernel
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>
-rw-r--r--meta/classes/archiver.bbclass5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/classes/archiver.bbclass b/meta/classes/archiver.bbclass
index 900268971c7..dd31dc0cd8b 100644
--- a/meta/classes/archiver.bbclass
+++ b/meta/classes/archiver.bbclass
@@ -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():