Commit Graph

113 Commits

Author SHA1 Message Date
apb 082025241e Build join(1) as a host tool. 2007-01-14 16:17:29 +00:00
agc d05a6603f6 A commit too far - don't try to build veriexecgen for just now 2006-12-20 08:22:41 +00:00
agc b1a085da3c Build veriexecgen as a host tool 2006-12-19 21:23:18 +00:00
riz 2f0a27492f Make sys/exec_elf.h and machine/elf_machdep.h available to host
tools, and allow paxctl to use them when compiled as a host
tool.  This fixes the build on MacOS X (and perhaps other platforms)
2006-11-22 15:08:47 +00:00
dsl 7e3a0208c4 Add some notes about the bogosity of some of the .WAIT stuff.
Remove a 'never had a sane effect' .WAIT from a .ORDER line.
Don't add a (probably incorrect) dependency for 'make install' since
it contradicts a .ORDER line elsewhere when .ORDER applies recursively
to child nodes.
I also think that the stuff that tries to add dependencies between
the stuff that bsd.subdir.mk generates does not DTRT at all.
I suspect that build.sh builds things in an order that avoids issues here.
2006-11-17 21:54:55 +00:00
christos 2354d57484 Add paxctl as a tool. 2006-11-10 16:50:10 +00:00
apb 50ef6180ea If PREVIOUSTOOLDIR was empty, then don't complain that it has moved.
Patch from Jukka Salmi in PR 33095.
2006-10-08 15:21:00 +00:00
freza 3d00583f2e * Fix parallel build race condition between real{all,depend} and
<bsd.subdir.mk> targets.
* No need to pass TOOLDIR to recursive cleandir in real{all,depend}.

