summaryrefslogtreecommitdiffstats
path: root/sys/boot/ofw/Makefile.inc
diff options
context:
space:
mode:
authornwhitehorn <nwhitehorn@FreeBSD.org>2010-07-12 00:49:22 +0000
committernwhitehorn <nwhitehorn@FreeBSD.org>2010-07-12 00:49:22 +0000
commit88c6aef3299b7697de9a97ece63bc1b19b7c35c1 (patch)
treed99dc307dc7218f4c94faf9da092277a7c8ca452 /sys/boot/ofw/Makefile.inc
parent33836b0d5c1da9a4b3bd4f8eb8ba8496b77ce2b0 (diff)
downloadFreeBSD-src-88c6aef3299b7697de9a97ece63bc1b19b7c35c1.zip
FreeBSD-src-88c6aef3299b7697de9a97ece63bc1b19b7c35c1.tar.gz
Provide support in loader for booting 64-bit PowerPC kernels. Like amd64,
64-bit PowerPC kernels are loaded by a 32-bit loader, since nearly all powerpc64 firmwares execute in 32-bit mode.
Diffstat (limited to 'sys/boot/ofw/Makefile.inc')
-rw-r--r--sys/boot/ofw/Makefile.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/boot/ofw/Makefile.inc b/sys/boot/ofw/Makefile.inc
index 265f86d..dab65e5 100644
--- a/sys/boot/ofw/Makefile.inc
+++ b/sys/boot/ofw/Makefile.inc
@@ -1,3 +1,8 @@
# $FreeBSD$
+.if ${MACHINE_ARCH} == "powerpc64"
+CFLAGS+= -m32 -mcpu=powerpc
+LDFLAGS+= -m elf32ppc
+.endif
+
.include "../Makefile.inc"
OpenPOWER on IntegriCloud