From: "Jiping Ma" <jiping.ma2@windriver.com>
To: openembedded-core@lists.openembedded.org, yue.tao@windriver.com,
jiping.ma2@windriver.com
Subject: [oe][master][PATCH] packagegroup-cross-canadian: repackage when multilibs gcc gdb binutils changes
Date: Tue, 8 Dec 2020 09:44:40 +0800 [thread overview]
Message-ID: <20201208014440.789-1-jiping.ma2@windriver.com> (raw)
1. Build SDK without "MULTILIBS = """ in local.conf.
2. Build SDK again with "MULTILIBS = """ in local.conf, build will fail with the error info.
Error:
Problem: conflicting requests
- nothing provides binutils-cross-canadian-arm needed by packagegroup-cross-canadian-nxp-ls1028-1.0-r0.x86_64_nativesdk
- ......
Signed-off-by: Jiping Ma <jiping.ma2@windriver.com>
---
.../packagegroups/packagegroup-cross-canadian.bb | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
diff --git a/meta/recipes-core/packagegroups/packagegroup-cross-canadian.bb b/meta/recipes-core/packagegroups/packagegroup-cross-canadian.bb
index 3b430c0814..b6b3e5235f 100644
--- a/meta/recipes-core/packagegroups/packagegroup-cross-canadian.bb
+++ b/meta/recipes-core/packagegroups/packagegroup-cross-canadian.bb
@@ -17,8 +17,13 @@ RDEPENDS_${PN} = "\
meta-environment-${MACHINE} \
"
-# When TUNE_ARCH changes but MACHINE does not (for example when a machine definition is updated),
-# cross-canadian.bbclass prevents variable dependency propagation to TRANSLATED_TARGET_ARCH
-# This will result in erroneous reuse of previous sstate packages. The following line
-# establishes a direct dependency instead.
-do_package[vardeps] += "TUNE_ARCH"
+# When TUNE_ARCH, GCC, GDB, BINUTILS changes but MACHINE does not (for example when a machine
+# definition is updated), cross-canadian.bbclass prevents variable dependency propagation to
+# TRANSLATED_TARGET_ARCH This will result in erroneous reuse of previous sstate packages. The
+# following line establishes a direct dependency instead.
+do_package[vardeps] += "\
+ ${@all_multilib_tune_values(d, 'BINUTILS')} \
+ ${@all_multilib_tune_values(d, 'GDB')} \
+ ${@all_multilib_tune_values(d, 'GCC')} \
+ TUNE_ARCH \
+ "
--
2.23.0
next reply other threads:[~2020-12-08 1:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-08 1:44 Jiping Ma [this message]
-- strict thread matches above, loose matches on Subject: below --
2020-11-25 6:19 [oe][master][PATCH] packagegroup-cross-canadian: repackage when multilibs gcc gdb binutils changes Jiping Ma
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201208014440.789-1-jiping.ma2@windriver.com \
--to=jiping.ma2@windriver.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=yue.tao@windriver.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox