Commit Graph

438 Commits

Author SHA1 Message Date
lukem ddff99b7f4 rework to use the newer _MKMSGCREATE (et al) macros 2003-10-19 04:45:01 +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
dbj 3c72899f34 add -O2 to HOST_CFLAGS on Darwin since adding "-no-cpp-precomp" there blows
it away otherwise
2003-10-10 21:49:59 +00:00
thorpej 9a2255650e Set EXTRA_PARTS to a null value, like we do with LIBGCC. This prevents
the tool build from attempting to build the GCC crtstuff before the
target include files are installed.  PR toolchain/23112.

(Note: You would not see the bad behavior described in the PR unless
your .mk files were hacked to configure the toolchain target as
*-*-netbsd*2.0.)
2003-10-10 01:18:54 +00:00
lukem 1c33b4e6a4 Overhaul MBR handling (part 1):
<sys/bootblock.h>:
    *	Added definitions for the Master Boot Record (MBR) used by
	a variety of systems (primarily i386), including the format
	of the BIOS Parameter Block (BPB).
	This information was cribbed from a variety of sources
	including <sys/disklabel_mbr.h> which this is a superset of.

	As part of this, some data structure elements and #defines
	were renamed to be more "namespace friendly" and consistent
	with other bootblocks and MBR documentation.
	Update all uses of the old names to the new names.

<sys/disklabel_mbr.h>:
    *	Deprecated in favor of <sys/bootblock.h> (the latter is more
	"host tool" friendly).

amd64 & i386:
    *	Renamed /usr/mdec/bootxx_dosfs to /usr/mdec/bootxx_msdos, to
	be consistent with the naming convention of the msdosfs tools.

    *	Removed /usr/mdec/bootxx_ufs, as it's equivalent to bootxx_ffsv1
	and it's confusing to have two functionally equivalent bootblocks,
	especially given that "ufs" has multiple meanings (it could be
	a synonym for "ffs", or the group of ffs/lfs/ext2fs file systems).

    *	Rework pbr.S (the first sector of bootxx_*):
	    +	Ensure that BPB (bytes 11..89) and the partition table
		(bytes 446..509) do not contain code.
	    +	Add support for booting from FAT partitions if BOOT_FROM_FAT
		is defined.  (Only set for bootxx_msdos).
	    +	Remove "dummy" partition 3; if people want to installboot(8)
		these to the start of the disk they can use fdisk(8) to
		create a real MBR partition table...
	    +	Compile with TERSE_ERROR so it fits because of the above.
		Whilst this is less user friendly, I feel it's important
		to have a valid partition table and BPB in the MBR/PBR.

    *	Renamed /usr/mdec/biosboot to /usr/mdec/boot, to be consistent
	with other platforms.

    *	Enable SUPPORT_DOSFS in /usr/mdec/boot (stage2), so that
    	we can boot off FAT partitions.

    *	Crank version of /usr/mdec/boot to 3.1, and fix some of the other
	entries in the version file.

installboot(8) (i386):
    *	Read the existing MBR of the filesystem and retain the BIOS
    	Parameter Block (BPB) in bytes 11..89 and the MBR partition
	table in bytes 446..509.  (Previously installboot(8) would
	trash those two sections of the MBR.)

mbrlabel(8):
    *	Use sys/lib/libkern/xlat_mbr_fstype.c instead of homegrown code
	to map the MBR partition type to the NetBSD disklabel type.


Test built "make release" for i386, and new bootblocks verified to work
(even off FAT!).
2003-10-08 04:25:43 +00:00
dbj 2fe0adbe32 set HOST_CFLAGS+= -no-cpp-precomp when configuring gnu software on Darwin 2003-10-07 14:12:36 +00:00
seb e969ce2f8d Adjust pathnames to {md{4,5},sha1}.h after their removal from
src/include.

