8906b1321f
When tsoome@ added skein support to the ZFS boot code and zfsloader, it resulted in an explosion in code size, running close to a number of limits. The default for the C version of skein is to unroll all loops for skein-256 and 512 Disabling the loop unrolling saves 20-28kb from each binary boot1.efi gptzfsboot loader.efi userboot.so zfsloader Reviewed by: emaste, tsoome Sponsored by: ScaleEngine Inc. Differential Revision: https://reviews.freebsd.org/D7826
42 lines
864 B
Makefile
42 lines
864 B
Makefile
# $FreeBSD$
|
|
|
|
LIB= zfsboot
|
|
INTERNALLIB=
|
|
|
|
SRCS+= zfs.c
|
|
|
|
SRCS+= skein.c skein_block.c
|
|
# Do not unroll skein loops, reduce code size
|
|
CFLAGS+= -DSKEIN_LOOP=111
|
|
.PATH: ${.CURDIR}/../../crypto/skein
|
|
|
|
CFLAGS+= -DBOOTPROG=\"zfsloader\"
|
|
CFLAGS+= -I${.CURDIR}/../common -I${.CURDIR}/../.. -I.
|
|
CFLAGS+= -I${.CURDIR}/../../../lib/libstand
|
|
CFLAGS+= -I${.CURDIR}/../../cddl/boot/zfs
|
|
CFLAGS+= -I${.CURDIR}/../../crypto/skein
|
|
|
|
.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
|
|
CFLAGS+= -march=i386
|
|
.endif
|
|
.if ${MACHINE_CPUARCH} == "amd64"
|
|
CFLAGS+= -m32
|
|
.endif
|
|
|
|
CFLAGS+= -Wformat -Wall
|
|
|
|
.if ${MACHINE_CPUARCH} == "amd64"
|
|
CLEANFILES+= machine
|
|
machine: .NOMETA
|
|
ln -sf ${.CURDIR}/../../i386/include machine
|
|
.endif
|
|
|
|
.include <bsd.stand.mk>
|
|
.include <bsd.lib.mk>
|
|
|
|
.if ${MACHINE_CPUARCH} == "amd64"
|
|
.if !exists(machine)
|
|
beforedepend ${OBJS}: machine
|
|
.endif
|
|
.endif
|