Hello Alberich,
Le 17/02/2013 14:26, Alberich de megres a écrit :
Hello,
I'm trying to compile openwrt for an ARM using an external toolchain
with hardfp.
When openwrt buildroot is compiling the kernel, at the oldconfig prepare
scripts i'm getting this error:
arm-hardfp-linux-gnueabi-gcc: error: -mfloat-abi=soft and
-mfloat-abi=hard may not be used together
In the openwrt menuconfig,
In advanced (developers ) -> target options -> use softhp is disabled
with this flags (for both: TARGET_OPTIMIZATION,
DEFAULT_TARGET_OPTIMIZATION):
-O2 -pipe -mfloat-abi=hard -mfpu=vfp
Also I checked the kernel_menuconfig for FPU, which is enabled.
At some point the -mfloat-abi=soft compiler flags is added to the flags,
but I could not find where is it added. fgrep for mfloat-abi=soft or
msoft-float didn't show anything relevant.
Can anyone help me?
This is specifically passed to the GCC configure script here:
https://dev.openwrt.org/browser/trunk/toolchain/gcc/common.mk#L125
you can disable the use of software floating point for your binaries
from here: https://dev.openwrt.org/browser/trunk/Config.in#L670
software floating point is enabled by default for ARM little and big
endian toolchains. Alternatively you can set the "fpu" feature flag in
your target Makefile in target/linux/<target>/Makefile if you want to
disable software floating point for your specific target/platform.
--
Florian
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel