From e62d0d624f3481dacab70f2db69c80c5e3a453df Mon Sep 17 00:00:00 2001 From: kamil Date: Sat, 16 Feb 2019 22:16:08 +0000 Subject: haxm: Add a verbose message if BSDSRCDIR/src is missing The kernel modules require kernel sources. --- emulators/haxm/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'emulators/haxm') diff --git a/emulators/haxm/Makefile b/emulators/haxm/Makefile index 4f1288ea033..df4af08be10 100644 --- a/emulators/haxm/Makefile +++ b/emulators/haxm/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.7 2019/02/15 00:49:08 kamil Exp $ +# $NetBSD: Makefile,v 1.8 2019/02/16 22:16:08 kamil Exp $ GITHUB_PROJECT= haxm GITHUB_TAG= 3bdfd1a39021df9b4dfe69e05a277e4e6456494a @@ -30,6 +30,10 @@ MAKE_FLAGS+= S=${BSDSRCDIR}/sys BUILD_DEFS+= BSDSRCDIR +.if !exists(${BSDSRCDIR}/src) +PKG_FAIL_REASON+= "BSDSRCDIR/src specifies non-existing directory ${BSDSRCDIR}/src" +.endif + .include "../../mk/compiler.mk" .if !empty(PKGSRC_COMPILER:Mclang) -- cgit v1.2.3