bsd.cpu.mk (166069) | bsd.cpu.mk (166071) |
---|---|
1# $FreeBSD: head/share/mk/bsd.cpu.mk 166069 2007-01-17 12:43:06Z des $ | 1# $FreeBSD: head/share/mk/bsd.cpu.mk 166071 2007-01-17 14:49:13Z des $ |
2 3# Set default CPU compile flags and baseline CPUTYPE for each arch. The 4# compile flags must support the minimum CPU type for each architecture but 5# may tune support for more advanced processors. 6 7.if !defined(CPUTYPE) || empty(CPUTYPE) 8_CPUCFLAGS = 9. if ${MACHINE_ARCH} == "i386" --- 7 unchanged lines hidden (view full) --- 17MACHINE_CPU = arm 18. endif 19.else 20 21# Handle aliases (not documented in make.conf to avoid user confusion 22# between e.g. i586 and pentium) 23 24. if ${MACHINE_ARCH} == "i386" | 2 3# Set default CPU compile flags and baseline CPUTYPE for each arch. The 4# compile flags must support the minimum CPU type for each architecture but 5# may tune support for more advanced processors. 6 7.if !defined(CPUTYPE) || empty(CPUTYPE) 8_CPUCFLAGS = 9. if ${MACHINE_ARCH} == "i386" --- 7 unchanged lines hidden (view full) --- 17MACHINE_CPU = arm 18. endif 19.else 20 21# Handle aliases (not documented in make.conf to avoid user confusion 22# between e.g. i586 and pentium) 23 24. if ${MACHINE_ARCH} == "i386" |
25. if ${CPUTYPE} == "prescott" 26CPUTYPE = nocona 27. elif ${CPUTYPE} == "core2" 28CPUTYPE = core | 25. if ${CPUTYPE} == "nocona" 26CPUTYPE = prescott 27. elif ${CPUTYPE} == "core" || ${CPUTYPE} == "core2" 28CPUTYPE = prescott |
29. elif ${CPUTYPE} == "p4" 30CPUTYPE = pentium4 31. elif ${CPUTYPE} == "p4m" 32CPUTYPE = pentium4m 33. elif ${CPUTYPE} == "p3" 34CPUTYPE = pentium3 35. elif ${CPUTYPE} == "p3m" 36CPUTYPE = pentium3m --- 91 unchanged lines hidden (view full) --- 128. elif ${CPUTYPE} == "k6" 129MACHINE_CPU = mmx k6 k5 i586 i486 i386 130. elif ${CPUTYPE} == "k5" 131MACHINE_CPU = k5 i586 i486 i386 132. elif ${CPUTYPE} == "c3" 133MACHINE_CPU = 3dnow mmx i586 i486 i386 134. elif ${CPUTYPE} == "c3-2" 135MACHINE_CPU = sse mmx i586 i486 i386 | 29. elif ${CPUTYPE} == "p4" 30CPUTYPE = pentium4 31. elif ${CPUTYPE} == "p4m" 32CPUTYPE = pentium4m 33. elif ${CPUTYPE} == "p3" 34CPUTYPE = pentium3 35. elif ${CPUTYPE} == "p3m" 36CPUTYPE = pentium3m --- 91 unchanged lines hidden (view full) --- 128. elif ${CPUTYPE} == "k6" 129MACHINE_CPU = mmx k6 k5 i586 i486 i386 130. elif ${CPUTYPE} == "k5" 131MACHINE_CPU = k5 i586 i486 i386 132. elif ${CPUTYPE} == "c3" 133MACHINE_CPU = 3dnow mmx i586 i486 i386 134. elif ${CPUTYPE} == "c3-2" 135MACHINE_CPU = sse mmx i586 i486 i386 |
136. elif ${CPUTYPE} == "nocona" || ${CPUTYPE} == "core" | 136. elif ${CPUTYPE} == "prescott" |
137MACHINE_CPU = sse3 sse2 sse i686 mmx i586 i486 i386 138. elif ${CPUTYPE} == "pentium4" || ${CPUTYPE} == "pentium4m" || ${CPUTYPE} == "pentium-m" 139MACHINE_CPU = sse2 sse i686 mmx i586 i486 i386 140. elif ${CPUTYPE} == "pentium3" || ${CPUTYPE} == "pentium3m" 141MACHINE_CPU = sse i686 mmx i586 i486 i386 142. elif ${CPUTYPE} == "pentium2" 143MACHINE_CPU = i686 mmx i586 i486 i386 144. elif ${CPUTYPE} == "pentiumpro" --- 5 unchanged lines hidden (view full) --- 150. elif ${CPUTYPE} == "i486" 151MACHINE_CPU = i486 i386 152. elif ${CPUTYPE} == "i386" 153MACHINE_CPU = i386 154. endif 155. elif ${MACHINE_ARCH} == "amd64" 156. if ${CPUTYPE} == "opteron" || ${CPUTYPE} == "athlon64" || ${CPUTYPE} == "k8" 157MACHINE_CPU = k8 3dnow | 137MACHINE_CPU = sse3 sse2 sse i686 mmx i586 i486 i386 138. elif ${CPUTYPE} == "pentium4" || ${CPUTYPE} == "pentium4m" || ${CPUTYPE} == "pentium-m" 139MACHINE_CPU = sse2 sse i686 mmx i586 i486 i386 140. elif ${CPUTYPE} == "pentium3" || ${CPUTYPE} == "pentium3m" 141MACHINE_CPU = sse i686 mmx i586 i486 i386 142. elif ${CPUTYPE} == "pentium2" 143MACHINE_CPU = i686 mmx i586 i486 i386 144. elif ${CPUTYPE} == "pentiumpro" --- 5 unchanged lines hidden (view full) --- 150. elif ${CPUTYPE} == "i486" 151MACHINE_CPU = i486 i386 152. elif ${CPUTYPE} == "i386" 153MACHINE_CPU = i386 154. endif 155. elif ${MACHINE_ARCH} == "amd64" 156. if ${CPUTYPE} == "opteron" || ${CPUTYPE} == "athlon64" || ${CPUTYPE} == "k8" 157MACHINE_CPU = k8 3dnow |
158. elif ${CPUTYPE} == "nocona" || ${CPUTYPE} == "core2" | 158. elif ${CPUTYPE} == "nocona" |
159MACHINE_CPU = sse3 160. endif 161MACHINE_CPU += amd64 sse2 sse mmx 162. elif ${MACHINE_ARCH} == "ia64" 163. if ${CPUTYPE} == "itanium" 164MACHINE_CPU = itanium 165. endif 166. endif --- 17 unchanged lines hidden --- | 159MACHINE_CPU = sse3 160. endif 161MACHINE_CPU += amd64 sse2 sse mmx 162. elif ${MACHINE_ARCH} == "ia64" 163. if ${CPUTYPE} == "itanium" 164MACHINE_CPU = itanium 165. endif 166. endif --- 17 unchanged lines hidden --- |