diff options
author | nwhitehorn <nwhitehorn@FreeBSD.org> | 2010-07-10 02:32:50 +0000 |
---|---|---|
committer | nwhitehorn <nwhitehorn@FreeBSD.org> | 2010-07-10 02:32:50 +0000 |
commit | c7f36558b7a71fac88c6c5ae6c1cba0a58bdf64e (patch) | |
tree | 203121dd89e9bc9b270660cd2abd7dd97bd858d8 | |
parent | 5d21d768b2c9f3601cbb00aa36a5ec22bacf93df (diff) | |
download | FreeBSD-src-c7f36558b7a71fac88c6c5ae6c1cba0a58bdf64e.zip FreeBSD-src-c7f36558b7a71fac88c6c5ae6c1cba0a58bdf64e.tar.gz |
Minor modifications to know what to do with powerpc64.
-rw-r--r-- | share/mk/bsd.cpu.mk | 4 | ||||
-rw-r--r-- | share/mk/bsd.endian.mk | 1 | ||||
-rw-r--r-- | share/mk/sys.mk | 2 |
3 files changed, 5 insertions, 2 deletions
diff --git a/share/mk/bsd.cpu.mk b/share/mk/bsd.cpu.mk index 86f9aed..a748c69 100644 --- a/share/mk/bsd.cpu.mk +++ b/share/mk/bsd.cpu.mk @@ -12,7 +12,7 @@ MACHINE_CPU = i486 MACHINE_CPU = amd64 sse2 sse mmx . elif ${MACHINE_ARCH} == "ia64" MACHINE_CPU = itanium -. elif ${MACHINE_ARCH} == "powerpc" +. elif ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "powerpc64" MACHINE_CPU = aim . elif ${MACHINE_ARCH} == "sparc64" . elif ${MACHINE_ARCH} == "arm" @@ -121,6 +121,8 @@ _CPUCFLAGS = -Wa,-me500 -msoft-float . else _CPUCFLAGS = -mcpu=${CPUTYPE} -mno-powerpc64 . endif +. elif ${MACHINE_ARCH} == "powerpc64" +_CPUCFLAGS = -mcpu=${CPUTYPE} . elif ${MACHINE_ARCH} == "mips" . if ${CPUTYPE} == "mips32" _CPUCFLAGS = -march=mips32 diff --git a/share/mk/bsd.endian.mk b/share/mk/bsd.endian.mk index c2b141f..8ef72e5 100644 --- a/share/mk/bsd.endian.mk +++ b/share/mk/bsd.endian.mk @@ -7,6 +7,7 @@ (${MACHINE_ARCH} == "mips" && !defined(TARGET_BIG_ENDIAN)) TARGET_ENDIANNESS= 1234 .elif ${MACHINE_ARCH} == "powerpc" || \ + ${MACHINE_ARCH} == "powerpc64" || \ ${MACHINE_ARCH} == "sparc64" || \ ${MACHINE_ARCH} == "arm" || \ ${MACHINE_ARCH} == "mips" diff --git a/share/mk/sys.mk b/share/mk/sys.mk index ac77b25..2c69c8e 100644 --- a/share/mk/sys.mk +++ b/share/mk/sys.mk @@ -13,7 +13,7 @@ unix ?= We run FreeBSD, not UNIX. # of size and/or endian. This is called MACHINE_CPU in NetBSD, but # that's used for something different in FreeBSD. # -MACHINE_CPUARCH=${MACHINE_ARCH:C/mipse[lb]/mips/:C/armeb/arm/} +MACHINE_CPUARCH=${MACHINE_ARCH:C/mipse[lb]/mips/:C/armeb/arm/:C/powerpc64/powerpc/} .endif # If the special target .POSIX appears (without prerequisites or |