aboutsummaryrefslogtreecommitdiff
path: root/lib/libsecureboot/Makefile.inc
diff options
context:
space:
mode:
authorSimon J. Gerraty <sjg@FreeBSD.org>2023-05-23 16:02:00 +0000
committerSimon J. Gerraty <sjg@FreeBSD.org>2023-05-23 16:02:00 +0000
commit75e02c458a0def1ee8054646434c738b4004de8f (patch)
tree2e5d12d589de29128080c7ec46b45917d6f0ff23 /lib/libsecureboot/Makefile.inc
parent506321178137b9d78d81bd971671e7bb51c3ecf0 (diff)
downloadsrc-75e02c458a0def1ee8054646434c738b4004de8f.tar.gz
src-75e02c458a0def1ee8054646434c738b4004de8f.zip
Diffstat (limited to 'lib/libsecureboot/Makefile.inc')
-rw-r--r--lib/libsecureboot/Makefile.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libsecureboot/Makefile.inc b/lib/libsecureboot/Makefile.inc
index 921b5e7bc1d8..325eb5fb0d27 100644
--- a/lib/libsecureboot/Makefile.inc
+++ b/lib/libsecureboot/Makefile.inc
@@ -126,7 +126,11 @@ BUILD_UTC?= ${SOURCE_DATE_EPOCH}
BUILD_UTC_FILE:= ${.PARSEDIR:tA}/${.PARSEFILE}
.endif
# you can of course set BUILD_UTC to any value you like
-BUILD_UTC?= ${${STAT:Ustat} -f %m ${BUILD_UTC_FILE}:L:sh}
+.if ${MAKE_VERSION} > 20230509
+BUILD_UTC?= ${BUILD_UTC_FILE:mtime}
+.else
+BUILD_UTC?= ${${STAT:Ustat} -L -f %m ${BUILD_UTC_FILE}:L:sh}
+.endif
# Generate ta.h containing one or more PEM encoded trust anchors in ta_PEM.
#