From owner-cvs-all Tue Jul 30 21: 1: 1 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AD3F937B405 for ; Tue, 30 Jul 2002 21:00:54 -0700 (PDT) Received: from mail.speakeasy.net (mail17.speakeasy.net [216.254.0.217]) by mx1.FreeBSD.org (Postfix) with ESMTP id 86F2543E67 for ; Tue, 30 Jul 2002 21:00:53 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: (qmail 1141 invoked from network); 31 Jul 2002 04:00:52 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail17.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 31 Jul 2002 04:00:52 -0000 Received: from laptop.baldwin.cx (laptop.baldwin.cx [192.168.0.4]) by server.baldwin.cx (8.12.5/8.12.5) with ESMTP id g6V40puR055947; Wed, 31 Jul 2002 00:00:51 -0400 (EDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <200207310356.g6V3u3ZW041498@freefall.freebsd.org> Date: Wed, 31 Jul 2002 00:00:53 -0400 (EDT) From: John Baldwin To: John Baldwin Subject: RE: cvs commit: src Makefile.inc1 src/share/mk bsd.cpu.mk Cc: cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 31-Jul-2002 John Baldwin wrote: > jhb 2002/07/30 20:56:03 PDT > > Modified files: > . Makefile.inc1 > share/mk bsd.cpu.mk > Log: > - Define NO_CPU_CFLAGS during BMAKE and TMAKE (and thus XMAKE) so that > bsd.cpu.mk doesn't have to worry about compilers other than the current > version. > - Allow TARGET_CPUTYPE to override CPUTYPE in bsd.cpu.mk. > - Treat an empty CPUTYPE the same as an undefined CPUTYPE. > - For buildworld, buildkernel, etc., define TARGET_CPUTYPE to CPUTYPE for > native builds and define it to be empty for cross-builds. > TARGET_CPUTYPE is only defined if it is not already defined via the > commandline or environment. What this means is that say you have CPUTYPE=p2 in your /etc/make.conf. Then you can do this: % make buildworld ... builds a world with -march=pentiumpro % make buildworld TARGET_CPUTYPE=i486 ... builds a world with -march=i486 % make buildworld TARGET_CPUTYPE="" ... builds a world with -mcpu=pentiumpro % make buildworld TARGET_ARCH=alpha ... builds an alpha world with -mcpu=ev4 -mtune=ev5 % make buildworld TARGET_ARCH=alpha TARGET_CPUTYPE=ev6 ... builds an alpha world with -mcpu=ev6 CPUTYPE only sort-of worked with cross-builds before (it was broken but the breakage didn't really manifest itself), now it should DTRT. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message