From owner-freebsd-arm@FreeBSD.ORG Sun Feb 18 18:43:15 2007 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6C86B16A400 for ; Sun, 18 Feb 2007 18:43:15 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 2A08A13C481 for ; Sun, 18 Feb 2007 18:43:15 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.13.4/8.13.4) with ESMTP id l1IIetDV051956; Sun, 18 Feb 2007 11:40:55 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Sun, 18 Feb 2007 11:41:41 -0700 (MST) Message-Id: <20070218.114141.-1175572653.imp@bsdimp.com> To: xride@x12.dk From: "M. Warner Losh" In-Reply-To: <20070218180142.GC66059@x12.dk> References: <20070217201021.GB66059@x12.dk> <20070217.192205.547446193.imp@bsdimp.com> <20070218180142.GC66059@x12.dk> X-Mailer: Mew version 4.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Sun, 18 Feb 2007 11:40:55 -0700 (MST) Cc: freebsd-arm@freebsd.org Subject: Re: At91rm9200 boot? X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Feb 2007 18:43:15 -0000 In message: <20070218180142.GC66059@x12.dk> Soeren Straarup 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