Date: Wed, 31 Jul 2002 00:00:53 -0400 (EDT) From: John Baldwin <jhb@FreeBSD.org> To: John Baldwin <jhb@FreeBSD.org> Cc: cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org Subject: RE: cvs commit: src Makefile.inc1 src/share/mk bsd.cpu.mk Message-ID: <XFMail.20020731000053.jhb@FreeBSD.org> In-Reply-To: <200207310356.g6V3u3ZW041498@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <jhb@FreeBSD.org> <>< 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.20020731000053.jhb>