mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-26 13:05:18 +01:00
Create a new target 'buildenvvars'. This target reports the build
environment for cross building (the same one you'd get interactively in make buildenv). This cannot be a simple make -f Makefile.inc1 -V WMAKEENV because in PATH is not set correctly unless one takes a trip through the Makefile/Makefile.inc1 indirection, the logic of which is too large to reproduce outside of Makefiles.
This commit is contained in:
parent
5f467a3bb6
commit
621e4ae168
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=159349
6
Makefile
6
Makefile
@ -68,9 +68,9 @@
|
||||
# developer convenience only. They are intentionally not documented and
|
||||
# completely subject to change without notice.
|
||||
#
|
||||
TGTS= all all-man buildenv buildkernel buildworld check-old checkdpadd \
|
||||
clean cleandepend cleandir delete-old delete-old-libs depend \
|
||||
distribute distributeworld distrib-dirs distribution doxygen \
|
||||
TGTS= all all-man buildenv buildenvvars buildkernel buildworld check-old \
|
||||
checkdpadd clean cleandepend cleandir delete-old delete-old-libs \
|
||||
depend distribute distributeworld distrib-dirs distribution doxygen \
|
||||
everything hierarchy install installcheck installkernel \
|
||||
installkernel.debug reinstallkernel reinstallkernel.debug \
|
||||
installworld kernel-toolchain libraries lint maninstall \
|
||||
|
@ -468,6 +468,15 @@ WMAKE_TGTS+= build32
|
||||
buildworld: ${WMAKE_TGTS}
|
||||
.ORDER: ${WMAKE_TGTS}
|
||||
|
||||
|
||||
#
|
||||
# We need to have this as a target because the indirection between Makefile
|
||||
# and Makefile.inc1 causes the correct PATH to be used, rather than a
|
||||
# modification of the current environment's PATH.
|
||||
#
|
||||
buildenvvars:
|
||||
@echo ${WMAKEENV}
|
||||
|
||||
buildenv:
|
||||
@echo Entering world for ${TARGET_ARCH}:${TARGET}
|
||||
@cd ${.CURDIR} && env ${WMAKEENV} sh || true
|
||||
|
Loading…
Reference in New Issue
Block a user