kumquat-buildroot/toolchain/toolchain-external
Romain Naour 4433ad8f5c toolchain/helper: check the arch sysroot
Since the commit [1], the utils/genrandconfig script improved the
configuration randomization used by autobuilders. Since then it can
generate a configuration that is not suitable for an external toolchain
such the "Codescape IMG GNU Linux Toolchain".

Indeed this toolchain can be selected for mips32r5 or mips64r5 while only
mips32r2 or mips64r2 are really supported. The toolchain issue will be
fixed in a followup change.

We want to catch such issue in check_unusable_toolchain function otherwise
it is detected late during the sysroot import into staging and trigger
a weird error message:

ln: failed to create symbolic link 'output/host/mips64el-buildroot-linux-gnu/sysroot//nvmedata/autobuild/instance-25/buildroot/libc.a': No such file or directory
ln: failed to create symbolic link 'output/host/mips64el-buildroot-linux-gnu/sysroot/usr//nvmedata/autobuild/instance-25/buildroot/libc.a': No such file or directory

This is similar test than for the main sysroot check but this time we have
to use the toolchain cflags to check the architecture sysroot.

If the architecture sysroot doesn't exist, the toolchain will reply with
"libc.a".

Either the toolchain is really broken or we used a wrong target
architecture variant. In the later case, the toolchain infrastructure will
print a meaningful error message.

Note: We also may get a similar issue using the toolchain-external-custom package
if a toolchain is used with a wrong target architecture	variant.

Fixes:
http://autobuild.buildroot.org/results/701/701e8a5f713f7bdd1f32a4c549cdaac580e2522a/

[1] aeee90ec10

Signed-off-by: Romain Naour <romain.naour@gmail.com>
Cc: Giulio Benetti <giulio.benetti@benettiengineering.com>
Cc: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Arnout Vandecappelle <arnout@mind.be>
2023-02-15 22:00:04 +01:00
..
toolchain-external-arm-aarch64 Revert "toolchain/toolchain-external: update Arm AArch64 toolchain 11.2-2022.02" 2022-09-23 23:35:03 +02:00
toolchain-external-arm-aarch64-be Revert "toolchain/toolchain-external: update Arm AArch64 BE toolchain 11.2-2022.02" 2022-09-23 23:35:00 +02:00
toolchain-external-arm-arm Revert "toolchain/toolchain-external: update Arm ARM32 toolchain 11.2-2022.02" 2022-09-23 23:34:57 +02:00
toolchain-external-bootlin toolchain/toolchain-external/toolchain-external-bootlin: update to 2022.08 2023-02-06 22:26:24 +01:00
toolchain-external-codescape-img-mips boot, package, support, toolchain: switch to 2 spaces for the hash file 2022-07-28 23:05:23 +02:00
toolchain-external-codescape-mti-mips boot, package, support, toolchain: switch to 2 spaces for the hash file 2022-07-28 23:05:23 +02:00
toolchain-external-codesourcery-aarch64 boot, package, support, toolchain: switch to 2 spaces for the hash file 2022-07-28 23:05:23 +02:00
toolchain-external-codesourcery-arm boot, package, support, toolchain: switch to 2 spaces for the hash file 2022-07-28 23:05:23 +02:00
toolchain-external-codesourcery-mips boot, package, support, toolchain: switch to 2 spaces for the hash file 2022-07-28 23:05:23 +02:00
toolchain-external-codesourcery-niosII boot, package, support, toolchain: switch to 2 spaces for the hash file 2022-07-28 23:05:23 +02:00
toolchain-external-custom {toolchain, linux-headers}: add support for 6.1 headers 2022-12-18 14:56:37 +01:00
toolchain-external-linaro-aarch64 boot, package, support, toolchain: switch to 2 spaces for the hash file 2022-07-28 23:05:23 +02:00
toolchain-external-linaro-aarch64-be boot, package, support, toolchain: switch to 2 spaces for the hash file 2022-07-28 23:05:23 +02:00
toolchain-external-linaro-arm boot, package, support, toolchain: switch to 2 spaces for the hash file 2022-07-28 23:05:23 +02:00
toolchain-external-linaro-armeb boot, package, support, toolchain: switch to 2 spaces for the hash file 2022-07-28 23:05:23 +02:00
toolchain-external-synopsys-arc boot, package, support, toolchain: switch to 2 spaces for the hash file 2022-07-28 23:05:23 +02:00
Config.in toolchain: invert glibc <-> !static dependency 2022-07-27 11:11:19 +02:00
pkg-toolchain-external.mk toolchain/helper: check the arch sysroot 2023-02-15 22:00:04 +01:00
toolchain-external.mk