summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authormartin <martin@NetBSD.org>2021-01-28 10:36:27 +0000
committermartin <martin@NetBSD.org>2021-01-28 10:36:27 +0000
commitfea76cfe4d339c966dc0b0af1c0f0f9769acbec9 (patch)
tree20fb1362146fe4135359b235d82d09e3927c6b29 /build.sh
parent58a44ae4c8f5273b9d65a2982cda93688375292e (diff)
Modify the generated make wrapper to avoid complaints about
non-writable OBJDIR from make (which happen a lot when cross-building kernels re-using a makewrapper build for some other user).
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/build.sh b/build.sh
index 042c8c4a1a7..fefce6e70e7 100755
--- a/build.sh
+++ b/build.sh
@@ -1,5 +1,5 @@
#! /usr/bin/env sh
-# $NetBSD: build.sh,v 1.345 2020/09/20 10:29:05 mrg Exp $
+# $NetBSD: build.sh,v 1.346 2021/01/28 10:36:27 martin Exp $
#
# Copyright (c) 2001-2011 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -1464,6 +1464,7 @@ parseoptions()
export MAKEFLAGS MACHINE MACHINE_ARCH
setmakeenv USETOOLS "yes"
setmakeenv MAKEWRAPPERMACHINE "${makewrappermachine:-${MACHINE}}"
+ setmakeenv MAKE_OBJDIR_CHECK_WRITABLE no
}
# sanitycheck --
@@ -1970,7 +1971,7 @@ createmakewrapper()
eval cat <<EOF ${makewrapout}
#! ${HOST_SH}
# Set proper variables to allow easy "make" building of a NetBSD subtree.
-# Generated from: \$NetBSD: build.sh,v 1.345 2020/09/20 10:29:05 mrg Exp $
+# Generated from: \$NetBSD: build.sh,v 1.346 2021/01/28 10:36:27 martin Exp $
# with these arguments: ${_args}
#