aboutsummaryrefslogtreecommitdiff
path: root/targets/pseudo/bootstrap-tools
Commit message (Collapse)AuthorAgeFilesLines
* META MODE: Rework [bootstrapped] tools PATH support.Bryan Drewery2015-12-011-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Support more of the toolchain from TOOLSDIR. - This also improves 'make bootstrap-tools' to pass, for example, AS=/usr/bin/as to Makefile.inc1, which will tell cross-tools to use external toolchain support and avoid building things we won't be using in the build. - Always set the PATH to contain the staged TOOLSDIR directories when not building the bootstrap targets. The previous version was only setting this at MAKE.LEVEL==0 and if the TOOLSDIR existed. Both of these prevented using staged tools that were built during the build though as DIRDEPS with .host dependencies, such as the fix for needing usr.bin/localedef.host in r291311. This is not a common tool so we must build and use it during the build, and need to be prepared to change PATH as soon as it appears. This should also fix the issue of host dependencies disappearing from Makefile.depend and then reappearing due to the start of the fresh build not having the directory yet, resulting in the tools that were built not actually being used. - Only use LEGACY_TOOLS while building in Makefile.inc1. After r291317 and r291546 there is no need to add LEGACY_TOOLS into the PATH for the pseudo/targets/toolchain build. - Because the pseudo/targets/toolchain will now build its own [clang-]tblgen, the special logic in clang.build.mk is no longer needed. - LEGACY_TOOLS is no longer used outside of targets/pseudo/bootstrap-tools so is no longer passed into the environment in its build. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=291561
* META MODE: For bootstrap-tools, don't let Makefile.inc1 build any of theBryan Drewery2015-12-011-1/+3
| | | | | | | | | | | | | toolchain. This change prevents building of [clang-]tblgen, which is unneeded due to already being a host dependency where needed for targets/pseudo/toolchain. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=291546
* META MODE: Fix bootstrap-tools after r291349.Bryan Drewery2015-11-301-2/+5
| | | | | | | | | | | | Now that OBJTOP is assumed to be proper, it needs to be overridden for the bootstrap-tools phase to ensure it is not kept as the top-level OBJTOP. Otherwise the libraries were not found during the bootstrap-tools phase. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=291540
* META MODE: Fix 'make bootstrap-tools'.Bryan Drewery2015-11-251-1/+1
| | | | | | | | | | | | | | | | | | The main problem was bitrot after elftoolchain being swapped in for the GNU toolchain. This also reworks how the list of 'host allowed' libraries is determined to only allow INTERNALLIBs, which is needed for libelftc to come in. For usr.bin/readelf use the same hack, as libelf and libdward, to bring in the needed sys/ headers for host builds. This has not yet been a problem due to readelf not being built as a host tool in buildworld. This is possible in the meta build though when building the toolchain. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=291321
* META MODE: Need to include the LEGACY_TOOLS directories into PATH.Bryan Drewery2015-11-251-1/+2
| | | | | | | | | | | This is just as Makefile.inc1 does it for these phases. Otherwise some of the build tools are not found and used properly, such as 'make-roken' in the kerberos5 build on older releases. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=291317
* META MODE: Avoid creating TESTS directories for bootstrap.Bryan Drewery2015-11-251-1/+1
| | | | | | | Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=291309
* META MODE: Don't override DESTDIR to the default when building the toolchain.Bryan Drewery2015-11-251-1/+1
| | | | | | | | | | | | | | | For this case, the normal META MODE staging logic should be used. The BSARGS having DESTDIR= is due to Makefile.inc1 overriding DESTDIR to something when appropriate. For the toolchain stage META MODE is in charge of it, not Makefile.inc1. At least include/, if staging it to the host stagedir, was impacted from this. Staging of include.host is not yet done. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=291308
* META MODE: Prefer INSTALL=tools/install.sh to lessen the need for xinstall.host.Bryan Drewery2015-11-251-4/+6
| | | | | | | | | | | This both avoids some dependencies on xinstall.host and allows bootstrapping on older releases to work due to lack of at least 'install -l' support. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=291307
* META MODE: Don't set schg flags in the stagedir for distrib-dirs.Bryan Drewery2015-11-121-3/+3
| | | | | | | | | This recently started setting /var/empty to schg after r290628. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=290719
* Don't create cookie until the command is all finished, it or the commandsBryan Drewery2015-10-011-2/+4
| | | | | | | | | after may fail. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=288462
* META_MODE: Make it easier to keep the bootstrap-tools args in sync.Bryan Drewery2015-09-261-11/+9
| | | | | | | Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=288251
* META_MODE: Remove DEP_RELDIR from Makefile.depend files.Bryan Drewery2015-09-251-2/+0
| | | | | | | | | This has not been needed since r284171 in projects/bmake. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=288226
* Merge sync of headSimon J. Gerraty2015-05-271-4/+17
| | | | Notes: svn path=/projects/bmake/; revision=283595
* Rename pkgs to more generic targets (that's what they are)Simon J. Gerraty2014-11-302-0/+76
Reviewed by: marcel Notes: svn path=/projects/bmake/; revision=275282