beaglebone

Oleksandr Tymoshenko gonzo at bluezbox.com
Tue Apr 17 18:08:59 UTC 2012


On 17/04/2012 11:00 AM, Alex T. wrote:
> Just a quick question. What compiler do you use? When I start the kernel
> compilation the gcc from my base system is used, which is gcc 4.2.1, and it
> complains about armv6 target cpu:
>
> `-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
> cc1: error: unrecognized command line option "-mlittle-endian"
> sys/arm/arm/genassym.c:1: error: bad value (armv6) for -march= switch
> sys/arm/arm/genassym.c:1: error: bad value (armv6) for -mtune= switch
>
> Do you override CC by any chance?

It's stock toolchain from projects/armv6 tree. You just need
to build it first.

Run

make TARGET_ARCH=arm TARGET_CPUTYPE=armv6 kernel-toolchain

before making buildkernel.


More information about the freebsd-arm mailing list