Fix compiler name for n32 SDK compiler
PATCH 1/1 Fix compiler name for n32 SDK compiler
See bug # 7143 for the details of this issue..
In short, when generating an SDK with the following configuration:
MACHINE = "qemumips64"
require conf/multilib.conf
MULTILIBS = "multilib:lib32 multilib:lib64" DEFAULTTUNE = "mips32r2" DEFAULTTUNE_virtclass-multilib-lib32 = "mips64-n32" DEFAULTTUNE_virtclass-multilib-lib64 = "mips64"
One of the multilib toolchains was missing, either the mips64 n32 or mips64. This was due to both cross compiler packages ending up with the same PN.
The change was verified with RP's patch:
cross-canadian/meta-environment: Allow modification of TARGET_OS to be optional
being applied as well.
Full configuration for the test was:
MACHINE = "qemumips64"
require conf/multilib.conf
MULTILIBS = "multilib:lib32 multilib:lib64" DEFAULTTUNE = "mips32r2" DEFAULTTUNE_virtclass-multilib-lib32 = "mips64-n32" DEFAULTTUNE_virtclass-multilib-lib64 = "mips64"
USE_LDCONFIG = '0'IMAGE_INSTALL_append = "lib32-libgcc lib32-libgcc-dev lib32-glibc lib32-glibc-dev lib64-libgcc lib64-libgcc-dev lib64-glibc lib64-glibc-dev"
(See the bug for additional test steps.)
Mark Hatle (1):
arch-mips.inc: Add the MIPS ABIEXTENSION to toolchain name
meta/conf/machine/include/mips/arch-mips.inc | 2 ++ 1 file changed, 2 insertions(+)
Signature · 1 line
1.9.3
PATCH 1/1 arch-mips.inc: Add the MIPS ABIEXTENSION to toolchain name
[YOCTO #7143]
When the system is configured for a multilib SDK, such as:
require conf/multilib.conf
MULTILIBS = "multilib:lib32 multilib:lib64" DEFAULTTUNE = "mips32r2" DEFAULTTUNE_virtclass-multilib-lib32 = "mips64-n32" DEFAULTTUNE_virtclass-multilib-lib64 = "mips64"
Only one of the mips64-n32 or mips64 toolchains is built. Causing the other to be unavailable. This is due to both recipes ending up with the same PN.
The toolchain uses the TRANSLATED_TARGET_ARCH in it's name, however the target for mips64 and mips64 n32 were the same, causing the conflict. Avoid this conflict by adding the ABIEXTENSION to the name.
--- meta/conf/machine/include/mips/arch-mips.inc | 2 ++ 1 file changed, 2 insertions(+)
meta/conf/machine/include/mips/arch-mips.inc +2 -0
@@ -100,3 +100,5 @@ TUNE_FEATURES_tune-mips64el-nf = "n64" BASE_LIB_tune-mips64el-nf = "lib64" MIPSPKGSFX_VARIANT_tune-mips64el-nf = "${TUNE_ARCH}" PACKAGE_EXTRA_ARCHS_tune-mips64el-nf = "mips64el-nf" + +TRANSLATED_TARGET_ARCH_append = "${ABIEXTENSION}"
Signature · 1 line
1.9.3