diff options
author | smh <smh@FreeBSD.org> | 2016-01-28 17:24:40 +0000 |
---|---|---|
committer | smh <smh@FreeBSD.org> | 2016-01-28 17:24:40 +0000 |
commit | 8bc1b16f3f960510b30a3eee43a07adf72255c30 (patch) | |
tree | 98e1d3a703c868ac740b72d1e07e582e112c477f /sys/boot/efi/boot1/Makefile | |
parent | 7cf27587c4119bcb0ff4c5f60930a61fc32683f2 (diff) | |
download | FreeBSD-src-8bc1b16f3f960510b30a3eee43a07adf72255c30.zip FreeBSD-src-8bc1b16f3f960510b30a3eee43a07adf72255c30.tar.gz |
MFC r294068, r294265
MFC r294068:
Add EFI ZFS boot support
MFC r294265:
Fix broken DPRINTF and wire up EFI_DEBUG so -DEFI_DEBUG to make works.
Relnotes: Yes
Sponsored by: Multiplay
Diffstat (limited to 'sys/boot/efi/boot1/Makefile')
-rw-r--r-- | sys/boot/efi/boot1/Makefile | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/sys/boot/efi/boot1/Makefile b/sys/boot/efi/boot1/Makefile index 58b3b6b..5c2c239 100644 --- a/sys/boot/efi/boot1/Makefile +++ b/sys/boot/efi/boot1/Makefile @@ -10,8 +10,22 @@ PROG= boot1.sym INTERNALPROG= WARNS?= 6 +.if ${MK_ZFS} != "no" +# Disable warnings that are currently incompatible with the zfs boot code +CWARNFLAGS.zfs_module.c += -Wno-array-bounds +CWARNFLAGS.zfs_module.c += -Wno-cast-align +CWARNFLAGS.zfs_module.c += -Wno-cast-qual +CWARNFLAGS.zfs_module.c += -Wno-missing-prototypes +CWARNFLAGS.zfs_module.c += -Wno-sign-compare +CWARNFLAGS.zfs_module.c += -Wno-unused-parameter +CWARNFLAGS.zfs_module.c += -Wno-unused-function +.endif + # architecture-specific loader code SRCS= boot1.c reloc.c start.S ufs_module.c +.if ${MK_ZFS} != "no" +SRCS+= zfs_module.c +.endif CFLAGS+= -fPIC CFLAGS+= -I. @@ -20,6 +34,15 @@ CFLAGS+= -I${.CURDIR}/../include/${MACHINE} CFLAGS+= -I${.CURDIR}/../../../contrib/dev/acpica/include CFLAGS+= -I${.CURDIR}/../../.. CFLAGS+= -DEFI_UFS_BOOT +.ifdef(EFI_DEBUG) +CFLAGS+= -DEFI_DEBUG +.endif + +.if ${MK_ZFS} != "no" +CFLAGS+= -I${.CURDIR}/../../zfs/ +CFLAGS+= -I${.CURDIR}/../../../cddl/boot/zfs/ +CFLAGS+= -DEFI_ZFS_BOOT +.endif # Always add MI sources and REGULAR efi loader bits .PATH: ${.CURDIR}/../loader/arch/${MACHINE} |