Approved by mrg@
2003-10-01 11:59:06 +00:00
uwe 3f02ec91cd If SIZE_MAX is not defined, but SIZE_T_MAX is defined (e.g. FreeBSD),
define SIZE_MAX as SIZE_T_MAX.
2003-08-27 18:33:26 +00:00
mrg e649b75296 for mknative, make sure we look in the target's /lib directly as the
symlinks in the /usr/lib directory point (absolutely) to "/lib/libfoo.so",
which ends up being quite invalid when target!=host...
2003-08-23 10:07:25 +00:00
mrg 631719db70 don't want auto-build.h anymore 2003-08-22 00:24:46 +00:00
lukem 14ba3a8126 Add INSTALL_INFO=${TOOL_INSTALL_INFO:Q} to MAKE_ARGS.
Noted by Alan Barrett on current-users@.
2003-08-22 00:12:18 +00:00
mrg 91b707be74 force long long support. use -isystem* for CCADDFLAGS 2003-08-21 23:53:12 +00:00
jmc d9556f9ecc Fix 2 remaining places items are depending on execute permissions coming out
from a cvs checkout on scripts.
2003-08-11 19:26:04 +00:00
lukem a93ea220fc Rework how dependency generation is performed:
* DPSRCS contains extra dependencies, but is _NOT_ added to CLEANFILES.
  This is a change of behaviour.  If a Makefile wants the clean semantics
  it must specifically append to CLEANFILES.
  Resolves PR toolchain/5204.

* To recap: .d (depend) files are generated for all files in SRCS and DPSRCS
  that have a suffix of: .c .m .s .S .C .cc .cpp .cxx

* If YHEADER is set, automatically add the .y->.h to DPSRCS & CLEANFILES

* Ensure that ${OBJS} ${POBJS} ${LOBJS} ${SOBJS} *.d  depend upon ${DPSRCS}

* Deprecate the (short lived) DEPENDSRCS


