1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-21 04:06:46 +00:00

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
This commit is contained in:
Li-Wen Hsu 2021-05-27 11:33:13 +08:00
parent f783260c1c
commit 939745d4c3
No known key found for this signature in database
GPG Key ID: 8D7BCC7D012FD37E

View File

@ -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