Changeset View
Changeset View
Standalone View
Standalone View
head/stand/efi/boot1/Makefile
# $FreeBSD$ | # $FreeBSD$ | ||||
.include <bsd.init.mk> | .include <bsd.init.mk> | ||||
BOOT1?= boot1 | BOOT1?= boot1 | ||||
PROG= ${BOOT1}.sym | PROG= ${BOOT1}.sym | ||||
INTERNALPROG= | INTERNALPROG= | ||||
WARNS?= 6 | WARNS= 6 | ||||
CFLAGS+= -DEFI_BOOT1 | CFLAGS+= -DEFI_BOOT1 | ||||
# We implement a slightly non-standard %S in that it always takes a | # 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 | # 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 | # 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 | # of a short. There's no good cast to use here so just ignore the | ||||
# warnings for now. | # warnings for now. | ||||
CWARNFLAGS.boot1.c+= -Wno-format | CWARNFLAGS.boot1.c+= -Wno-format | ||||
# Disable bogus alignment issues | # Disable bogus alignment issues | ||||
CWARNFLAGS.ufs_module.c += -Wno-cast-align | CWARNFLAGS.ufs_module.c += -Wno-cast-align | ||||
# Disable warnings that are currently incompatible with the zfs boot code | # Disable warnings that are currently incompatible with the zfs boot code | ||||
CWARNFLAGS.zfs_module.c += -Wno-array-bounds | CWARNFLAGS.zfs_module.c += -Wno-array-bounds | ||||
CWARNFLAGS.zfs_module.c += -Wno-cast-align | CWARNFLAGS.zfs_module.c += -Wno-cast-align | ||||
CWARNFLAGS.zfs_module.c += -Wno-cast-qual | CWARNFLAGS.zfs_module.c += -Wno-cast-qual | ||||
CWARNFLAGS.zfs_module.c += -Wno-missing-prototypes | CWARNFLAGS.zfs_module.c += -Wno-missing-prototypes | ||||
CWARNFLAGS.zfs_module.c += -Wno-sign-compare | CWARNFLAGS.zfs_module.c += -Wno-sign-compare | ||||
CWARNFLAGS.zfs_module.c += -Wno-unused-parameter | CWARNFLAGS.zfs_module.c += -Wno-unused-parameter | ||||
CWARNFLAGS.zfs_module.c += -Wno-unused-function | CWARNFLAGS.zfs_module.c += -Wno-unused-function | ||||
# architecture-specific loader code | # architecture-specific loader code | ||||
SRCS+= boot1.c self_reloc.c start.S ufs_module.c devpath.c | SRCS+= boot1.c proto.c self_reloc.c start.S ufs_module.c devpath.c | ||||
.if ${MK_LOADER_ZFS} != "no" | .if ${MK_LOADER_ZFS} != "no" | ||||
SRCS+= zfs_module.c | SRCS+= zfs_module.c | ||||
CFLAGS.zfs_module.c+= -I${ZFSSRC} | CFLAGS.zfs_module.c+= -I${ZFSSRC} | ||||
CFLAGS.zfs_module.c+= -I${SYSDIR}/cddl/boot/zfs | CFLAGS.zfs_module.c+= -I${SYSDIR}/cddl/boot/zfs | ||||
CFLAGS.zfs_module.c+= -I${SYSDIR}/crypto/skein | CFLAGS.zfs_module.c+= -I${SYSDIR}/crypto/skein | ||||
CFLAGS+= -DEFI_ZFS_BOOT | CFLAGS+= -DEFI_ZFS_BOOT | ||||
.endif | .endif | ||||
▲ Show 20 Lines • Show All 80 Lines • Show Last 20 Lines |