Update the various Makefiles to these new semantics; generally either
adding to CLEANFILES (because DPSRCS doesn't do that anymore), or replacing
specific .o dependencies with DPSRCS entries.

Tested with "make -j 8 distribution" and "make distribution".
2003-08-01 17:03:41 +00:00
mrg e222fd4230 we need config.h an another version of gthr-default.h 2003-08-01 02:44:55 +00:00
mrg be15669373 fix a typo in previous 2003-07-30 05:10:06 +00:00
mrg ad744ff2f6 libiberty/config.h needs to become per-arch. 2003-07-30 05:06:28 +00:00
fredb b92132145c Must add "configure.lineno" to CLEANFILES after updating to autoconf 2.57. 2003-07-29 19:25:02 +00:00
mrg 78ef677a68 pass --enable-threads to ./configure 2003-07-29 06:48:14 +00:00
mrg 1372911937 fix a bug in previous - two $'s are bad 2003-07-28 02:35:43 +00:00
mrg 4ae0f1a6cb add another transform for libobjc3 2003-07-28 01:29:01 +00:00
mrg 6c4963a6f9 document how to generate GCC3.3 bootstrap info with mknative 2003-07-27 15:00:52 +00:00
mrg efee205c6f don't configure with multilibs when doing mknative 2003-07-27 14:44:00 +00:00
lukem deeae012af If HAVE_SYS_ENDIAN_H, pull in <sys/endian.h>. Fixes build.sh on FreeBSD 5.1.
Fix from Grant Beattie <grant@>
2003-07-27 07:56:37 +00:00
salo 22a0ae4298 netbsd.org->NetBSD.org 2003-07-26 20:17:31 +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
atatat cdea39b56a Regen for host-tool-ified stat 2003-07-25 03:22:39 +00:00
atatat d5fb781871 More properly host-tool-ify stat 2003-07-25 03:21:15 +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 d64f87e97a Consistently check MK* variables against "no"
(e.g.,  ${MKFOO} != "no"  instead of  ${MKFOO} == "yes" )
2003-07-18 16:18:28 +00:00
fredb 93dcb2eb39 Regenerate with autoconf 2.57. 2003-07-18 13:51:44 +00:00
fredb c0326dd8e8 As discussed briefly on tech-toolchain, AIX doesn't have "u_long",
so add a check for that. Partial fix for PR toolchain/22177.
2003-07-18 13:45:15 +00:00
lukem f134f3dc38 Add MKUNPRIVED; if not no has the same semantics as if UNPRIVED was defined.
Replace defined(UNPRIVED) tests with ${MKUNPRIVED} != "no"

Add MKUPDATE; if not no has the same semantics as if UPDATE was defined.
Replace defined(UPDATE) tests with ${MKUPDATE} != "no"

Improve documentation for these and other make flags.
2003-07-18 08:26:01 +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
lukem 001c68bd94 Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO".  The new variables are:
	TOOL_ASN1_COMPILE  TOOL_CAP_MKDB  TOOL_CAT  TOOL_CKSUM  TOOL_COMPILE_ET
	TOOL_CONFIG  TOOL_CRUNCHGEN  TOOL_CTAGS  TOOL_DB  TOOL_EQN  TOOL_FGEN
	TOOL_GENCAT  TOOL_GROFF  TOOL_HEXDUMP  TOOL_INDXBIB  TOOL_INSTALLBOOT
	TOOL_INSTALL_INFO  TOOL_M4  TOOL_MAKEFS  TOOL_MAKEINFO  TOOL_MAKEWHATIS
	TOOL_MDSETIMAGE  TOOL_MENUC  TOOL_MKCSMAPPER  TOOL_MKESDB
	TOOL_MKLOCALE  TOOL_MKMAGIC  TOOL_MKTEMP  TOOL_MSGC  TOOL_MTREE
	TOOL_PAX  TOOL_PIC  TOOL_PREPMKBOOTIMAGE  TOOL_PWD_MKDB  TOOL_REFER
	TOOL_ROFF_ASCII  TOOL_ROFF_DVI  TOOL_ROFF_HTML  TOOL_ROFF_PS
	TOOL_ROFF_RAW  TOOL_RPCGEN  TOOL_SOELIM  TOOL_SUNLABEL  TOOL_TBL
	TOOL_UUDECODE  TOOL_VGRIND  TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
	TOOL_FOO?=	foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
	TOOL_FOO=	${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.
2003-07-10 10:33:58 +00:00
gson 60359fcd1e When building with "-j 2", linking the "file" tool failed because
libmagic.la hadn't been built yet.  Work around by adding a .NOTPARALLEL
target.
2003-07-08 03:41:34 +00:00
martin 747251c7ff Re-enable the build/Makefile fixup so that parallel builds work again. 2003-07-05 22:05:28 +00:00
uwe 5df0174a92 Pass MAKEINFO=${MAKEINFO:Q} via MAKE_ARGS so that nbmakeinfo is used
to build the groff info.  Caught by building on FreeBSD.  Copy-pasted
from tools/toolchain/Makefile.
2003-06-30 23:26:36 +00:00
wiz dd6f42c68a Update for groff-1.19. 2003-06-30 18:14:28 +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
wiz 4d5864791d Use "nbnroff" instead of "nroff". 2003-06-14 17:57:26 +00:00
wiz e15134f39c Add nbnroff as host tool. 2003-06-14 17:18:16 +00:00
christos a3d7c5fa32 No sources == error again. 2003-06-11 13:20:38 +00:00
christos 2a8b4af820 for now, make the fact that no sources were specified a warning. 2003-06-10 21:34:02 +00:00
christos b09683b289 Do -isystem differently. 2003-06-10 20:40:39 +00:00
christos 1c6e138be1 understand -isystem too if compiler gcc/g++ 2003-06-10 19:51:45 +00:00
christos 33113de8c0 - shift; shift -> shift 2
- understand and do something reasonable with -nostdinc*
2003-06-06 17:33:32 +00:00
christos 09f2dcf67a don't pass CFLAGS and LDFLAGS to configure. mkdep does not give a shit. 2003-06-06 17:30:25 +00:00
uwe 0bbb587407 Add atoll(3) to libnbcompat. We need it when building target's gcc
for a 64-bit target on a 32-bit host.

NB: There seems to be a bug in either gcc itself or the way we import
it, b/c the incorrect #define HAVE_ATOLL is picked from (e.g. for
sparc64) gnu/usr.bin/gcc/arch/sparc64/auto-host.h - so when gen*
auxilary (host) programs are built in gnu/usr.bin/gcc/backend, they
incorrectly pick-up target's HAVE_ATOLL.

For now providing atoll(3) in libnbcompat is a simple and sufficient
workaround.
2003-06-03 03:16:48 +00:00
lukem fc80f6c55f Add db(1) as a host tool 2003-05-18 08:05:32 +00:00
dbj 41b9cfff20 use reachover relative paths in compat include files instead of
symlinking ufs include files into installboot and makefs tool objdirs
reviewed by lukem and thorpej on tech-toolchain
2003-05-14 00:30:26 +00:00
bjh21 4be7a2dcf3 Add a new feature-test macro, _NETBSD_SOURCE. If this is defined
by the application, all NetBSD interfaces are made visible, even
if some other feature-test macro (like _POSIX_C_SOURCE) is defined.
<sys/featuretest.h> defined _NETBSD_SOURCE if none of _ANSI_SOURCE,
_POSIX_C_SOURCE and _XOPEN_SOURCE is defined, so as to preserve
existing behaviour.

This has two major advantages:
+ Programs that require non-POSIX facilities but define _POSIX_C_SOURCE
  can trivially be overruled by putting -D_NETBSD_SOURCE in their CFLAGS.
+ It makes most of the #ifs simpler, in that they're all now ORs of the
  various macros, rather than having checks for (!defined(_ANSI_SOURCE) ||
  !defined(_POSIX_C_SOURCE) || !defined(_XOPEN_SOURCE)) all over the place.

I've tried not to change the semantics of the headers in any case where
_NETBSD_SOURCE wasn't defined, but there were some places where the
current semantics were clearly mad, and retaining them was harder than
correcting them.  In particular, I've mostly normalised things so that
_ANSI_SOURCE gets you the smallest set of stuff, then _POSIX_C_SOURCE,
_XOPEN_SOURCE and _NETBSD_SOURCE in that order.

Tested by building for vax, encouraged by thorpej, and uncontested in
tech-userlevel for a week.
2003-04-28 23:16:11 +00:00
pooka 8daae68793 build file(1) as a host tool (for compiling magic files) 2003-03-25 23:43:49 +00:00
pooka cfb2c17888 FreeBSD #defines putc_unlocked in stdio.h, so guard against that also 2003-03-21 14:40:26 +00:00
grant fc135e74ba if target is not a symlink, silently succeed rather than failing with
EINVAL.

on systems which don't have lch{flags,own,mod}, flags, ownership and
modes of symlinks is meaningless, anyway.

ok'd by christos.
2003-03-19 09:26:38 +00:00
thorpej d2809fcf8a Put -X into MAKEFLAGS on FreeBSD and Mac OS X; they have a small ARG_MAX. 2003-03-14 05:22:50 +00:00
thorpej 241ed6a4c1 Add a putc_unlocked(). 2003-03-14 03:38:42 +00:00
thorpej 1d994487b3 Fix the socklen_t test; we need to explcitly list the headers we want
included for that test.
2003-03-13 16:27:03 +00:00
thorpej 3550b00b45 Move -no-cpp-precomp logic to defs.mk. 2003-03-13 05:15:49 +00:00
thorpej 8b1707fd43 Disable pre-compiled headers on Darwin. 2003-03-13 05:00:28 +00:00
thorpej c0d5461540 Pass -no-cpp-precomp to the C preprocessor on Darwin; our use of
libnbcompat is incompatible with pre-compiled headers (which the
compiler correctly detects, but warns about profusely).
2003-03-13 04:43:37 +00:00
thorpej acd9c2da10 Allow "-no-cpp-precomp", which disables use of pre-compiled headers
on Mac OS X.
2003-03-13 04:40:45 +00:00
thorpej 72ec5d6a9c Check for sys/socket.h and socklen_t. 2003-03-13 04:30:39 +00:00
thorpej ae754e0c76 Make hexdump a host tool. 2003-03-07 01:14:30 +00:00
mrg 94594f5e48 extract the bintils VERSION.
call the new make targets "native-gcc", etc.
2003-03-05 06:17:17 +00:00
mrg 266fa92cbc mknative:
- get man_MANS and TEXINFO from binutils/doc/Makefile now, not
	binutils/Makefile, as all the binutils docs moved.
both:
	- add new "mknative-gcc", "mknative-binutils", and "mknative-gdb"
	targets / mknative options to allow regeneration of just one part
	of the toolchain.
2003-03-05 05:28:29 +00:00
mrg 5e2559a4cc update for binutils 2.13.2.1, and a few other changes... 2003-03-01 13:09:10 +00:00
mrg 0e5a502526 update for binutils 2.13.2.1, and a few other changes... 2003-03-01 13:09:09 +00:00
lukem 27c21a917d replace DIST with GNUHOSTDIST, and don't unconditionally define it
in Makefile.gnuhost (use ?= instead of =, to allow overriding)
2003-02-07 01:52:51 +00:00
uwe 4eb408dcd9 Avoid cgetcap &co prototypes conflicting with those provided by the host.
With this change we can cross-compile on FreeBSD 4.x.
2003-01-31 20:50:29 +00:00
uwe 2cb7caac8e Build with -DNO_S_COMMAND. We don't need to set the in-core label
when we are a host tool.  This avoids a conflict with inline dkcksum()
in FreeBSD's <sys/disklabel.h>.
2003-01-27 01:25:07 +00:00
uwe af823cea6c Provide __SCCSID() needed by pwd_mkdb. 2003-01-27 01:17:47 +00:00
lukem eb77ade624 enable sunlabel... 2002-12-21 12:56:08 +00:00
thorpej 7059a54da4 Include <sys/types.h> before <grp.h>; Mac OS 10.2.2 needs this. 2002-12-16 00:35:00 +00:00
thorpej bd339b41ac Include <sys/types.h> before including <dirent.h>; Mac OS 10.2.2
needs this.
2002-12-16 00:31:59 +00:00
thorpej c4a72b6436 Centralize the definition of the tool name prefix (i.e. "nb") into
bsd.own.mk, as the _TOOL_PREFIX variable.
2002-12-08 20:19:56 +00:00
lukem 90af8ac79d Tweak dependencies so that defs.mk depends upon config.cache, and
config.cache depends upon 'include/.stamp configure config.h.in defs.mk.in'
and runs configure.  Forcebly remove config.cache before running configure.

This change means that config.cache is (still) retained between "make clean"
(but not "make cleandir") runs, but is flushed if configure or config.h.in
is changed, as the cache may contain incorrect information in that case.
2002-12-04 23:27:54 +00:00
lukem c6f399207c add check back for util.h; needed on some foreign systems 2002-11-30 21:43:27 +00:00
lukem b1e79510cf - Migrate fparseln(3) from libutil to libc, where it should have been in
the first place...
- Bump libutil major (to 7.0) and libc minor (to 12.91).
2002-11-30 03:04:44 +00:00
lukem 336730e201 replace missing strsuftoll(3) 2002-11-29 13:00:22 +00:00
christos 1391513680 PR/18733: Jed Davis: define _PATH_DEFTAPE; pax needs it. 2002-10-20 00:42:20 +00:00
lukem dba0caccee Implement replacements for lchflags(), lchmod(), and lchown(),
which first lstat(2) the target and return EINVAL if it's a symlink,
and then call ch{flags,mod,own} as appropriate.
Removes the need for hokey code inside the tools themselves...
2002-10-08 00:28:36 +00:00
briggs 4fb03019c2 Just check for poll.h, don't fail if it's not present. 2002-10-07 18:12:36 +00:00
lukem 8b42f7b9d9 Provide strtoll() in libnbcompat.
Should fix relevant build issue on HP-UX and MacOS X hosts.
2002-10-06 12:09:34 +00:00
lukem c61581112f complete check for lchflags 2002-10-06 01:25:58 +00:00
lukem cb48eb573f check for lchflags 2002-10-05 04:13:30 +00:00
thorpej 840b4a3a1c Check for <poll.h>. If it is not found, -DUSE_SELECT=1. 2002-10-04 22:21:57 +00:00
thorpej bcb4b867fe Check for <poll.h> and poll(2). 2002-10-04 22:10:10 +00:00
lukem b9472f8280 Fix from Giles Lean:
HP-UX has MAP_ANONYMOUS but not MAP_ANON
2002-09-30 00:39:21 +00:00
lukem 6a507832d7 It's "HP-UX" not "HP/UX". (Thanks Giles). 2002-09-29 07:05:28 +00:00
lukem ab956106b3 preliminary HP/UX notes from Giles; it needs zlib.
(as Solaris, Linux and HP/UX all mention they need zlib and it should
be part of libnbcompat, maybe this is a hint for us to get a move on
and do that :)
2002-09-22 01:26:39 +00:00
thorpej 771b8c8404 Change the TOOLCHAIN_MISSING from == "no" to != "yes", to be consistent
with the other tests of this variable.
2002-09-19 17:13:01 +00:00
matt 5e29f1c268 Since TOOLCHAIN_MISSING is defined in bsd.own.mk, it can never be undefined.
Instead, make sure the value of it is "no"
2002-09-19 01:23:24 +00:00
thorpej 3b08abd277 * Eliminate the USE_NEW_TOOLCHAIN variable. Instead, split it into
two variables:

  TOOLCHAIN_MISSING -- set to "yes" on platforms for which there is
  no working in-tree toolchain (hppa, ns32k, sh5, x86_64).

  EXTERNAL_TOOLCHAIN -- if defined by the user, points to the root of
  an external toolchain (e.g. /usr/local/gnu).  This enables the cross-build
  framework even for TOOLCHAIN_MISSING platforms.

  If TOOLCHAIN_MISSING is set to "yes", MKGDB, MKBFD, and MKGCC are all
  unconditionally set to "no", since the bits are not there to build.

  If EXTERNAL_TOOLCHAIN is set, MKGCC is unconditionally set to "no",
  since the external toolchain's compiler is not in-sync with the
  in-tree compiler support components (e.g. libgcc).

* Set MACHINE_CPU much earlier in bsd.own.mk, so that more tests in
  that file can use it.
2002-09-17 23:18:25 +00:00
briggs 482480a39e Note that RedHat 7.3 hosts successfully as of today with the caveat that
LANG=C must be in the environment.
2002-09-16 18:13:04 +00:00
briggs a94d82e6f9 Always use NetBSD's fts(3) in compat builds. Some systems (notably
Red Hat 7.3, at least) do not have fts(3) implementations that work
correctly with -D_FILE_OFFSET_BITS=64.
2002-09-16 04:10:36 +00:00
thorpej a25cf0dfe0 Patch host-mkdep with the working host shell. 2002-09-15 17:23:01 +00:00
thorpej 54a74239f1 Patch lorder with the host's working shell. Idea from Chris Demetriou. 2002-09-15 17:05:26 +00:00
thorpej 6d82557c32 Add a HOST_BSHELL make var which contains the path to the working
shell.
2002-09-15 16:46:23 +00:00
chris 41f1477926 We need binstall to be installed, before attempting to use it to install mktemp. 2002-09-14 23:34:16 +00:00
thorpej dc71a69c6a Descend into mktemp. 2002-09-14 18:00:22 +00:00
thorpej d92d489497 * Check for mkstemp() and mkdtemp(), and build them into libnbcompat
if necessary.
* mktemp is now a host-tool, so nuke the lame script (which isn't even
  properly installed during the tools bootstrap).
