diff options
Diffstat (limited to 'sys/boot/fdt/Makefile')
-rw-r--r-- | sys/boot/fdt/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/boot/fdt/Makefile b/sys/boot/fdt/Makefile index 32ebce8..5df761d 100644 --- a/sys/boot/fdt/Makefile +++ b/sys/boot/fdt/Makefile @@ -16,10 +16,14 @@ CFLAGS+= -I${.CURDIR}/../../contrib/libfdt/ -I${.CURDIR}/../common/ \ 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> |