aboutsummaryrefslogtreecommitdiff
path: root/configs/qemu_sh4_r2d_defconfig
diff options
context:
space:
mode:
authorGravatar Waldemar Brodkorb <wbx@openadk.org>2015-04-08 10:54:55 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-05-03 16:30:36 +0200
commit19d5953bf15b9e68d083fc72bcd40b02b7ab810a (patch)
tree79ac8d908ea631ac22b1b3b8f3d32bd788474ac5 /configs/qemu_sh4_r2d_defconfig
parent25206d6e26dc4ce9c272e68876f31d0ca7d30e67 (diff)
downloadbuildroot-19d5953bf15b9e68d083fc72bcd40b02b7ab810a.tar.gz
buildroot-19d5953bf15b9e68d083fc72bcd40b02b7ab810a.tar.bz2
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 'configs/qemu_sh4_r2d_defconfig')
-rw-r--r--configs/qemu_sh4_r2d_defconfig4
1 files changed, 0 insertions, 4 deletions
diff --git a/configs/qemu_sh4_r2d_defconfig b/configs/qemu_sh4_r2d_defconfig
index 928a82d948..8509e8e794 100644
--- a/configs/qemu_sh4_r2d_defconfig
+++ b/configs/qemu_sh4_r2d_defconfig
@@ -10,10 +10,6 @@ BR2_TARGET_GENERIC_GETTY_PORT="ttySC1"
BR2_TARGET_ROOTFS_EXT2=y
# BR2_TARGET_ROOTFS_TAR is not set
-# The kernel wants to use the -m4-nofpu option to make sure that it
-# doesn't use floating point operations.
-BR2_EXTRA_GCC_CONFIG_OPTIONS="--with-multilib-list=m4,m4-nofpu"
-
# Lock to 4.0 headers to avoid breaking with newer kernels
BR2_KERNEL_HEADERS_VERSION=y
BR2_DEFAULT_KERNEL_VERSION="4.0"