Commit Graph

246 Commits

Author SHA1 Message Date
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
lukem 87f91a310f Add -I../mips-elf2ecoff to take advantage of the host friendly sys/exec_elf.h
that's in that directory.  Fixes compile issue on (older source ?) arm
systems noted by Richard Earnshaw.

XXX: arguably a better version of sys/exec_elf.h (and others) should
be in ../compat instead, but that's a problem for another day.
2002-04-04 13:27:33 +00:00
lukem 28376496ff Add shim dev/dec/dec_boot.h (#includes "../../sys/dev/dec/dec_boot.h")
so that we don't rely upon host's <dev/dec/dec_boot.h>
2002-04-04 00:24:18 +00:00
tv d9d0bc0241 Don't need "if" here to look for TOOLDIR/bin; "mkdir -p" won't fail if
it already exists.
2002-04-03 15:56:32 +00:00
christos 00f77e5d9a fix my own pr since todd is unwilling to use grep. 2002-04-03 15:41:19 +00:00
lukem 96bc0c5a0c not needed now MI ${INSTALLBOOT} appears to work for vax 2002-04-03 06:09:00 +00:00
lukem 138523b976 enable installboot 2002-04-03 06:03:35 +00:00
lukem 0f02c34165 add nbinstallboot 2002-04-03 06:02:03 +00:00
thorpej 2ae4cde5ea Nuke NO_DBSYM; dbsym now uses BFD for everything. 2002-04-01 22:03:46 +00:00
bjh21 c9e4965681 Revert addition of mkdtemp() to libnbcompat. I don't think we need mktemp(1)
after all.
2002-04-01 13:59:34 +00:00
bjh21 c18f2e8b59 On second thoughts, don't make mktemp a host tool. It's only used once, for
creating a temporary directory for maketars, and mkdir can do that safely
enough.
2002-04-01 13:54:00 +00:00
bjh21 fb69871067 Add mktemp as a host tool. 2002-03-31 18:11:50 +00:00
bjh21 58017a564d Add mkdtemp to libnbcompat, since glibc doesn't have it an mktemp(1) will
need it.
2002-03-31 18:04:11 +00:00
bjh21 2e32db0aee Add cksum as a host tool. 2002-03-31 14:33:54 +00:00
bjh21 bcaedc129c Add the md[245], sha1 and rmd160 functions to libnbcompat, conditional on their
not being in the host libc.
This will be necessary to make cksum into a host tool.
2002-03-31 12:58:54 +00:00
matt f8edd877ff Drop into vax-installboot on VAX machines. 2002-03-29 05:05:55 +00:00
matt 9785a79f09 Add a nbvax-installboot for now. 2002-03-29 01:04:25 +00:00
bouyer e029d91358 Add a standalone exec_elf.h, so that elf2ecoff can be compiled on non-netbsd
hosts.
2002-03-24 19:17:51 +00:00
bouyer d3dc2d9871 Use fixed-type in ecoff structures, so that elf2ecoff will produce proper
32bit ecoff when used on LP64 host.
2002-03-23 17:13:45 +00:00
tv d6c76879a7 fcntl locking works much better when the `struct flock' is actually given
to fcntl....
2002-03-07 23:14:02 +00:00
tv d29f17612e Don't gratuitously touch the replacement headers in ${.OBJDIR}/include;
instead, touch them only if they're changed.
2002-03-07 22:48:07 +00:00
tv fa8abf3083 Need DEV_BSIZE and roundup() for makefs on non-NetBSD hosts. 2002-03-07 22:46:07 +00:00
tv 866eb28f53 Move inttypes.h to list of auto-generated-empty headers. 2002-03-07 19:18:25 +00:00
tv a45d07b1e5 Rework recursion to use the original logic again, in the structure cleaned
up by pk (and fix comments to match):

* A .WAIT here means that only the *immediately preceding* target needs
  to be added to the list of "install-foo" targets used to ensure that
  dependencies are installed (otherwise much more than is necessary
  gets installed during the build process, increasing build time here)

* If building only an individual target such as "dependall-yacc", the
  prerequisites may need to be built before running their "install-foo"
  targets -- so add a dependency in that case on "dependall-foo".
2002-03-07 19:12:33 +00:00
tv 19ab4b257e Don't build groff if MKMAN=no. (groff does not build properly on some
platforms because of its completely insane Make structure; this allows it
to be disabled in a sane way.)
2002-03-07 18:57:18 +00:00
tv fa2ae538c9 Add compat defns for uint*_t (the non-underscored ones).
[The logic in all of this is ugly, and should instead be fixed up to use
AC_CHECK_SIZEOF to use primitives if the counterpart type is unavailable.]
2002-03-07 18:28:46 +00:00
pk 583e840c0b Make $(OBJS) depend on the ufs headers link. 2002-03-05 15:08:27 +00:00
pk ada5de58dd Fix target ordering glitches: the `afterinstall' sources in here depend
on `realinstall' making TMACDIR.
2002-03-01 15:39:00 +00:00
tv d24dab300c Don't forget "do-distrib-dirs" as a prerequisite to "includes". 2002-02-27 18:18:59 +00:00
tv 6080b95ae4 Make libobjc configury MI. 2002-02-27 17:55:32 +00:00
tv 9d3094001d Clarify why even native hosts should use the same method to bootstrap a
toolchain.
2002-02-27 17:49:19 +00:00
tv 52294a7b65 A step-by-step doc on how to bootstrap a new toolchain (works on both cross
and native hosts).
2002-02-27 17:21:56 +00:00
tv 6601e7454c Make libiberty files MI. 2002-02-27 17:02:04 +00:00
tv 569df344d5 * Don't try to get the gdb framework if gdb doesn't configure due to missing
gdb support (determined by GNU configure).

* Be less verbose if there are no existing toolchain framework files to
  compare (suppress grep "file not found" error)
2002-02-27 16:45:11 +00:00
tv 76fed8b638 Revert previous; this had to do with running "make includes" while MKGCC=no.
It's still possible to get the needed headers from src/gnu/lib/libgcc by hand.
2002-02-27 16:28:23 +00:00
tv 246889ecf5 Omit the C++ bits of libgcc for bootstrap-libgcc. Until there are C++
headers for the target, these parts can't be built anyway.
2002-02-27 16:12:10 +00:00
tv 8b54ad2d20 Fix bootstrap-libgcc (should be looking in build/, not .native/), and make
.native/.configure_done depend on the typical _GNU_CFGSRC stuff.
2002-02-27 04:43:22 +00:00
tv 980f1f32fc Complete the mknative method of creating the toolchain metainformation
files.  This version is capable of generating these files Properly from
a cross host (subject to having tools and target libs/includes available
ahead of time; to be documented).
2002-02-26 22:31:59 +00:00
tv 259a2ab95f Add some more bits of host compatibility. 2002-02-26 22:29:38 +00:00
tv a616862da1 Remove the "-j1" hack. This needs to be fixed better. For now, -j is
disabled at the top level anyway, making this extra hack unnecessary.
2002-02-26 22:27:11 +00:00
tv d3501a4060 Add gettext to tools.
For now this is a maintainer-tool only; none of the NetBSD build needs to
run msgfmt as of yet.  (However, its presence is needed to make the
mknative part of src/tools/toolchain produce the same output as a truly
"native" GNU configury of the toolchain.)
2002-02-26 18:14:40 +00:00
gmcgarry 0d9e66cda7 Add elf2ecoff as a build tool for mips ports. 2002-02-23 21:32:27 +00:00
pk 1d6e801ba2 Having `build/Makefile' depend on `.configure_done' doesn't work. Instead,
just add the additional commands to the `.configure_done' target.

Also, since the groff distribution Makefiles don't get their dependencies
right, use internal knowledge to add additional target ordering to the
generated makefile. Note, this hack can be removed once our own make(1)
can be invoked in true sequential (i.e. compatible) mode again for subdir
makes.
2002-02-19 12:13:10 +00:00
pk ee92d5a672 * Add comments on all the directory build/install ordering goo.
* Beef up that goo so that for each ".WAIT group" all of the install targets
  in the previous group have completed before starting the `all', `depend'
  or `dependall' targets.
2002-02-18 15:35:53 +00:00
jmc b201a06833 Make sure TOOLDIR/bin exists before copying into it. Use 2 explicit mkdir's
here to avoid problems on host systems without mkdir -p
2002-02-12 19:54:16 +00:00
tv 2dc3b09c0b First of two parts to replace toolchain2netbsd and make it more cross-happy:
Provide a target "bootstrap-libgcc", which will create the files
    src/gnu/lib/libgcc/${MACHINE_ARCH}.mk
    src/gnu/usr.bin/gcc/arch/${MACHINE_ARCH}/tconfig.h
    src/gnu/usr.bin/gcc/arch/${MACHINE_ARCH}/tm.h
...enough to allow libgcc to build so that a bootstrap build to DESTDIR can
take place.
2002-02-11 21:24:09 +00:00
pk 354e70b764 Revert part of previous; we need the install targets. 2002-02-11 07:21:41 +00:00
pk e678b7f1d0 Use .ORDER targets to express the dependencies on subdir runs. This makes
the resulting tree complexity O(N) (N=# of subdirs), and it also makes it
easier to comprehend the Makefile logic.
2002-02-10 15:46:42 +00:00
pk b3ddad6b4b Make sure to not go off installing in a directory before it's fully made. 2002-02-08 17:48:38 +00:00
lukem 64d97711a2 remove btodb() hack now that makefs doesn't need it anymore.
the #define was wrong anyway; it was x<<9 instead of x>>9
2002-02-06 15:39:01 +00:00
tv e5d6f46d5a Fix up the .for recursion -- it wasn't quite right before. 2002-02-01 13:51:38 +00:00
tv 6bd56c8eda Cross-hosting notes for foreign OS's. (Currently Linux, Solaris, and older
releases of NetBSD.)
2002-02-01 04:43:39 +00:00
tv 9fbd88883c Roll in fixes to permit cross-compiling from non-NetBSD hosts. This
round has been tested on Solaris/x86 and Linux hosts.

* Add host tools cap_mkdb, ctags, m4, uudecode.
* Protect __RCSID() and __COPYRIGHT() better.
* Reduce the number of places that need to include "config.h", to keep
  sources closer to their "vanilla" versions.
* Add more compat #defines and autoconf-checked functions.
2002-01-31 22:43:33 +00:00
tv 2004638500 Include config.h unconditionally; clean up. 2002-01-31 19:23:14 +00:00
tv eee751dc15 Define NOID to eliminate the rcsid. 2002-01-31 19:22:40 +00:00
tv 4ada663465 Provide a default string so host tools that forget to call setprogname()
won't accidentally segfault just trying to print a usage message.
2002-01-31 19:21:58 +00:00
tv f4554f775d Make sure there are no weak references in libnbcompat (avoids linker
confusion issues).
2002-01-31 19:20:14 +00:00
tv 87ed89b8e3 Make sure MAKEINFO is defined, as it appears that toolchain/texinfo is not
auto-built.
2002-01-31 15:25:08 +00:00
tv 5ab7a8d3e1 Remove g= override. 2002-01-31 15:24:36 +00:00
tv c10af7be1e Make sure LEX and YACC are properly defined (mainly for groff); also use
a more portable grep construct.
2002-01-31 02:42:25 +00:00
tv a328e34106 Make almost all tools compile and run properly on non-NetBSD hosts. (In
particular, most tools now run correctly on Solaris 7.)
2002-01-29 10:20:28 +00:00
tv 0c41d3705e Ensure a space after # or #line so we don't pick up stray #pragmas and
so forth in the .depend file.
2002-01-28 19:26:35 +00:00
tv 3dc61f3b98 Make util.c replacement functions use autoconf conditionals to probe
what is Really available in the host OS.
2002-01-25 17:51:31 +00:00
tv 371a05affa Abort on C compiler error. Add @DEFS@ to compile line. 2002-01-25 17:50:28 +00:00
lukem a2a5907be5 build pax as a host tool, for -N and to work around borken vendor paxes 2002-01-25 05:01:17 +00:00
lukem 2b616edfca - Replace pwcache(3) if necessary (pwcache_userdb(3) is checked for).
Tested on -current and 1.5.3.
- Wrap some long lines.
2002-01-24 04:05:27 +00:00
lukem 1fdf0d0e12 remove 2002-01-23 02:31:33 +00:00
thorpej d00b294ffa Split compat definitions into a separate file so that autoconf
doesn't comment out #undef's that we want to keep.
2002-01-22 20:42:59 +00:00
lukem 60eebeccec reachover to ../../lib/libutil for fparseln.c 2002-01-21 23:35:14 +00:00
tv 9a14a10fb6 Somewhere along the line, the _DIAGASSERT was lost. Re-add it (as a macro
that expands to nothing); only NetBSD hosts really have this.
2002-01-21 23:22:17 +00:00
tv 9c06c04bee Missed in last commit: make some tools build properly on non-NetBSD hosts. 2002-01-21 20:59:40 +00:00
tv 9d5d28c26f Make many host tools compile on non-NetBSD hosts. Not complete, but
very nearly there.
2002-01-21 20:04:36 +00:00
tv a08f30a6ee Break out make(1) bootstrap config into an autoconf-based mechanism that
generates a shell script.  Check for existence of POSIX regex, and make
sure an appropriate library is pulled in for it as needed.
2002-01-15 19:15:47 +00:00
lukem 729f9d86cc rcsid 2002-01-13 12:45:23 +00:00
tv 5457974230 Move host-mkdep to its own directory. Create and install it before
everything else.  Now it's possible for the target mkdep to build and
install like "normal" host-tools do; should remove the function decl
warnings reported by greywolf@starwolf.com on current-users.
2002-01-10 17:04:20 +00:00
mrg f6a5bde398 build sunlabel as a host tool (not enabled in tools/Makefile yet) 2002-01-10 16:35:05 +00:00
lukem 96119ca83f - act more like lib/libc/gen/setprogname.c, and store the basename of
the argument to setprogname()
- knf
2002-01-10 05:35:42 +00:00
lukem 328430b633 revert previous, and reenable tools/makefs now that it works on
netbsd-current and netbsd-1-5
2002-01-10 05:17:20 +00:00
lukem 3e8ee2e17f Symlink ./ufs to ${.CURDIR}/../../sys/ufs, and add -I. to HOST_CPPFLAGS.
This means that <ufs/*/*.h> come from ../../sys/ufs, but other
<sys/*> header files still come from the host system's /usr/include.

This slightly ugly hack to the Makefile means that makefs compiles on
-current and 1.5.x machines (and other systems), without requiring
major code rewrites in sys/ufs/ffs to allow sharing and without
requiring duplication of sys/ufs/ffs* under usr.sbin/makefs.
2002-01-10 05:03:45 +00:00
lukem c6934ce7ad regen from configure.ac 1.3 for <inttypes.h> change 2002-01-10 04:32:18 +00:00
lukem fe4a1b3537 look for <inttypes.h> and #include if found (for uint*_t) 2002-01-10 04:31:15 +00:00
tv bc23e55bd1 Disable makefs in src/tools for the moment; it's very dependent on -current
NetBSD headers and sources right now.  (Temporary workaround for PR 15175.)
2002-01-09 16:58:35 +00:00
mrg 5bd0c76f92 build zic as a host tool. 2002-01-05 07:36:33 +00:00
mrg fc820c7268 build makefs, and, sparc-installboot if sparc||sparc64 2002-01-05 07:03:30 +00:00
mrg 2218533d73 build this as a host tool. 2002-01-05 07:00:56 +00:00
lukem 07fae6dedd Add replacement fgetln(3) (from lukemftp/libukem), as fparseln(3) uses it 2002-01-04 14:39:06 +00:00
lukem cd2127f548 remove lukemftp comment; this is just as close to the libutil version 2002-01-04 14:30:51 +00:00
lukem 85b0720ce9 need <errno.h> and <stdarg.h> 2002-01-04 14:28:05 +00:00
tv 40d58903e4 Work around some braindamage in our "yacc": its generated #line directives
always name the file "y.tab.c", not what it is really named via "-o".
2002-01-04 13:35:23 +00:00
tv 06f06e280f Add more tolerant script-based implementation of mkdep for host tool
compiles.  Based loosely on mkdep.old.compiler (so CSRG license copied),
but now uses just one rewrite (awk) process per cpp invocation and
determines the proper way to run cpp and awk via a "configure" script.

Use HOST_MKDEP in bsd.hostlib/hostprog.mk (defaulting to the old override
value of MKDEP), and give it a TOOLDIR equivalent in bsd.own.mk.
2002-01-03 22:45:23 +00:00
tv fe9dd95fc6 Remove stray diagnostic "echo". 2002-01-03 16:47:08 +00:00
tv b6ed0d753c * Honor BUILD on "make install" (will do "make all" first).
* Make "make all" update the .build_done timestamp more intelligently;
  if no files changed in the build tree, don't touch the timestamp.
  (This allows UPDATE and BUILD to function correctly.)
2002-01-03 16:45:18 +00:00
tv ff6a46630e * Now that src/share/tmac no longer uses absolute paths, nuke the sed
transform.

* Use a .USE rule for the tmac installation (reduce redundancy).

* Suppress spurious messages from "cmp".
2002-01-03 16:38:50 +00:00