aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLi-Wen Hsu <lwhsu@FreeBSD.org>2021-05-27 03:33:13 +0000
committerLi-Wen Hsu <lwhsu@FreeBSD.org>2021-05-27 03:33:13 +0000
commit939745d4c3901027f4f2eb6ed327eaed4def9e45 (patch)
tree9056d4f869df086444094ff6c1aeca646280590c
parentf783260c1c4d7bacbb6d36cab209eab28da49d4e (diff)
downloadports-939745d4c3901027f4f2eb6ed327eaed4def9e45.tar.gz
ports-939745d4c3901027f4f2eb6ed327eaed4def9e45.zip
Uses/kmod: Only IGNORE when src is not available in build target
This enables to fetch and checksum on a host without src, for example, a distfile mirroring service. Reviewed by: rene Differential Revision: https://reviews.freebsd.org/D30345
-rw-r--r--Mk/Uses/kmod.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mk/Uses/kmod.mk b/Mk/Uses/kmod.mk
index 0e786d96ee7e..26400765b6b6 100644
--- a/Mk/Uses/kmod.mk
+++ b/Mk/Uses/kmod.mk
@@ -19,7 +19,7 @@ _DEBUG_KMOD= yes
IGNORE= USES=kmod takes either no arguments or 'debug'
.endif
-.if !exists(${SRC_BASE}/sys/Makefile)
+.if !exists(${SRC_BASE}/sys/Makefile) && target(build)
IGNORE= requires kernel source files in SRC_BASE=${SRC_BASE}
.endif