From 5a6087d62e5c2a272278606ebf1cc62830cf4c68 Mon Sep 17 00:00:00 2001 From: Gustavo Zacarias Date: Thu, 5 Jan 2012 16:31:43 -0300 Subject: toolchain: add powerpc SPE ABI support Add the ability for buildroot to build an SPE ABI enabled toolchain. This is mandatory for e500v1/v2 cores since they don't support classic FPU mode as the e500mc does. Useful for Freescale's PowerQUICC III and single/dual-core QorIQ line of processors. The new TARGET_ABI variable is used rather than TARGET_CFLAGS for uclibc's UCLIBC_EXTRA_CFLAGS to avoid breakish CFLAGS leaking in, a good example being -mthumb for ARM. Signed-off-by: Gustavo Zacarias Signed-off-by: Peter Korsgaard --- toolchain/gcc/Makefile.in | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'toolchain/gcc') diff --git a/toolchain/gcc/Makefile.in b/toolchain/gcc/Makefile.in index 2e55ed0f7..d9efcf063 100644 --- a/toolchain/gcc/Makefile.in +++ b/toolchain/gcc/Makefile.in @@ -47,6 +47,11 @@ EXTRA_GCC_CONFIG_OPTIONS+=--disable-libmudflap SOFT_FLOAT_CONFIG_OPTION:= endif +# Disable mudflap and enable proper double/long double for SPE ABI +ifeq ($(BR2_powerpc_SPE),y) +EXTRA_GCC_CONFIG_OPTIONS+=--disable-libmudflap --enable-e500_double --with-long-double-128 +endif + ifeq ($(BR2_PACKAGE_GCC_TARGET),y) EXTRA_TARGET_GCC_CONFIG_OPTIONS:= -- cgit v1.2.3