Date: Sun, 18 Feb 2007 20:17:34 +0100 From: Soeren Straarup <xride@x12.dk> To: "M. Warner Losh" <imp@bsdimp.com> Cc: freebsd-arm@freebsd.org Subject: The beginning of a howto (Was Re: At91rm9200 boot?) Message-ID: <20070218191734.GF66059@x12.dk> In-Reply-To: <20070218.114141.-1175572653.imp@bsdimp.com> References: <20070217201021.GB66059@x12.dk> <20070217.192205.547446193.imp@bsdimp.com> <20070218180142.GC66059@x12.dk> <20070218.114141.-1175572653.imp@bsdimp.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Feb 18, 2007 at 11:41:41AM -0700, M. Warner Losh wrote: > In message: <20070218180142.GC66059@x12.dk> > Soeren Straarup <xride@x12.dk> writes: > : This might be a newbie question, but how do i compile bootspi: > : bugs# make ARCH=arm TARGET_ARCH=arm > : Warning: Object directory not changed from original /usr/src/sys/boot/arm/at91/bootspi > : cc -Os -mcpu=arm9 -ffreestanding -I/usr/src/sys/boot/arm/at91/bootspi/../libat91 -I/usr/src/sys/boot/arm/at91/bootspi/../../../.. -I/usr/src/sys/boot/arm/at91/bootspi/../../../../arm -D_KERNEL -Wall -Waggregate-return -Wnested-externs -Wpointer-arith -Wshadow -Wwrite-strings -Werror -Wmissing-prototypes -Wmissing-declarations -DBOOT_KB920X -DBOOT_COMMANDS -c /usr/src/sys/boot/arm/at91/bootspi/../libat91/arm_init.S > : `-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead. > : /usr/src/sys/boot/arm/at91/bootspi/../libat91/arm_init.S:0: error: bad value (arm9) for -mtune= switch > : *** Error code 1 > : > : Stop in /usr/src/sys/boot/arm/at91/bootspi. > > Ah yes. Only the 'top level' makefile understands having a different > target than the host. So you'll need to do: > > cd /usr/src > make TARGET=arm TARGET_ARCH=arm buildenv > cd sys/boot/arm/at91 > make > > to build changes to the bootspi program. The above sequence sets up a > build environment similar to what is done during 'make buildworld'. > > Warner Thanks that got me some further.. cc -Os -mcpu=arm9 -ffreestanding -I/usr/src/sys/boot/arm/at91/libat91/../libat91 -I/usr/src/sys/boot/arm/at91/libat91/../../../.. -I/usr/src/sys/boot/arm/at91/libat91/../../../../arm -D_KERNEL -Wall -Waggregate-return -Wnested-externs -Wpointer-arith -Wshadow -Wwrite-strings -Werror -Wmissing-prototypes -Wmissing-declarations -DBOOT_KB920X -c emac_init.c make: don't know how to make fpga.c. Stop *** Error code 2 Going to rebuild world to see if that changes anything /Soeren -- Soeren Straarup | aka OZ2DAK aka Xride FreeBSD committer | FreeBSD since 2.2.6-R If a program is not working right, then send a patch
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070218191734.GF66059>