mirror of
https://git.yoctoproject.org/poky
synced 2026-02-20 08:29:42 +01:00
gcc: Fix gcc-multilib-config comparison
Fix an issue on a multilib configuration that contains more then 1 multilib. I.e. on MIPS64: DEFAULTTUNE = "mips64" MULTILIBS = "lib32n:mips64_n32 lib32:mips32" While normally you'd use 'libn32', the above is legal. With the startswith code, the system will look to expand the 'lib32' element and find the 'lib32n' instead, and will result in a warning: lib32 doesn't have a corresponding tune. Skipping... (From OE-Core rev: ced919f6013fc0dbb8b8f75f87a8c0a4f416b1fe) Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
bfb23e6038
commit
fb8e2a860e
@@ -152,7 +152,7 @@ python gcc_multilib_setup() {
|
||||
if mlprefix:
|
||||
mlindex = 0
|
||||
for ml in multilibs:
|
||||
if mlprefix.startswith(ml):
|
||||
if mlprefix == ml + '-':
|
||||
break
|
||||
mlindex += 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user