bsd.cpu.mk (206973) | bsd.cpu.mk (209868) |
---|---|
1# $FreeBSD: head/share/mk/bsd.cpu.mk 206973 2010-04-21 01:13:08Z delphij $ | 1# $FreeBSD: head/share/mk/bsd.cpu.mk 209868 2010-07-10 02:32:50Z nwhitehorn $ |
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 mmx 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 mmx 13. elif ${MACHINE_ARCH} == "ia64" 14MACHINE_CPU = itanium |
15. elif ${MACHINE_ARCH} == "powerpc" | 15. elif ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "powerpc64" |
16MACHINE_CPU = aim 17. elif ${MACHINE_ARCH} == "sparc64" 18. elif ${MACHINE_ARCH} == "arm" 19MACHINE_CPU = arm 20. elif ${MACHINE_ARCH} == "mips" 21MACHINE_CPU = mips 22. endif 23.else --- 92 unchanged lines hidden (view full) --- 116. endif 117. elif ${MACHINE_ARCH} == "powerpc" 118. if ${CPUTYPE} == "e500" 119MACHINE_CPU = booke 120_CPUCFLAGS = -Wa,-me500 -msoft-float 121. else 122_CPUCFLAGS = -mcpu=${CPUTYPE} -mno-powerpc64 123. endif | 16MACHINE_CPU = aim 17. elif ${MACHINE_ARCH} == "sparc64" 18. elif ${MACHINE_ARCH} == "arm" 19MACHINE_CPU = arm 20. elif ${MACHINE_ARCH} == "mips" 21MACHINE_CPU = mips 22. endif 23.else --- 92 unchanged lines hidden (view full) --- 116. endif 117. elif ${MACHINE_ARCH} == "powerpc" 118. if ${CPUTYPE} == "e500" 119MACHINE_CPU = booke 120_CPUCFLAGS = -Wa,-me500 -msoft-float 121. else 122_CPUCFLAGS = -mcpu=${CPUTYPE} -mno-powerpc64 123. endif |
124. elif ${MACHINE_ARCH} == "powerpc64" 125_CPUCFLAGS = -mcpu=${CPUTYPE} |
|
124. elif ${MACHINE_ARCH} == "mips" 125. if ${CPUTYPE} == "mips32" 126_CPUCFLAGS = -march=mips32 127. elif ${CPUTYPE} == "mips32r2" 128_CPUCFLAGS = -march=mips32r2 129. elif ${CPUTYPE} == "mips64" 130_CPUCFLAGS = -march=mips64 131. elif ${CPUTYPE} == "mips64r2" --- 91 unchanged lines hidden --- | 126. elif ${MACHINE_ARCH} == "mips" 127. if ${CPUTYPE} == "mips32" 128_CPUCFLAGS = -march=mips32 129. elif ${CPUTYPE} == "mips32r2" 130_CPUCFLAGS = -march=mips32r2 131. elif ${CPUTYPE} == "mips64" 132_CPUCFLAGS = -march=mips64 133. elif ${CPUTYPE} == "mips64r2" --- 91 unchanged lines hidden --- |