summaryrefslogtreecommitdiffstats
path: root/sys/boot/uboot/Makefile.inc
diff options
context:
space:
mode:
Diffstat (limited to 'sys/boot/uboot/Makefile.inc')
-rw-r--r--sys/boot/uboot/Makefile.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/boot/uboot/Makefile.inc b/sys/boot/uboot/Makefile.inc
index 265f86d..dab65e5 100644
--- a/sys/boot/uboot/Makefile.inc
+++ b/sys/boot/uboot/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