Hi, Is there anything against adding support for k6-3 to the just added CPUTYPE mechanism? :) My little machine feels left out. Hehehhe I made a simple patch to etc/defaults/make.conf and share/mk/bsd.cpu.mk Should I have touched anything else? Regards, ps: I think this can be MFCed asap (even during the veil period) since it is very straightforward. -- Mario S F Ferreira - UnB - Brazil - "I guess this is a signature." lioux at ( freebsd dot org | linf dot unb dot br ) flames to beloved [EMAIL PROTECTED]
--- etc/defaults/make.conf.orig Sat Mar 10 04:35:47 2001 +++ etc/defaults/make.conf Mon Mar 12 00:23:16 2001 @@ -22,7 +22,7 @@ # NO_CPU_CFLAGS variable below. # Currently the following CPU types are recognised: # Intel x86 architecture: -# (AMD CPUs) k7 k6-2 k6 k5 +# (AMD CPUs) k7 k6-3 k6-2 k6 k5 # (Intel CPUs) p4 p3 p2 i686 i586/mmx i586 i486 i386 # Alpha/AXP architecture: ev6 pca56 ev56 ev5 ev45 ev4 #
--- share/mk/bsd.cpu.mk.orig Sun Mar 4 06:40:11 2001 +++ share/mk/bsd.cpu.mk Mon Mar 12 00:21:16 2001 @@ -30,6 +30,8 @@ . if ${MACHINE_ARCH} == "i386" . if ${CPUTYPE} == "k7" CFLAGS += -march=k6 # gcc doesn't support athlon yet, but it will +. elif ${CPUTYPE} == "k6-3" +CFLAGS += -march=k6 . elif ${CPUTYPE} == "k6-2" CFLAGS += -march=k6 . elif ${CPUTYPE} == "k6" @@ -75,6 +77,8 @@ .if ${MACHINE_ARCH} == "i386" . if ${CPUTYPE} == "k7" MACHINE_CPU = k7 3dnow k6 k5 i586 i486 i386 +. elif ${CPUTYPE} == "k6-3" +MACHINE_CPU = 3dnow k6 k5 i586 i486 i386 . elif ${CPUTYPE} == "k6-2" MACHINE_CPU = 3dnow k6 k5 i586 i486 i386 . elif ${CPUTYPE} == "k6"