Changeset View
Changeset View
Standalone View
Standalone View
head/lib/libsecureboot/Makefile.inc
Show All 25 Lines | |||||
CFLAGS+= ${XCFLAGS.${.TARGET:T:R}:U} | CFLAGS+= ${XCFLAGS.${.TARGET:T:R}:U} | ||||
# we use a couple of files from ${BEARSSL}/tools | # we use a couple of files from ${BEARSSL}/tools | ||||
BRSSL_CFLAGS+= -I${BEARSSL}/tools | BRSSL_CFLAGS+= -I${BEARSSL}/tools | ||||
BRSSL_SRCS+= \ | BRSSL_SRCS+= \ | ||||
${BEARSSL}/tools/xmem.c \ | ${BEARSSL}/tools/xmem.c \ | ||||
${BEARSSL}/tools/vector.c | ${BEARSSL}/tools/vector.c | ||||
BRSSL_DEPS= \ | |||||
brf.c \ | |||||
vets.c \ | |||||
veta.c | |||||
.if ${MK_LOADER_EFI_SECUREBOOT} != "no" | |||||
BRSSL_DEPS+= \ | |||||
efi_init.c \ | |||||
efi_variables.c | |||||
.endif | |||||
# we do not need/want nested objdirs | # we do not need/want nested objdirs | ||||
OBJS_SRCS_FILTER = T R | OBJS_SRCS_FILTER = T R | ||||
SRCS+= ${BRSSL_SRCS} | SRCS+= ${BRSSL_SRCS} | ||||
# extract the last cert from a chain (should be rootCA) | # extract the last cert from a chain (should be rootCA) | ||||
_LAST_PEM_USE: .USE | _LAST_PEM_USE: .USE | ||||
▲ Show 20 Lines • Show All 87 Lines • ▼ Show 20 Lines | |||||
vesigned.o vesigned.po vesigned.pico: vse.h | vesigned.o vesigned.po vesigned.pico: vse.h | ||||
vse.h: | vse.h: | ||||
@( echo '/* Autogenerated - DO NOT EDIT!!! */'; echo; \ | @( echo '/* Autogenerated - DO NOT EDIT!!! */'; echo; \ | ||||
echo "static const char *signature_exts[] = {"; \ | echo "static const char *signature_exts[] = {"; \ | ||||
echo '${VE_SIGNATURE_EXT_LIST:@e@"$e",${.newline}@}'; \ | echo '${VE_SIGNATURE_EXT_LIST:@e@"$e",${.newline}@}'; \ | ||||
echo 'NULL };' ) > ${.TARGET} | echo 'NULL };' ) > ${.TARGET} | ||||
.for s in ${BRSSL_SRCS} brf.c vets.c veta.c | .for s in ${BRSSL_SRCS} ${BRSSL_DEPS} | ||||
.ifdef BRSSL_SED | .ifdef BRSSL_SED | ||||
$s: brssl.h | $s: brssl.h | ||||
.endif | .endif | ||||
XCFLAGS.${s:R}+= ${BRSSL_CFLAGS} | XCFLAGS.${s:R}+= ${BRSSL_CFLAGS} | ||||
.endfor | .endfor | ||||
.endif | .endif |