From owner-freebsd-arm@FreeBSD.ORG Tue Jul 19 03:23:51 2011 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BB88F106566B for ; Tue, 19 Jul 2011 03:23:51 +0000 (UTC) (envelope-from mcgovern@beta.com) Received: from spoon.beta.com (spoon.beta.com [199.165.180.2]) by mx1.freebsd.org (Postfix) with ESMTP id 425FD8FC0A for ; Tue, 19 Jul 2011 03:23:50 +0000 (UTC) Received: from [199.165.180.39] (dhcp9.beta.com [199.165.180.39]) by spoon.beta.com (8.14.4/8.14.4) with ESMTP id p6J3Nnvh048191; Mon, 18 Jul 2011 23:23:49 -0400 (EDT) (envelope-from mcgovern@beta.com) From: "Brian J. McGovern" To: freebsd-arm@freebsd.org, nitw.satish@gmail.com In-Reply-To: <20110718120023.5381410656B5@hub.freebsd.org> References: <20110718120023.5381410656B5@hub.freebsd.org> Content-Type: text/plain; charset="us-ascii" Date: Mon, 18 Jul 2011 23:23:49 -0400 Message-ID: <1311045829.1508.11.camel@bmcgover-laptop.beta.com> Mime-Version: 1.0 X-Mailer: Evolution 2.30.2 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=0.5 required=5.0 tests=S25R_6,T_RP_MATCHES_RCVD autolearn=no version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on spoon.beta.com Cc: Subject: Re: freebsd-arm Digest, Vol 276, Issue 1 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: Tue, 19 Jul 2011 03:23:51 -0000 > Message: 1 > Date: Mon, 18 Jul 2011 16:26:50 +0530 > From: satish kondapalli > Subject: Free BSD support for armv7. > To: freebsd-arm@freebsd.org > Message-ID: > > Content-Type: text/plain; charset=ISO-8859-1 > > Hi, > > I am trying to compile Freebsd for ARMv7 architecture. I compiled the > kernel with the following option in my conf file. > makeoptions CONF_CFLAGS="-march=armv7" > > In the compilation time i got the following error. > head/sys/arm/arm/genassym.c:1: error: bad value (armv7) for -march= switch. > > I am new to FreeBSD, can anyone explain what i need to do in my case. > My gcc compiler info: > # gcc -v > Using built-in specs. > Target: i386-undermydesk-freebsd > Configured with: FreeBSD/i386 system compiler > Thread model: posix > gcc version 4.2.1 20070719 [FreeBSD] > > Thanks > Sateesh > > >From the gcc info page... `-march=NAME' This specifies the name of the target ARM architecture. GCC uses this name to determine what kind of instructions it can emit when generating assembly code. This option can be used in conjunction with or instead of the `-mcpu=' option. Permissible names are: `armv2', `armv2a', `armv3', `armv3m', `armv4', `armv4t', `armv5', `armv5t', `armv5te', `armv6', `armv6j', `iwmmxt', `ep9312'. Perhaps what you want is the -mcpu option? If you need -march, I'm guessing it will be one of the 'later' ones. `-mcpu=NAME' This specifies the name of the target ARM processor. GCC uses this name to determine what kind of instructions it can emit when generating assembly code. Permissible names are: `arm2', `arm250', `arm3', `arm6', `arm60', `arm600', `arm610', `arm620', `arm7', `arm7m', `arm7d', `arm7dm', `arm7di', `arm7dmi', `arm70', `arm700', `arm700i', `arm710', `arm710c', `arm7100', `arm7500', `arm7500fe', `arm7tdmi', `arm7tdmi-s', `arm8', `strongarm', `strongarm110', `strongarm1100', `arm8', `arm810', `arm9', `arm9e', `arm920', `arm920t', `arm922t', `arm946e-s', `arm966e-s', `arm968e-s', `arm926ej-s', `arm940t', `arm9tdmi', `arm10tdmi', `arm1020t', `arm1026ej-s', `arm10e', `arm1020e', `arm1022e', `arm1136j-s', `arm1136jf-s', `mpcore', `mpcorenovfp', `arm1176jz-s', `arm1026ej-s', `arm10e', `arm1020e', `arm1022e', `arm1136j-s', `arm1136jf-s', `mpcore', `mpcorenovfp', `arm1176jz-s', `arm1176jzf-s', `xscale', `iwmmxt', `ep9312'.