svn commit: r209672 - projects/ppc64/sys/boot/fdt

Nathan Whitehorn nwhitehorn at FreeBSD.org
Sat Jul 3 20:26:33 UTC 2010


Author: nwhitehorn
Date: Sat Jul  3 20:26:33 2010
New Revision: 209672
URL: http://svn.freebsd.org/changeset/base/209672

Log:
  The powerpc64 boot loader is 32-bit, so make sure the libfdt included
  here is, too.

Modified:
  projects/ppc64/sys/boot/fdt/Makefile

Modified: projects/ppc64/sys/boot/fdt/Makefile
==============================================================================
--- projects/ppc64/sys/boot/fdt/Makefile	Sat Jul  3 20:19:20 2010	(r209671)
+++ projects/ppc64/sys/boot/fdt/Makefile	Sat Jul  3 20:26:33 2010	(r209672)
@@ -16,10 +16,14 @@ CFLAGS+=	-I${.CURDIR}/../../contrib/libf
 
 CFLAGS+=	-ffreestanding
 
-.if ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "arm"
+.if ${MACHINE_CPUARCH} == "powerpc" || ${MACHINE_CPUARCH} == "arm"
 CFLAGS+=	-msoft-float
 .endif
 
+.if ${MACHINE_ARCH} == "powerpc64"
+CFLAGS+=	-m32
+.endif
+
 CFLAGS+=	-Wformat -Wall
 
 .include <bsd.lib.mk>


More information about the svn-src-projects mailing list