bsd.cpu.mk (176665) | bsd.cpu.mk (176776) |
---|---|
1# $FreeBSD: head/share/mk/bsd.cpu.mk 176665 2008-02-29 19:20:05Z jhb $ | 1# $FreeBSD: head/share/mk/bsd.cpu.mk 176776 2008-03-03 20:40:20Z raj $ |
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" 10MACHINE_CPU = i486 11. elif ${MACHINE_ARCH} == "amd64" 12MACHINE_CPU = amd64 sse2 sse 13. elif ${MACHINE_ARCH} == "ia64" 14MACHINE_CPU = itanium | 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" 10MACHINE_CPU = i486 11. elif ${MACHINE_ARCH} == "amd64" 12MACHINE_CPU = amd64 sse2 sse 13. elif ${MACHINE_ARCH} == "ia64" 14MACHINE_CPU = itanium |
15. elif ${MACHINE_ARCH} == "powerpc" 16MACHINE_CPU = aim |
|
15. elif ${MACHINE_ARCH} == "sparc64" 16. elif ${MACHINE_ARCH} == "arm" 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) --- 81 unchanged lines hidden (view full) --- 104. elif ${MACHINE_ARCH} == "arm" 105. if ${CPUTYPE} == "xscale" 106#XXX: gcc doesn't seem to like -mcpu=xscale, and dies while rebuilding itself 107#_CPUCFLAGS = -mcpu=xscale 108_CPUCFLAGS = -march=armv5te -D__XSCALE__ 109. else 110_CPUCFLAGS = -mcpu=${CPUTYPE} 111. endif | 17. elif ${MACHINE_ARCH} == "sparc64" 18. elif ${MACHINE_ARCH} == "arm" 19MACHINE_CPU = arm 20. endif 21.else 22 23# Handle aliases (not documented in make.conf to avoid user confusion 24# between e.g. i586 and pentium) --- 81 unchanged lines hidden (view full) --- 106. elif ${MACHINE_ARCH} == "arm" 107. if ${CPUTYPE} == "xscale" 108#XXX: gcc doesn't seem to like -mcpu=xscale, and dies while rebuilding itself 109#_CPUCFLAGS = -mcpu=xscale 110_CPUCFLAGS = -march=armv5te -D__XSCALE__ 111. else 112_CPUCFLAGS = -mcpu=${CPUTYPE} 113. endif |
114. elif ${MACHINE_ARCH} == "powerpc" 115. if ${CPUTYPE} == "e500" 116MACHINE_CPU = booke 117_CPUCFLAGS = -Wa,-me500 -msoft-float 118. endif |
|
112. endif 113 114# Set up the list of CPU features based on the CPU type. This is an 115# unordered list to make it easy for client makefiles to test for the 116# presence of a CPU feature. 117 118. if ${MACHINE_ARCH} == "i386" 119. if ${CPUTYPE} == "opteron" || ${CPUTYPE} == "athlon64" --- 66 unchanged lines hidden --- | 119. endif 120 121# Set up the list of CPU features based on the CPU type. This is an 122# unordered list to make it easy for client makefiles to test for the 123# presence of a CPU feature. 124 125. if ${MACHINE_ARCH} == "i386" 126. if ${CPUTYPE} == "opteron" || ${CPUTYPE} == "athlon64" --- 66 unchanged lines hidden --- |