summaryrefslogtreecommitdiff
path: root/Makefile.inc1
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2012-01-30 20:19:28 +0000
committerWarner Losh <imp@FreeBSD.org>2012-01-30 20:19:28 +0000
commit5db254ad82aade7ce3088f7abc0f040124697b78 (patch)
treefd9d22029b25805d38f58a0ecbbe9304acb9c1de /Makefile.inc1
parent6ad1ff09cc22ac59e15b16de65a05e57918b8589 (diff)
downloadsrc-test-5db254ad82aade7ce3088f7abc0f040124697b78.tar.gz
src-test-5db254ad82aade7ce3088f7abc0f040124697b78.zip
Allow specification of build shell for the buildenv target.
Submitted by: ian lepore
Notes
Notes: svn path=/head/; revision=230786
Diffstat (limited to 'Makefile.inc1')
-rw-r--r--Makefile.inc15
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index 4f0aabaad487e..dcebc1814f082 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -19,6 +19,7 @@
# list
# TARGET="machine" to crossbuild world for a different machine type
# TARGET_ARCH= may be required when a TARGET supports multiple endians
+# BUILDENV_SHELL= shell to launch for the buildenv target (def:/bin/sh)
#
# The intended user-driven targets are:
@@ -108,6 +109,8 @@ CLEANDIR= cleandir
LOCAL_TOOL_DIRS?=
+BUILDENV_SHELL?=/bin/sh
+
CVS?= cvs
CVSFLAGS?= -A -P -d -I!
SVN?= svn
@@ -558,7 +561,7 @@ buildenvvars:
buildenv:
@echo Entering world for ${TARGET_ARCH}:${TARGET}
- @cd ${.CURDIR} && env ${WMAKEENV} sh || true
+ @cd ${.CURDIR} && env ${WMAKEENV} ${BUILDENV_SHELL} || true
TOOLCHAIN_TGTS= ${WMAKE_TGTS:N_depend:Neverything:Nbuild32}
toolchain: ${TOOLCHAIN_TGTS}