diff options
author | Alan Somers <asomers@FreeBSD.org> | 2020-08-11 22:25:20 +0000 |
---|---|---|
committer | Alan Somers <asomers@FreeBSD.org> | 2020-08-11 22:25:20 +0000 |
commit | a0198ed45c5cc2471f6a032a1711f32ca8028e7e (patch) | |
tree | 7fc5ff9fc5d71e1da589c0f3002ee137cb6b849e /sysutils/openzfs-kmod | |
parent | 44b973da90df6e324b69aecef949d91dc9080a37 (diff) | |
download | ports-a0198ed45c5cc2471f6a032a1711f32ca8028e7e.tar.gz ports-a0198ed45c5cc2471f6a032a1711f32ca8028e7e.zip |
sysutils/openzfs-kmod: fix the build with a nonstandard SRC_BASE
ports that need FreeBSD's src code should check $SRC_BASE rather than assume
/usr/src. For example, it should be possible to build openzfs-kmod with a
command like this:
env SRC_BASE=$HOME/freebsd/base/head make
Approved by: freqlabs (maintainer)
MFH: 2020Q3
Sponsored by: Axcient
Differential Revision: https://reviews.freebsd.org/D26033
Notes
Notes:
svn path=/head/; revision=544720
Diffstat (limited to 'sysutils/openzfs-kmod')
-rw-r--r-- | sysutils/openzfs-kmod/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sysutils/openzfs-kmod/Makefile b/sysutils/openzfs-kmod/Makefile index f9f4177fc485..9dfc06085de2 100644 --- a/sysutils/openzfs-kmod/Makefile +++ b/sysutils/openzfs-kmod/Makefile @@ -32,6 +32,8 @@ GCOV_DESC= Build kernel module with GCOV support (Requires gcc) IGNORE= needs FreeBSD 12/13 with AES-CCM support .endif +MAKE_OPTS+= SYSDIR=${SRC_BASE}/sys + .if ${PORT_OPTIONS:MDEBUG} MAKE_OPTS+= WITH_DEBUG=true PLIST_FILES+= ${KMODDIR}/${KMODTARGET}.debug |