From owner-freebsd-current@FreeBSD.ORG Wed Feb 18 16:07:35 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5533B16A4CE for ; Wed, 18 Feb 2004 16:07:35 -0800 (PST) Received: from smtp2.actcom.co.il (mail.actcom.co.il [192.114.47.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9B5C343D2D for ; Wed, 18 Feb 2004 16:07:34 -0800 (PST) (envelope-from rosti_bsd@yahoo.com) Received: from yahoo.com (line108-59.adsl.actcom.co.il [192.117.108.59]) by smtp2.actcom.co.il (8.12.8/8.12.8) with ESMTP id i1J07W8K014381 for ; Thu, 19 Feb 2004 02:07:32 +0200 Message-ID: <4033FE9B.5070902@yahoo.com> Date: Thu, 19 Feb 2004 02:08:59 +0200 From: Rostislav Krasny X-Accept-Language: en MIME-Version: 1.0 To: freebsd-current@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Improve readability of /usr/src/share/mk/bsd.cpu.mk X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Feb 2004 00:07:35 -0000 Hello. I just watched into revision 1.29 of the /usr/src/share/mk/bsd.cpu.mk file at FreeBSD 5.2.1-RC2 and I confused, a little, because of its formating. I propose following patch to the upcoming 5.2.1-RELEASE and similar one to the -CURRENT. --- bsd.cpu.mk.orig Thu Feb 19 01:29:59 2004 +++ bsd.cpu.mk Thu Feb 19 01:37:24 2004 @@ -11,7 +11,7 @@ . elif ${MACHINE_ARCH} == "alpha" _CPUCFLAGS = -mcpu=ev4 -mtune=ev5 MACHINE_CPU = ev4 -.elif ${MACHINE_ARCH} == "amd64" +. elif ${MACHINE_ARCH} == "amd64" MACHINE_CPU = amd64 sse2 sse . elif ${MACHINE_ARCH} == "ia64" _CPUCFLAGS = @@ -86,12 +86,12 @@ # unordered list to make it easy for client makefiles to test for the # presence of a CPU feature. -.if ${MACHINE_ARCH} == "i386" -. if ${CPUTYPE} == "athlon-mp" || ${CPUTYPE} == "athlon-xp" || ${CPUTYPE} == "athlon-4" +. if ${MACHINE_ARCH} == "i386" +. if ${CPUTYPE} == "athlon-mp" || ${CPUTYPE} == "athlon-xp" || ${CPUTYPE} == "athlon-4" MACHINE_CPU = athlon-xp k7 3dnow sse mmx k6 k5 i586 i486 i386 -. elif ${CPUTYPE} == "athlon" || ${CPUTYPE} == "athlon-tbird" +. elif ${CPUTYPE} == "athlon" || ${CPUTYPE} == "athlon-tbird" MACHINE_CPU = athlon k7 3dnow mmx k6 k5 i586 i486 i386 -. elif ${CPUTYPE} == "k6-3" || ${CPUTYPE} == "k6-2" +. elif ${CPUTYPE} == "k6-3" || ${CPUTYPE} == "k6-2" MACHINE_CPU = 3dnow mmx k6 k5 i586 i486 i386 . elif ${CPUTYPE} == "k6" MACHINE_CPU = mmx k6 k5 i586 i486 i386