diff options
| author | Waldemar Brodkorb <wbx@openadk.org> | 2015-04-08 10:54:55 +0200 |
|---|---|---|
| committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2015-05-03 16:30:36 +0200 |
| commit | 19d5953bf15b9e68d083fc72bcd40b02b7ab810a (patch) | |
| tree | 79ac8d908ea631ac22b1b3b8f3d32bd788474ac5 /toolchain/toolchain-buildroot | |
| parent | 25206d6e26dc4ce9c272e68876f31d0ca7d30e67 (diff) | |
sh4: fix toolchain creation
The Linux kernel does force compile with -m4-nofpu, which is only
available when building a multilib toolchain.
The interesting part here is, that buildroot use --disable-multilib for
gcc configure, but enables --with-multilib-list=m4,m4-nofpu in
the default configuration for Qemu targeting r2d emulation.
This results in a toolchain, which can be used for the kernel and
for userland without creating a multilib toolchain with different
kinds of libgcc version. In the multilib case there would be
subdirectories created (!m4 and m4-nofpu). As buildroot uses a
short version of toolchain creation, a multilib enabled gcc build
fails when creating libgcc.
So the best solution is to just keep multilib disabled, but always
add --with-multilib-list when sh4/sh4eb/sh4a/sh4aeb is choosen.
Tested with sh4/sh4a toolchain build and qemu defconfig with
gcc 4.8.x/4.9.x (with and without C++ enabled), uClibc and glibc.
Disable sh4a/sh4aeb for uClibc, as it does not implemented, yet.
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
(ARM and SH4 uClibc toolchain builds)
Diffstat (limited to 'toolchain/toolchain-buildroot')
| -rw-r--r-- | toolchain/toolchain-buildroot/Config.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toolchain/toolchain-buildroot/Config.in b/toolchain/toolchain-buildroot/Config.in index 1b4bb9d1e..d9914b084 100644 --- a/toolchain/toolchain-buildroot/Config.in +++ b/toolchain/toolchain-buildroot/Config.in @@ -32,8 +32,8 @@ config BR2_TOOLCHAIN_BUILDROOT_UCLIBC depends on BR2_arcle || BR2_arceb || BR2_arm || BR2_armeb || \ BR2_bfin || BR2_i386 || BR2_m68k || \ BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el || \ - BR2_powerpc || BR2_sh || BR2_sparc || BR2_xtensa || \ - BR2_x86_64 + BR2_powerpc || BR2_sh2a || BR2_sh4 || BR2_sh4eb || \ + BR2_sparc || BR2_xtensa || BR2_x86_64 help This option selects uClibc as the C library for the cross-compilation toolchain. |
