Changeset View
Changeset View
Standalone View
Standalone View
sys/boot/efi/boot1/Makefile
Show All 13 Lines | |||||
# 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 | ||||
CWARNFLAGS.skein.c += -Wno-cast-align | |||||
CWARNFLAGS.skein.c += -Wno-missing-variable-declarations | |||||
.endif | .endif | ||||
# architecture-specific loader code | # architecture-specific loader code | ||||
SRCS= boot1.c self_reloc.c start.S ufs_module.c | SRCS= boot1.c self_reloc.c start.S ufs_module.c | ||||
.if ${MK_ZFS} != "no" | .if ${MK_ZFS} != "no" | ||||
SRCS+= zfs_module.c | SRCS+= zfs_module.c | ||||
SRCS+= skein.c skein_block.c | LIBCRYPTOBOOT= ${.OBJDIR}/../libcryptoboot/libcryptoboot.a | ||||
# Do not unroll skein loops, reduce code size | |||||
CFLAGS+= -DSKEIN_LOOP=111 | |||||
.PATH: ${.CURDIR}/../../../crypto/skein | |||||
.endif | .endif | ||||
CFLAGS+= -I. | CFLAGS+= -I. | ||||
CFLAGS+= -I${.CURDIR}/../include | CFLAGS+= -I${.CURDIR}/../include | ||||
CFLAGS+= -I${.CURDIR}/../include/${MACHINE} | CFLAGS+= -I${.CURDIR}/../include/${MACHINE} | ||||
CFLAGS+= -I${.CURDIR}/../../../contrib/dev/acpica/include | CFLAGS+= -I${.CURDIR}/../../../contrib/dev/acpica/include | ||||
CFLAGS+= -I${.CURDIR}/../../.. | CFLAGS+= -I${.CURDIR}/../../.. | ||||
CFLAGS+= -DEFI_UFS_BOOT | CFLAGS+= -DEFI_UFS_BOOT | ||||
Show All 28 Lines | |||||
LDFLAGS+= -Wl,-znocombreloc | LDFLAGS+= -Wl,-znocombreloc | ||||
.endif | .endif | ||||
# | # | ||||
# Add libstand for the runtime functions used by the compiler - for example | # Add libstand for the runtime functions used by the compiler - for example | ||||
# __aeabi_* (arm) or __divdi3 (i386). | # __aeabi_* (arm) or __divdi3 (i386). | ||||
# as well as required string and memory functions for all platforms. | # as well as required string and memory functions for all platforms. | ||||
# | # | ||||
DPADD+= ${LIBSTAND} | DPADD+= ${LIBCRYPTOBOOT} ${LIBSTAND} | ||||
LDADD+= -lstand | LDADD+= ${LIBCRYPTOBOOT} -lstand | ||||
DPADD+= ${LDSCRIPT} | DPADD+= ${LDSCRIPT} | ||||
NM?= nm | NM?= nm | ||||
OBJCOPY?= objcopy | OBJCOPY?= objcopy | ||||
.if ${MACHINE_CPUARCH} == "amd64" | .if ${MACHINE_CPUARCH} == "amd64" | ||||
EFI_TARGET= efi-app-x86_64 | EFI_TARGET= efi-app-x86_64 | ||||
▲ Show 20 Lines • Show All 60 Lines • Show Last 20 Lines |