Changeset View
Changeset View
Standalone View
Standalone View
sys/boot/geli/Makefile
Show All 21 Lines | |||||
# string functions from libc | # string functions from libc | ||||
.PATH: ${.CURDIR}/../../../lib/libc/string | .PATH: ${.CURDIR}/../../../lib/libc/string | ||||
SRCS+= bcmp.c bcopy.c bzero.c | SRCS+= bcmp.c bcopy.c bzero.c | ||||
# Our password input method | # Our password input method | ||||
SRCS+= pwgets.c | SRCS+= pwgets.c | ||||
# sha256 and sha512 from sys/crypto | |||||
.PATH: ${.CURDIR}/../../crypto/sha2 | |||||
CFLAGS+= -DWEAK_REFS | |||||
SRCS+= sha256c.c sha512c.c | |||||
# md5 from libmd | |||||
.PATH: ${.CURDIR}/../../../lib/libmd | |||||
SRCS+= md5c.c | |||||
# AES implementation from sys/crypto | # AES implementation from sys/crypto | ||||
.PATH: ${.CURDIR}/../../crypto/rijndael | .PATH: ${.CURDIR}/../../crypto/rijndael | ||||
CFLAGS+= -I${.CURDIR}/../../ | CFLAGS+= -I${.CURDIR}/../../ | ||||
# Remove asserts | # Remove asserts | ||||
CFLAGS+= -DNDEBUG | CFLAGS+= -DNDEBUG | ||||
SRCS+= rijndael-alg-fst.c rijndael-api-fst.c rijndael-api.c | SRCS+= rijndael-alg-fst.c rijndael-api-fst.c rijndael-api.c | ||||
# local GELI Implementation | # local GELI Implementation | ||||
.PATH: ${.CURDIR}/../../geom/eli | .PATH: ${.CURDIR}/../../geom/eli | ||||
CFLAGS+= -D_STAND | CFLAGS+= -D_STAND | ||||
SRCS+= geliboot_crypto.c g_eli_hmac.c g_eli_key.c g_eli_key_cache.c pkcs5v2.c | SRCS+= geliboot_crypto.c g_eli_hmac.c g_eli_key.c g_eli_key_cache.c pkcs5v2.c | ||||
.include <bsd.stand.mk> | .include <bsd.stand.mk> | ||||
.include <bsd.lib.mk> | .include <bsd.lib.mk> |