With help from he@.
OK by tron@.
2006-08-03 17:11:05 +00:00
tron 633d50b175 Another attempt to fix the race in parallel builds. 2006-08-03 09:55:56 +00:00
tron 09f6946261 Invoking "make cleandir" with "PREVIOUSTOOLDIR" set to the previous
location will not stop recursive "make cleandir" calls. Pass the new
location instead.
2006-07-19 09:54:47 +00:00
lukem e728c9b011 gettext should .WAIT for autoconf.
(The former still doesn't seem to work on read-only source; separate issue)
2006-07-18 04:24:52 +00:00
tron c1af61f813 Avoid getting into a loop of "make cleandir" instances if the location
tool directory has been changed or wasn't recorded before.
2006-07-17 13:54:46 +00:00
tron fe4611e56b Remove ".WAIT" again because it doesn't fix the problem. 2006-07-17 11:02:02 +00:00
tron 71ee259418 Add an extra ".WAIT" to the "realall realdepend" target to make sure
it finished cleaning the tools directory in case of tool directory
mismatch before we try to rebuild the tools.
2006-07-12 10:49:11 +00:00
mrg dbf21d98fa only build lint and lint2 if MKLINT != "no". 2006-06-22 20:03:41 +00:00
gdamore d9ac053afa Make TOOL_SED, to allow using our own sed in cases where the host's version
is busted in some way.

The TOOL_SED doesn't use TIOCGWINSIZE, and has some changes to include
nbtool_config.h in a cross build environment.

Combined with some other changes (not yet committed), this allows cross
compiling m68k code on Solaris 10/amd64.
2006-06-18 05:16:41 +00:00
mrg db19e89e04 remove support for building (with) GCC 2.95. also:
- always install <stdbool.h>
- don't generate a fake one for vax / gettext.
2006-06-02 22:16:18 +00:00
mrg 843978ed3a check HAVE_GCC == 4 not USE_GCC4. 2006-05-11 01:15:32 +00:00
christos aa614dac23 Don't barf if USE_GCC4 is not defined. 2006-04-01 20:21:30 +00:00
jmc 67840cd950 Turn on gmake builds if GCC4 is enabled (and force it's install before continuing 2006-03-29 21:10:52 +00:00
dsl e94b2828f0 The realall and realdepend bit that regenerates tools needs to be marked
.MAKE otherwise the 'make' it runs has its own list of jobs instead of
using the jobserver of the enclosing make.
2006-02-03 22:07:57 +00:00
jmc 2ae0c61239 Make the tools using Makefile.disklabel wait so they don't stomp each other.
Also for now add a dependency to Makefile.disklabel so this doesn't run
3 times. (XXX this really should just be done differently)
2005-10-04 04:27:32 +00:00
dyoung 7f67833ef1 .include Makefile.disklabel in installboot, so that the
nbinclude/ header files will be installed.  Build installboot after
pax, since Makefile.disklabel uses pax to install the headers.
2005-06-12 20:24:14 +00:00
dyoung a37289db57 Make disklabel(8) and fdisk(8) into "host tools " last step: build
and install ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-disklabel,
${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-fdisk by "reaching over" to
the sources in ${NETBSDSRCDIR}/sbin/{disklabel fdisk}/.

To avoid clashes with a build-host's header files, especially on
*BSD, the host-tools versions of fdisk and disklabel search for
#includes such as disklabel.h, disklabel_acorn.h, disklabel_gpt.h,
and bootinfo.h in a new #includes namespace, nbinclude/.  That is,
they #include <nbinclude/sys/disklabel.h>, <nbinclude/machine/disklabel.h>,
<nbinclude/sparc64/disklabel.h>, instead of <sys/disklabel.h> and
such.  I have also updated the system headers to #include from
nbinclude/-space when HAVE_NBTOOL_CONFIG_H is #defined.
2005-06-12 19:46:15 +00:00
thorpej 62294d00e3 Build genassym as a host tool. Part of PR toolchain/30350 2005-05-30 15:51:36 +00:00
is d781105e1d We don't need aout2bb any longer. 2005-01-27 12:54:05 +00:00
mycroft 963654140b Add some quotes to prevent a syntax error. 2005-01-09 03:48:30 +00:00
jmc 9bfe9b9970 Convert mkboot into a full cross tool. Last hurdle for hp300 to building on
non NetBSD/bsd hosts.
2004-11-28 11:14:41 +00:00
jmc c7464d49db Convert remaining host tools for amiga to correct cross tools. Now allows
complete amiga builds on non netbsd/bsd hosts
2004-11-28 07:00:52 +00:00
jmc 9a999c376a Convert bebox's remaining host tools over to cross tools scheme. Builds to sets
w/o error now.
2004-11-25 08:09:14 +00:00
skrll bc26aea7ac Build hp700's mkboot as a host tool called nbhp700-mkboot. mkboot also
gets built and installed in a hp700 distribution.

TODO

- merge with hp300

- pick a preferred method for dealing with the elf headers.
  hp700-mkboot and prep-mkbootimage (bintuils) vs mips-elf2ecoff and
  tools/installboot
2004-07-28 09:17:31 +00:00
abs ef4ecdda5b Add sparkcrc (used to generate checksums for acorn32 bootloader sparkive)
as a host tool.
2004-06-08 21:44:46 +00:00
lukem 986979b8c9 Consistently check ${TOOLCHAIN_MISSING} against "no". 2004-01-03 14:04:27 +00:00
matt d672abfa9e Fix typo. 2003-12-11 14:52:46 +00:00
matt ca1e0d5980 Add macppc-fixcoff tool. 2003-12-11 00:29:33 +00:00
lukem 219ba062f8 Use (cd ${.CURDIR} && ${MAKE} cleandir) instead of ${MAKE} cleandir
Suggested by Ross Harvey.
2003-12-10 05:19:41 +00:00
mrg 949cd54d3a always build tools/binutils now. 2003-12-04 10:08:58 +00:00
sekiya 0ac350820d Build sgivol as a host tool when compiling for sgimips. 2003-11-08 05:02:33 +00:00
lukem af258d4e7c add mknod as a host tool 2003-10-27 00:35:37 +00:00
cl 98f3b47a3f add gdb53 as a host tool for use as a crossgdb
replaces gdb50 from toolchain on archs which use gcc3
2003-10-26 01:06:27 +00:00
lukem 130ab7336b Rework how MAKEVERBOSE operates:
*	Don't bother prefixing commands with a line of  ${_MKCMD}\
	and instead rely upon "make -s".  This is less intrusive on
	all the Makefiles than the former.  Idea from David Laight.

    *	Rename the variables use to print messages.  The scheme now is:
	    _MKMSG_FOO		Run  _MKMSG 'foo'
	    _MKTARGET_FOO	Run  _MKMSG_FOO ${.TARGET}
	From discussion with Alistair Crooks.
2003-10-21 10:01:19 +00:00
matt 10c0014b94 Add host tool version of ncdcs 2003-10-19 03:35:30 +00:00
lukem 2c30246862 MAKEVERBOSE support 2003-10-18 16:33:58 +00:00
mrg 6c17918185 - build "binutils" and "gcc" separately if USE_TOOLS_TOOLCHAIN is not set
to "yes".
- adjust dbsym/mdsetimage to look in the correct place for libbfd.
- new mknative-gcc based in toolchain/mknative
2003-07-25 16:26:51 +00:00
tron 78da845d49 Add missing "cleandir" rule. 2003-07-24 13:00:52 +00:00
lukem fe7ef256ea add stat(1) as a host tool 2003-07-20 14:06:32 +00:00
lukem 355436d550 also do the MKTOOLS and PREVIOUSTOOLDIR checks for "realdepend" 2003-07-16 13:13:42 +00:00
lukem 3fd7f6db4c * If a `PREVIOUSTOOLDIR' file doesn't exist, or its contents are not
the same as "$TOOLDIR", run "make cleandir" here first.
  This should prevent various problems where $TOOLDIR is encoded into the
  build process for various tools (lint, groff, texinfo, toolchain),
  $TOOLDIR changes, and various programs don't get rebuilt correctly.
  Should fix PR [toolchain/21988].

* Clean up how the `${MKTOOLS} == no' check is performed.

* Remove "cleantools"; it made a big assumption about the location of
  TOOLDIR that won't be correct in many cases.
2003-07-16 12:57:57 +00:00
tshiozak e376aa8308 Citrus iconv support(3)
add host tools : mkcsmapper and mkesdb
  mkcsmapper - coded character set mapping table compiler
  mkesdb - encoding scheme database compiler
2003-06-26 06:30:07 +00:00
lukem fc80f6c55f Add db(1) as a host tool 2003-05-18 08:05:32 +00:00