git: 939745d4c390 - main - Uses/kmod: Only IGNORE when src is not available in build target
Li-Wen Hsu
lwhsu at FreeBSD.org
Thu May 27 03:33:24 UTC 2021
The branch main has been updated by lwhsu:
URL: https://cgit.FreeBSD.org/ports/commit/?id=939745d4c3901027f4f2eb6ed327eaed4def9e45
commit 939745d4c3901027f4f2eb6ed327eaed4def9e45
Author: Li-Wen Hsu <lwhsu at FreeBSD.org>
AuthorDate: 2021-05-27 03:33:13 +0000
Commit: Li-Wen Hsu <lwhsu at FreeBSD.org>
CommitDate: 2021-05-27 03:33:13 +0000
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
---
Mk/Uses/kmod.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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
More information about the dev-commits-ports-all
mailing list