2002-09-14 04:30:27 +00:00
thorpej 076280c9ac Re-add mktemp as a host tool; it is used in more places than Ben
thought.
2002-09-14 04:26:03 +00:00
bjh21 82a564def5 Add __restrict to the set of tokens we #define away: our glob.h uses it. 2002-09-13 23:35:34 +00:00
thorpej 44390285d1 Update Solaris section (again). 2002-09-13 23:35:32 +00:00
thorpej 0cbefac8eb Be more conservative with quoting, to play nice with /bin/sh on Solaris 8. 2002-09-13 19:55:52 +00:00
thorpej f54ca60093 * Always include the NetBSD glob(3) in libnbcompat, as the host
tools use some features of glob(3) that are not available on
  all systems.
* Always include the NetBSD vis(3) in libnbcompat, since vis(3)
  is not really standardized, and the vis(3) present on some systems
  is different from ours.
* Always include the NetBSD MD2, MD4, MD5, RMD160, and SHA1 implementations
  in libnbcompat.  The host tools use features of the NetBSD versions
  which aren't present on all systems that include those functions.
* Add a check for random(3) -- the Heimdal host tools want it.
* Add a check for termios.h -- the Heimdal host tools want it.
* Update the README to indicate the current state of building the
  host tools on Solaris 8 (for SPARC).
