Makefile.inc1: Enable requesting the universe toolchain.
authorJohn Baldwin <jhb@FreeBSD.org>
Tue, 1 Aug 2023 21:01:57 +0000 (14:01 -0700)
committerJohn Baldwin <jhb@FreeBSD.org>
Tue, 1 Aug 2023 21:01:57 +0000 (14:01 -0700)
commit1c02497648bdf61a43dd271f6f9171a037046d8e
tree4fd80ef3519d4020a47dad2c768beedb03224e34
parentcf0a543f1f93f95a1c452d710c67ba42a752a2b1
Makefile.inc1: Enable requesting the universe toolchain.

make universe builds a cross toolchain under HOST_OBJTMP/tmp via the
universe-toolchain target.  However, doing a plain 'make buildworld'
after a universe/tinderbox run (e.g. to reproduce a failure and test
the fix for it), will try to build a new cross toolchain under
OBJTMP/tmp which can be tedious.  This commit adds a make variable
(UNIVERSE_TOOLCHAIN) which can be used similar to CROSS_TOOLCHAIN to
request an external toolchain.  If this variable is set (value doesn't
matter), the the universe toolchain is used as an external toolchain.

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D40777
Makefile.inc1
Makefile.libcompat