diff options
author | raj <raj@FreeBSD.org> | 2008-03-03 20:40:20 +0000 |
---|---|---|
committer | raj <raj@FreeBSD.org> | 2008-03-03 20:40:20 +0000 |
commit | e03fbae38985b8df6df8cb851d82fcafd8f715a6 (patch) | |
tree | c4713cc4df3cdab9bf7b077e966e4a6e13c29239 /share/mk/bsd.cpu.mk | |
parent | 469edf6052992c3be9401c89ee81a7eff0e7a7e6 (diff) | |
download | FreeBSD-src-e03fbae38985b8df6df8cb851d82fcafd8f715a6.zip FreeBSD-src-e03fbae38985b8df6df8cb851d82fcafd8f715a6.tar.gz |
Connect MPC85XX to the PowerPC build.
The kernel config file is KERNCONF=MPC85XX, so the usual procedure applies:
1. make buildworld TARGET_ARCH=powerpc
2. make buildkernel TARGET_ARCH=powerpc TARGET_CPUTYPE=e500 KERNCONF=MPC85XX
This default config uses kernel-level FPU emulation. For the soft-float world
approach:
1. make buildworld TARGET_ARCH=powerpc TARGET_CPUTYPE=e500
2. disable FPU_EMU option in sys/powerpc/conf/MPC85XX
3. make buildkernel TARGET_ARCH=powerpc TARGET_CPUTYPE=e500 KERNCONF=MPC85XX
Approved by: cognet (mentor)
MFp4: e500
Diffstat (limited to 'share/mk/bsd.cpu.mk')
-rw-r--r-- | share/mk/bsd.cpu.mk | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/share/mk/bsd.cpu.mk b/share/mk/bsd.cpu.mk index 7636e2f..e309cd7 100644 --- a/share/mk/bsd.cpu.mk +++ b/share/mk/bsd.cpu.mk @@ -12,6 +12,8 @@ MACHINE_CPU = i486 MACHINE_CPU = amd64 sse2 sse . elif ${MACHINE_ARCH} == "ia64" MACHINE_CPU = itanium +. elif ${MACHINE_ARCH} == "powerpc" +MACHINE_CPU = aim . elif ${MACHINE_ARCH} == "sparc64" . elif ${MACHINE_ARCH} == "arm" MACHINE_CPU = arm @@ -109,6 +111,11 @@ _CPUCFLAGS = -march=armv5te -D__XSCALE__ . else _CPUCFLAGS = -mcpu=${CPUTYPE} . endif +. elif ${MACHINE_ARCH} == "powerpc" +. if ${CPUTYPE} == "e500" +MACHINE_CPU = booke +_CPUCFLAGS = -Wa,-me500 -msoft-float +. endif . endif # Set up the list of CPU features based on the CPU type. This is an |