Use SYSDIR instead of ${.CURDIR}/../..<etc>/sys.
Sponsored by: Netflix
This commit is contained in:
parent
b022947e0e
commit
404a0a2f40
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=324881
@ -5,6 +5,7 @@ MAN=
|
||||
|
||||
.include <src.opts.mk>
|
||||
MK_SSP= no
|
||||
.include <bsd.init.mk>
|
||||
|
||||
LIB= geliboot
|
||||
INTERNALLIB=
|
||||
@ -28,7 +29,7 @@ SRCS+= bcmp.c bcopy.c bzero.c
|
||||
SRCS+= pwgets.c
|
||||
|
||||
# sha256 and sha512 from sys/crypto
|
||||
.PATH: ${SRCTOP}/sys/crypto/sha2
|
||||
.PATH: ${SYSDIR}/crypto/sha2
|
||||
CFLAGS+= -DWEAK_REFS
|
||||
SRCS+= sha256c.c sha512c.c
|
||||
|
||||
@ -37,15 +38,15 @@ SRCS+= sha256c.c sha512c.c
|
||||
SRCS+= md5c.c
|
||||
|
||||
# AES implementation from sys/crypto
|
||||
.PATH: ${SRCTOP}/sys/crypto/rijndael
|
||||
CFLAGS+= -I${.CURDIR}/../../
|
||||
.PATH: ${SYSDIR}/crypto/rijndael
|
||||
CFLAGS+= -I${SYSDIR}
|
||||
CFLAGS+= -I${.CURDIR}/../common/
|
||||
# Remove asserts
|
||||
CFLAGS+= -DNDEBUG
|
||||
SRCS+= rijndael-alg-fst.c rijndael-api-fst.c rijndael-api.c
|
||||
|
||||
# local GELI Implementation
|
||||
.PATH: ${SRCTOP}/sys/geom/eli
|
||||
.PATH: ${SYSDIR}/geom/eli
|
||||
CFLAGS+= -D_STAND
|
||||
SRCS+= geliboot_crypto.c g_eli_hmac.c g_eli_key.c g_eli_key_cache.c pkcs5v2.c
|
||||
|
||||
|
@ -154,7 +154,7 @@ SRCS+= nandfs.c
|
||||
.endif
|
||||
|
||||
# explicit_bzero
|
||||
.PATH: ${SRCTOP}/sys/libkern
|
||||
.PATH: ${SYSDIR}/libkern
|
||||
SRCS+= explicit_bzero.c
|
||||
|
||||
.include <bsd.stand.mk>
|
||||
|
@ -28,7 +28,7 @@ CFLAGS+= -DLOADER_FDT_SUPPORT -I${.CURDIR}/../../fdt
|
||||
.endif
|
||||
|
||||
# Pick up FDT includes
|
||||
CFLAGS+= -I${.CURDIR}/../../../../sys/contrib/libfdt/
|
||||
CFLAGS+= -I${SYSDIR}/contrib/libfdt/
|
||||
|
||||
# Pick up the bootstrap header for some interface items
|
||||
CFLAGS+= -I${.CURDIR}/../../common -I${.CURDIR}/../../.. -I.
|
||||
|
Loading…
Reference in New Issue
Block a user