Commit Graph

136 Commits

Author SHA1 Message Date
art cd65bdac06 Let cross-sparc use new bintuils. 2002-08-11 22:48:05 +00:00
todd 885e28c653 knf 2002-06-09 05:47:26 +00:00
mickey 8c2797fb08 install cross-links for objdumpc,objcopy,strings 2002-05-15 15:55:01 +00:00
art 19806625e6 Change the regression-tests target to do depend before running regress. 2002-02-22 23:31:11 +00:00
art dd6f3c0cf6 Only go into regress on "obj", "clean" and "cleandir". 2002-01-03 02:19:20 +00:00
espie 9bdcaee42d a bit too soon. 2001-09-25 10:26:39 +00:00
espie 5b2116c6ba link gnu files in. 2001-09-25 09:43:22 +00:00
art 3fd496df21 This change (and a little change for alpha gcc config) allowed me to build
cross tools and kernels with those cross tools on all archs except mvme88k
and hppa.

1. Pass MACHINE_ARCH, not MACHINE to TARGET_MACHINE_ARCH when building old
   binutils.
2. Instead of using the "intelligent" cpp voodoo to find out MACHINE_ARCH
   from MACHINE (which has never worked correctly for sparc, 68k and
   recently it broke for powerpc), we have a table of machine->machine_arch
   translations. It's easier to modify one table once per arch instead of
   juggling for a few hours every time some include files change.
3. Remove some sparc64 cruft.
4. Set MACHINE and MACHINE_ARCH in cross-env, otherwise the kernel will
   try to build libkern for the host.

Please note that this doesn't allow you to do complete builds. I haven't
even tested cross-lib. Only kernel builds have been tested.
2001-09-17 01:18:34 +00:00
fgsch a2527338e0 Cross-tools changes:
o Enable c++.
o Add missing lib/apache/xml/include directory.
o Use lorder from /usr/bin.

art@, mickey@ ok.
2001-09-14 06:03:11 +00:00
mickey c68a5ba70f put quotes on CFLAGS in binutils-new 2001-09-07 19:35:37 +00:00
mickey 8a7b424f61 don't forget to make depend for croos-binutils-old sub-targets, dunno how it got broken but let's blame art since he commits into cross-tools all by himself all the time and breaks it 2001-09-07 19:29:49 +00:00
art f51f852c9f new target: cross-env that prints all environment variables that
need to be set for cross building:
cd /usr/src/sbin/init
make `cd /usr/src ; make TARGET=sparc64 cross-env`

Also, xcpp was wrong, cccp is wrong, cpp is probably better.
2001-09-03 16:26:02 +00:00
drahn ae9c37fa41 powerpc -> macppc rename changes 2001-09-01 16:03:18 +00:00
art 0ea181afcc Use more brute force when making links for binutils.
We simply make sure that there always is a TARGET_CANON-X and an X
regardless of which one is the regular file and which one is the symlink.

(this is for cross-tools)
2001-08-31 14:13:50 +00:00
art 5ae46fa896 cccp, not xcpp 2001-08-31 13:49:17 +00:00
brad 0b2e84cae3 more leftover arc/pmax stuff
--
Ok'd by art@
2001-08-31 12:47:57 +00:00
art 5ed3a518f1 Magic to make sparc64 cross-tools not bomb in the first 5 minutes
of building cross-tools.
2001-08-31 10:54:59 +00:00
brad 745330d4b8 bye bye MIPS related bits and pieces.
--
Ok'd by deraadt@
2001-06-26 18:00:16 +00:00
hin 3bedaf2efb Build kerberosV when enabled. 2001-06-26 15:33:28 +00:00
niklas eb700df301 yet another old M: missing SUDO i includes target 2001-06-24 23:31:07 +00:00
espie efeb256f5c Speed-up:
- remove extra subshells;
- use exec on terminal commands, avoiding dangling shells that don't
control anything.

