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?

thanks!
Alberich
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to