2002-09-13 19:07:01 +00:00
thorpej 5aa3fde6fa Delete a few things that appear in gcc 3.x's CPP output. 2002-09-13 03:41:54 +00:00
pooka c695034447 work around FreeBSD defining user_from_uid() in stdlib.h 2002-07-03 17:17:04 +00:00
pooka d8c01a3d2a Fine-grain checking somewhat:
* check for user_from_uid() in addition to pwcache_userdb()
* check for svis() in addition to vis()
2002-07-03 17:16:26 +00:00
veego bd46e08c93 The last commit wasn't tested. Add a missing \ 2002-06-12 19:59:55 +00:00
thorpej fe57329435 Don't build toolchain bits for hppa, for now. 2002-06-12 19:09:37 +00:00
mason 7e7e806c7e Add cat(1) as a host tool. 2002-06-10 18:32:28 +00:00
mason f8af64685c fix minor typo -> s/lokcing/locking/ 2002-06-07 21:13:55 +00:00
thorpej 1f5f295af6 Don't try to build toolchain bits for ns32k. 2002-06-05 02:21:49 +00:00
matt 9a6861e363 Make Solaris 8 happy: use ln -f -s instead of ln -fs 2002-05-31 05:50:03 +00:00
bjh21 bf9ec67e38 Add fgen as a host tool, used for sys/arch/sparc/bootblk. 2002-05-28 21:56:05 +00:00
thorpej e1b93f4526 Don't try to extract gdbserver configury; we don't yet support gdbserver. 2002-05-20 15:19:09 +00:00
lukem 3e591f18cf gratuitious comment addition 2002-05-18 05:59:23 +00:00
bjh21 4eb51f77ed Use the target disklabel_mbr.h, since it just describes data structures for
use on the target.  This gets prep-mkbootimage to compile under Linux.
2002-05-12 12:30:10 +00:00
lukem 2bd907065c remove now-unnecessary sparc-installboot 2002-05-07 12:12:53 +00:00
kleink c30b41cae0 On prep, descend into prep-mkbootimage. 2002-05-03 20:35:46 +00:00
kleink 2a3e2f7c04 Build prep's mkbootimage as a host tool, called nbprep-mkbootimage. 2002-05-03 20:33:53 +00:00
bjh21 2b918abe52 I believe I've fixed nbmake's dependency on /bin/sh. 2002-04-28 22:28:38 +00:00
bjh21 0080fde9da Define _PATH_BSHELL to the first "sh" on the PATH when bootstrapping
nbmake.  This should remove our dependency on a nobbled /bin/sh on
Solaris.
2002-04-27 16:36:30 +00:00
lukem 8c8b91af6a todd forgot to remove this one in his HAVE_CONFIG_H rototill... 2002-04-25 22:46:35 +00:00
tv 4887cf3412 HAVE_CONFIG_Hize. Also get *_boot.h from "../../sys/" when HAVE_CONFIG_H,
rather than creating more stubs.
2002-04-25 18:11:53 +00:00
bjh21 d68e9d36ad Check for the location of sh on the path, and use that to construct the
value for _PATH_DEFSHELLDIR.  In theory, _PATH_DEFSHELLDIR will also be
used to find csh, but ".SHELL csh" shouldn't be used anywhere in our source
tree, and this make shouldn't be used for other things.

