summaryrefslogtreecommitdiffstats
path: root/sys/boot/efi
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2016-05-26 23:07:20 +0000
committerjhb <jhb@FreeBSD.org>2016-05-26 23:07:20 +0000
commite075851d35de03a4c8259fef7bf5e99d58088d06 (patch)
treeba5114fe22b929d20c041d7e2768091498331801 /sys/boot/efi
parent040099380d571eedb57f44c03c385de7992d75b9 (diff)
downloadFreeBSD-src-e075851d35de03a4c8259fef7bf5e99d58088d06.zip
FreeBSD-src-e075851d35de03a4c8259fef7bf5e99d58088d06.tar.gz
Apply the printf %S band-aid for efinet.c to fix the arm64 build.
Diffstat (limited to 'sys/boot/efi')
-rw-r--r--sys/boot/efi/libefi/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/boot/efi/libefi/Makefile b/sys/boot/efi/libefi/Makefile
index c1ee1c6..d7b0c7d 100644
--- a/sys/boot/efi/libefi/Makefile
+++ b/sys/boot/efi/libefi/Makefile
@@ -7,6 +7,13 @@ WARNS?= 2
SRCS= delay.c devpath.c efi_console.c efinet.c efipart.c env.c errno.c \
handles.c libefi.c time.c
+# We implement a slightly non-standard %S in that it always takes a
+# CHAR16 that's common in UEFI-land instead of a wchar_t. This only
+# seems to matter on arm64 where wchar_t defaults to an int instead
+# of a short. There's no good cast to use here so just ignore the
+# warnings for now.
+CWARNFLAGS.efinet.c+= -Wno-format
+
.if ${MACHINE_CPUARCH} == "aarch64"
CFLAGS+= -msoft-float -mgeneral-regs-only
.endif
OpenPOWER on IntegriCloud