toolchain: drop codesourcery arm/aarch64 toolchains

codesourcery arm/aarch64 toolchains are old (2014) and use glibc
2.18/2.20 which are not compatible with 64-bit time_t raising the
following build failure with libcgroup since commit
1c2dbcdcf0:

In file included from ./libcgroup-internal.h:25:0,
                 from parse.y:21:
/home/buildroot/autobuild/run/instance-3/output-1/host/arm-buildroot-linux-gnueabi/sysroot/usr/include/fts.h:41:3: error: #error "<fts.h> cannot be used with -D_FILE_OFFSET_BITS==64"
 # error "<fts.h> cannot be used with -D_FILE_OFFSET_BITS==64"
   ^

Fixes: 1c2dbcdcf0
 - http://autobuild.buildroot.org/results/e28f955f2b360f6e7bb231a5a3800cfbd17a23d7

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
[Peter: add Config.in.legacy entries]
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Fabrice Fontaine
2024-03-09 17:49:46 +01:00
committed by Peter Korsgaard
parent a362979761
commit 53a8c5150e
19 changed files with 14 additions and 237 deletions

View File

@@ -37,103 +37,6 @@ class TestExternalToolchain(infra.basetest.BRTest):
self.assertTrue(os.path.exists(interp_path))
class TestExternalToolchainSourceryArmv4(TestExternalToolchain):
config = BASIC_CONFIG + \
"""
BR2_arm=y
BR2_arm920t=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_ARM=y
"""
toolchain_prefix = "arm-none-linux-gnueabi"
def test_run(self):
TestExternalToolchain.common_check(self)
# Check the architecture variant
arch = infra.get_file_arch(self.builddir,
self.toolchain_prefix,
"lib/libc.so.6")
self.assertEqual(arch, "v4T")
# Check the sysroot symlink
symlink = os.path.join(self.builddir, "staging", "armv4t")
self.assertTrue(os.path.exists(symlink))
self.assertEqual(os.readlink(symlink), "./")
# Boot the system
img = os.path.join(self.builddir, "images", "rootfs.cpio")
self.emulator.boot(arch="armv5",
kernel="builtin",
options=["-initrd", img])
self.emulator.login()
class TestExternalToolchainSourceryArmv5(TestExternalToolchain):
config = BASIC_CONFIG + \
"""
BR2_arm=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_ARM=y
"""
toolchain_prefix = "arm-none-linux-gnueabi"
def test_run(self):
TestExternalToolchain.common_check(self)
# Check the architecture variant
arch = infra.get_file_arch(self.builddir,
self.toolchain_prefix,
"lib/libc.so.6")
self.assertEqual(arch, "v5TE")
# Boot the system
img = os.path.join(self.builddir, "images", "rootfs.cpio")
self.emulator.boot(arch="armv5",
kernel="builtin",
options=["-initrd", img])
self.emulator.login()
class TestExternalToolchainSourceryArmv7(TestExternalToolchain):
config = BASIC_CONFIG + \
"""
BR2_arm=y
BR2_cortex_a8=y
BR2_ARM_EABI=y
BR2_ARM_INSTRUCTIONS_THUMB2=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_ARM=y
"""
toolchain_prefix = "arm-none-linux-gnueabi"
def test_run(self):
TestExternalToolchain.common_check(self)
# Check the architecture variant
arch = infra.get_file_arch(self.builddir,
self.toolchain_prefix,
"lib/libc.so.6")
self.assertEqual(arch, "v7")
isa = infra.get_elf_arch_tag(self.builddir,
self.toolchain_prefix,
"lib/libc.so.6",
"Tag_THUMB_ISA_use")
self.assertEqual(isa, "Thumb-2")
# Check we have the sysroot symlink
symlink = os.path.join(self.builddir, "staging", "thumb2")
self.assertTrue(os.path.exists(symlink))
self.assertEqual(os.readlink(symlink), "./")
# Boot the system
img = os.path.join(self.builddir, "images", "rootfs.cpio")
self.emulator.boot(arch="armv7",
kernel="builtin",
options=["-initrd", img])
self.emulator.login()
class TestExternalToolchainLinaroArm(TestExternalToolchain):
config = BASIC_CONFIG + \
"""