This should cause nbmake to use the right shell for most purposes when
cross-compiling from Solaris.
2002-04-24 21:20:08 +00:00
bjh21 a29c20f490 Remove an "eval" from docmd, in order to stop it over-evaluating things
(and losing quotes from DEFS).
2002-04-24 21:17:24 +00:00
bjh21 a3112ce1b9 Rather than hardcoding two possible locations of the POSIX shell (for
Solaris and everything else), set _PATH_BSHELL to the first occurrence of
"sh" on the path.  This should be rather more portable.
2002-04-24 19:41:58 +00:00
bjh21 6d3e84cc85 src/tools/dbsym has been buildable on non-NetBSD systems for some time. 2002-04-24 16:28:55 +00:00
lukem 4ca5cf63d9 Add shim dev/sun/sun_boot.h (#includes "../../sys/dev/sun/sun_boot.h")
so that we don't rely upon host's <dev/sun/sun_boot.h>
2002-04-24 01:40:14 +00:00
bjh21 a64574e0e7 Add test for alloca() and <alloca.h>, since Sun Workshop C 5.0 needs this. 2002-04-23 00:13:50 +00:00
bjh21 bfebd5429d <stdint.h> belongs before <sys/endian.h>. 2002-04-22 23:40:10 +00:00
bjh21 35d3ac9968 Define __CONCAT if the host doesn't. 2002-04-22 23:39:38 +00:00
bjh21 c5b9549c5f Create sys/endian.h if it doesn't exist, since rmd160.c includes it directly. 2002-04-22 19:23:33 +00:00
lukem 2e4e525416 add -I. to HOST_CPPFLAGS 2002-04-22 15:18:57 +00:00
lukem 7de4309228 add UINT32_MAX if it's not defined 2002-04-22 15:09:19 +00:00
tv bcde44453d Emit an empty <stdint.h> if the host doesn't have one. Should fix PR 16416. 2002-04-19 22:47:11 +00:00
lukem 9ed0aaa314 borrow trick from ../makefs/Makefile to make this more portable for <ufs/... 2002-04-19 07:19:09 +00:00
tv 42f04dab1c Actually put the include directory timestamp under the "include" directory,
such that nuking the dir by hand also nukes the timestamp.
2002-04-18 21:15:08 +00:00
tv 25252c9a84 Re-add test for <sys/endian.h>; it disappeared somewhere along the way. 2002-04-18 21:05:22 +00:00
bjh21 6619533896 Add a stub issetugid() for platforms that don't have it. For now, we assume
that no host program will be installed set-id, so the stub function always
returns 0.
2002-04-18 15:31:51 +00:00
bjh21 bcb3d0b705 vax-installboot has been deleted, so don't recurse into it. 2002-04-06 13:33:46 +00:00
bjh21 833d114dfc Add HAVE_SYS_ENDIAN_H. 2002-04-04 17:52:04 +00:00
bjh21 55b93a6461 Add htobe16() and friends, #ifndef HAVE_SYS_ENDIAN_H. 2002-04-04 17:49:20 +00:00
bjh21 79cd9fb3ab Replace a spurious hard space (\xa0) with a normal one. 2002-04-04 17:28:33 +00:00