On 18 May 2015 at 09:49, Takumi Shimada <[email protected]> wrote:
> Hi,
>
> I'm working on Cortex-A7 board.
> This Cortex-A7 board has FPU. Therefore I tried to remove codes for software
> floating point.
> It seems to occur on building src/lib/libc.
> When I compiled a small code including `vmrs r0,fpscr` with
> `arm-none-eabi-gcc -g -Wall -mcpu=cortex-a7 -mfpu=neon -marm
> -mthumb-interwork -nostdlib -fno-builtin`,
> the compilation was successful.
> I'm afraid the compilation of src/lib/libc doesn't use my flags.
>
> Could you tell me how to fix them?

You need to set the flags either on the command line
./build.sh -F CFLAGS=-mfpu=neon
or in the EXTRA_CFLAGS/EXTRA_AFLAGS in the platform.sh file

Remove the EXTRA_CPPFLAGS="-U__VFP_FP__" line from the config, that is
just to work around the compiler getting things wrong for the soft
float target.

I think the following is what you need though in platform.sh - seems
to build as far as I can see
appendvar EXTRA_CFLAGS "-mcpu=cortex-a7 -mfloat-abi=hard"
appendvar EXTRA_AFLAGS "-mcpu=cortex-a7 -mfloat-abi=hard"

(can you rebase to master, I fixed the argument parsing with spaces as well)

Justin

Reply via email to