userboot: allow for overriding the version file location

Use ?= when assigning VERSION_FILE

Reviewed by:	imp
Obtained from:	Juniper Networks, Inc.
Differential Revision:	https://reviews.freebsd.org/D44624

(cherry picked from commit 112783ebbc313f0df73bbec8520a94aba4a4f33d)
This commit is contained in:
Stephen J. Kiernan 2024-04-03 17:22:01 -04:00 committed by Warner Losh
parent e40703a705
commit 33d1ce86ab

View file

@ -44,7 +44,7 @@ CFLAGS.main.c+= -I${SYSDIR}/contrib/openzfs/include/os/freebsd/zfs
CWARNFLAGS.main.c += -Wno-implicit-function-declaration
NEWVERSWHAT= "User boot ${LOADER_INTERP}" ${MACHINE_CPUARCH}
VERSION_FILE= ${.CURDIR}/../userboot/version
VERSION_FILE?= ${.CURDIR}/../userboot/version
.if ${LOADER_INTERP} == ${LOADER_DEFAULT_INTERP}
LINKS+= ${BINDIR}/${SHLIB_NAME} ${BINDIR}/userboot.so