cross compiling

Warner Losh imp at bsdimp.com
Fri Dec 4 16:33:09 UTC 2015


> On Dec 4, 2015, at 9:31 AM, Daniel Braniss <danny at cs.huji.ac.il> wrote:
> 
> Hi,
> I can cross compile for armv6 (raspberry Pi B), and I do get a working version, and till about July, I was
> able to cross compile a module doing something like this:
> $ cd $SRC
> $ make kernel-toolchain TARGET_ARCH=armv6
> $ make buildenv TARGET_ARCH=armv6 BUILDENV_SHELL=/usr/local/bin/shell
> $ cd <moduledir>
> $ make
> 
> but today, after a fresh svn update of current, I get:
> 
> Warning: Object directory not changed from original /a/fr-05/vol/home/system/danny/src/FreeBSD/ARM/elc/sys/modules/mfrc
> cc  -O -pipe -mfloat-abi=softfp  -DMFRC_DEBUG=8 -Werror -D_KERNEL -DKLD_MODULE -nostdinc  -I/a/fr-05/vol/home/system/danny/src/FreeBSD/ARM/elc/sys/modules/mfrc/../.. -I. -I@ -I@/contrib/altq -fno-common   -ffreestanding -c /a/fr-05/vol/home/system/danny/src/FreeBSD/ARM/elc/sys/modules/mfrc/../../dev/mfrc/mfrc.c -o mfrc.o
> cc: error: argument unused during compilation: '-mfloat-abi=softfp'
> *** Error code 1
> 
> so, what magic am I missing?

What does which cc say?

Warner

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-arm/attachments/20151204/a27b80a4/attachment.bin>


More information about the freebsd-arm mailing list