More correct:
- use && some more;
- remove `-' in front of includes, so that failures WILL fail...

Okay millert@, deraadt@
2001-05-14 12:34:26 +00:00
todd 46d827c83c unbreak broken cross-binutils-new target (missing ')' ) 2001-03-28 22:52:22 +00:00
niklas 5df89c4438 Fix cross-tools symlinks for old toolchain too 2001-01-27 01:59:43 +00:00
niklas 65092737fc Improve the cross-tools targets so that it now can at least finish
pmax libs.  I have yet to test that they actually work though.
2001-01-27 00:58:23 +00:00
mickey 14e88f0140 at least cross-gcc was broken, can't test cross-binutils, but i bet they are broken too 2001-01-17 20:14:04 +00:00
art 7bd94d056a Random fixes for cross builds. (especiaslly new binutils) 2001-01-15 23:12:00 +00:00
angelos 9518c5e7e1 Truncate the autoconf cache, rather than outright deleting it (PR 1488) 2000-12-30 06:45:52 +00:00
art 98da7a4761 Fix cross-binutils-new.
Pass the same --disable-foo flags as we do in gnu/usr.bin/binutils
This allows me to build alpha -> alpha binutils (Don't ask).
2000-12-12 18:37:12 +00:00
espie ff60459d9b Boring... Add :L modifier to all tweakable variables tests.
Closes PR 1246
2000-09-03 18:41:11 +00:00
millert 3c057906d6 Only install man pages once. Previously, they would be installed
during the lib install stage too.
2000-08-01 15:56:38 +00:00
millert e0a689d47b Don't need to explicitly make perl's config.sh, the beforedepend target
will do that.
2000-04-21 00:10:40 +00:00
deraadt 2f1e4ea6d5 using just ldconfig is a bad idea, use -R 2000-04-09 07:48:14 +00:00
niklas dc2643168e A more normal way of building kerberos, faster, and it works with SUDO 2000-03-10 22:04:18 +00:00
todd 84182b93c0 rm dup 2000-03-01 03:56:41 +00:00
mickey be1acc36ba repair a few breakages in cross-tools caused by switch to egcs and new lorder 1999-12-22 21:25:24 +00:00
millert 8e7fffa247 Build libperl with the other libs 1999-11-26 00:32:11 +00:00
deraadt ae3d75a23c I mean, I hate that prereq *garbage*. but then you guys had to break
make includes, too, by not fixing it.  Gee, thanks.
1999-09-27 04:04:52 +00:00
niklas 64c414e1a8 Provide a method to do prerequisites needed before
installation of includes can happen.  Do these before and not run via ${SUDO}.
1999-03-02 21:47:32 +00:00
imp 6239411b9d Don't do two ldconfigs on mips if we're not building kerberos.
Many cross-tools cleanups:
o remove mkdirs from the front of each of the rules, but instead have them
  depend on new target cross-dirs, which makes all the directories
o Add new target, cross-dirs, to create the directories and symlinks.  Before
  the symlinks in /usr/cross/$TARGET/blah-unknown-openbsd2.4 were
  never right.
o KLUDGE for arc/pmax.  MACHINE_ARCH is mips for these machines, but they
  differ from other machines in that they use mipsel-unknown-openbsd
  for their gnu config string (failure to have the el causes big endian tools
  to be built).

These fixes allow me to build a usable toolchain and libraries for
OpenBSD/arc on FreeBSD/i386 (with a few fixes to FreeBSD as well).  I
can also build a bootable kernel on the FreeBSD box.

I'd like to add a cross-build target shortly that will build
cross-tools, then will build and install stuff in DESTDIR with the
cross tools living in ${DESTDIR}/usr/cross/${TARGET}.
1999-02-02 08:53:32 +00:00
imp 56109f03fd Make cross targets more robust:
o Don't build kerberos if KERBEROS==no
o Use the lorder in the target tree, rather than relying on the
  system's lorder to do the right thing in a cross build environment.
1999-02-02 02:36:35 +00:00
niklas 73d9a59b97 make depend stuff in cross-*.
Also build the kerberos libs for the cross environment
1999-01-24 16:40:42 +00:00
art c546f8ebef pass SUDO to make build in kerberosIV. From: jakob@crt.se 1999-01-24 16:08:37 +00:00
millert 4d8125ffa8 kill local change that should not have gotten committed in last change 1999-01-08 00:26:59 +00:00
millert 2a6fc02445 make cleandir needs to run run as well; marc@snafu.org 1999-01-07 04:57:13 +00:00
millert 20be91749a set DESTDIR to be empty, not '/' when doing 'make distrib-dirs' so we don't get /etc/foo, not //etc/foo 1998-10-30 18:39:52 +00:00
art b908e61ca4 add a note about building kernel before "make build" 1998-09-30 13:27:28 +00:00
niklas 8d9b254a8c Optionally use make SUDO=sudo build to build as non-root 1998-09-07 00:47:11 +00:00
mickey 883e260562 fix cross-lib install 1998-08-28 22:46:02 +00:00
mickey d05f021a83 insert a note about the cross-tools target 1998-05-18 18:29:07 +00:00
mickey 72eeb022c0 more links for binutils-new; hmm shouldn't this be single commit w/ the prev one? 1998-05-18 17:40:00 +00:00
mickey 917a796c2a use .CURDIR-relative paths navigating within source tree.
that is, instead of 'cd lib' use 'cd ${.CURDIR}/lib'.
PS: what about strings and gdb for cross-binutils-old?
    those guys are present in the '-new target.
1998-05-18 17:37:04 +00:00
mickey c948a6029a setup links for new binutils in an old binutils cosistant way 1998-05-18 14:24:42 +00:00
niklas f4a9ae3700 Revert to 1.32, in the future CROSSENV will be used with different
MAKEOBJDIR values
1998-05-17 07:37:08 +00:00
mickey 87e5b72797 include MAKEOBJDIR definition into CROSSENV 1998-05-17 06:32:07 +00:00
niklas f6e601342c cross-tools cleanup + build the libs too 1998-05-16 20:56:52 +00:00
niklas 04ca17b0e6 cross-gcc improvement, install cc link, and a nice cpp 1998-05-14 21:43:02 +00:00
niklas 41c920a7be Build nm ok for cross-envs 1998-05-11 20:34:54 +00:00
niklas 8037d955ba Add a bunch of cross-a.out targets 1998-05-11 07:43:12 +00:00
mickey e7297ab4cf use binutils for hppa 1998-05-04 21:28:18 +00:00
niklas e046c3864f Improved cross-compilation targets, still need work 1998-04-25 06:42:44 +00:00
mickey ed73871452 cross-gcc: make things work, finally 1998-03-18 15:51:04 +00:00
mickey 62156da04e cross-tools: use /bin/sh to run configure, add -I for mips-* 1998-03-17 18:10:53 +00:00
niklas 47c1ceabfc A new rule cross-gas for building an a.out cross assembler, i.e. *not* from
the new binutils, but from the old gnu/usr.bin/gas sources.  Not yet called
from cross-tools for any architectures.
1998-02-15 20:56:40 +00:00
niklas ae417a3e88 on mips systems, ldconfig after kerberos too as new libs get installed 1997-12-09 19:45:29 +00:00
deraadt e189ddde44 $OpenBSD$ 1997-09-21 11:34:32 +00:00
deraadt 4f7a1a576b attempt to clean/cleandir/obj in distrib 1997-08-06 09:40:10 +00:00
kstailey 69c894c13a add braces to variable 1997-07-29 04:07:35 +00:00
kstailey 71e87bb905 Changed the rules.
The variable is now GLOBAL_AUTOCONF_CACHE.  You must set it to the name
of the cache file to use.  Ether "setenv GLOBAL_AUTOCONF_CACHE /var/tmp/foo"
or add it to /etc/mk.conf
1997-07-29 03:37:03 +00:00
kstailey 9a76bd1903 remove global cache at start of "make build" if GLOBAL_CACHE option is in effect 1997-07-29 03:18:39 +00:00
millert 11ee01d8bf Changed ``defined(KERBEROS)'' to ``(${KERBEROS} == "yes")''
Same change doen for SKEY, YP, and KERBEROS5.  This allows
people to override those setting in /etc/mk.conf.
1997-04-19 21:26:08 +00:00
deraadt 5034ab0fb2 doc recommended build process somewhat 1997-04-18 06:47:08 +00:00
niklas 9c3ce19d4f First stab at a target for making cross-development tools:
try "make TARGET=machine cross-tools" and you should get a little
hierarchy in /usr/cross/<machine>.  This is probably not in its final
shape yet ;-)
1997-02-28 23:22:07 +00:00
briggs 62085dbc3a We don't need this in /usr/src/Makefile. Call me a prude, if you like. 1997-02-27 20:57:52 +00:00
deraadt a60dba073b ldconfig hack for the mips 1996-12-13 15:45:58 +00:00
tholo f60a988113 Don't install kerberosIV headers twice when doing "make build" 1996-06-02 10:44:55 +00:00
tholo 28b638f867 kerberosIV now understand "includes" target too 1996-06-02 07:22:46 +00:00
deraadt 4ae007f57b allow "make includes" to work from here too 1996-05-18 05:37:48 +00:00
deraadt 6cae596c39 when making distributions, make sure the include directory gets filled 1996-05-14 19:10:34 +00:00
deraadt dd9d2c6e2e hard-code the include installation path (mostly for speed) 1996-05-06 21:44:03 +00:00
deraadt 0d5e6725cb use beforeinstall; includes walks the tree 1996-05-06 20:31:44 +00:00
mickey 094eb18340 sync w/ NetBSD 960418. 1996-04-23 09:47:22 +00:00
tholo 900e3302cd Build lkm directory by default 1996-03-02 21:04:11 +00:00
tholo 96eaadca97 Do not build KerberosIV if Kerberos has been disabled in <bsd.own.mk> 1996-01-28 19:42:34 +00:00
deraadt 6e7d0f7ff5 domestic goes away, kerberosIV always exists 1995-12-17 05:53:11 +00:00
tholo b1b0ccd80b Add support for building kerberosIV 1995-12-16 21:10:33 +00:00
deraadt df930be708 initial import of NetBSD tree 1995-10-18 08:37:01 +00:00