Commit Graph

1344 Commits

Author SHA1 Message Date
mrg
d1531a5681 set MODULE to ${EXTERNAL_GCC_SUBDIR} so this actually works.. 2020-08-13 10:57:53 +00:00
mrg
802242f985 set _OUTDIRBASE depending on $0, and then set _OUTDIR based on this.
now you can copy mknative-gcc to mknative-gcc.old without edit.
2020-08-13 01:52:37 +00:00
mrg
5e4a6425f4 mknative-gcc is for GCC 8.4.
mknative-gcc.old is supposed to be for GCC 7, but is the GCC 6
version.  update it and mark it for GCC 7.5.
2020-08-12 08:53:20 +00:00
mrg
1956332deb update GCC 7 version to nb4 20200810, and fix the unknown GCC version
error assignment from "=?" to "?=" so it works as designed.
2020-08-11 09:51:57 +00:00
uwe
dff8694dea Build mkubootimage for evbsh3 too. 2020-07-28 21:38:15 +00:00
rillig
ff40d26ffb make(1): remove references to the removed lst.lib 2020-07-26 09:17:24 +00:00
uwe
3ed307aae1 Regen: Add AC_MSG_RESULT yes/no to the uio checks. 2020-06-24 14:44:44 +00:00
uwe
6072166471 Add AC_MSG_RESULT yes/no to the uio checks. 2020-06-24 14:39:01 +00:00
thorpej
696896edc9 Add evbmips support for u-boot handling. 2020-06-21 17:17:01 +00:00
lukem
b88ffc9699 nbmake bootstrap: be quieter if MAKEVERBOSE==0
More accurately simulate <bsd.own.mk> and don't even print
the "compile" lines with MAKEVERBOSE=0
2020-06-13 11:39:43 +00:00
lukem
d9c439f9ab nbmake bootstrap: consistency fix in MAKEVERBOSE<2 support 2020-06-13 11:32:52 +00:00
lukem
7021f3fda6 nbmake bootstrap: if MAKEVERBOSE < 2, output similar to <bsd.own.mk> 2020-06-13 11:28:24 +00:00
lukem
49c251eb17 tools: configure --silent if MAKEVERBOSE == 0 2020-06-13 10:49:17 +00:00
lukem
ccc4feaf7c tools: if MAKEVERBOSE < 2, quieten automake builds 2020-06-13 08:12:16 +00:00
roy
e457e4abc4 tools: Build tic with full fat terminfo 2020-04-05 12:31:39 +00:00
christos
1c5c771e20 rename libctf to libgnuctf 2020-04-04 01:34:53 +00:00
christos
a5bd4ab452 Handle libctf new in binutils 2.34 2020-04-04 00:47:52 +00:00
christos
a0fb52ee6d put the binutils include before /usr/include to get the right md5.h 2020-04-04 00:47:30 +00:00
mrg
e94febb36e update date for GCC 8.4.0 import. 2020-03-11 10:07:01 +00:00
joerg
1fb1813c28 LLVM doesn't use term.h, so don't check for it when probing here either.
Increase robustness of checks for incremental builds by forcing a
dependency on the Makefile itself.
2020-02-21 15:00:44 +00:00
christos
7afc64e486 don't try to include the library if we are building it. 2020-01-17 16:50:51 +00:00
christos
05026dfa7b use the host compiler 2020-01-13 19:03:03 +00:00
christos
f495d55fa9 add Makefile 2020-01-12 21:49:39 +00:00
christos
2b40925af2 make this compile. 2020-01-12 21:27:43 +00:00
joerg
76c7fc5f6b Update LLVM to 10.0.0git (01f3a59fb3e2542fce74c768718f594d0debd0da) 2019-11-11 22:44:56 +00:00
mrg
500cd05674 add something to auto-detect when GCC has changed from gcc to gcc.old
or back and auto-cleandir tools/gcc.

based upon the code for PREVIOUSTOOLDIR in tools/Makefile.
2019-11-06 07:26:31 +00:00
joerg
ba48f7312c Don't escape ", GNU awk 5 warns about it. 2019-10-29 23:33:06 +00:00
christos
eba0817981 arm needs more files 2019-10-24 03:19:14 +00:00
mrg
55a26eb0f8 copy arm-cpu.h and arm-isa.h for arm platforms. 2019-10-16 06:57:24 +00:00
mrg
647857abb4 remove HAVE_GCC == 6 support, add HAVE_GCC == 8 support 2019-09-30 08:40:20 +00:00
bad
e768752f39 Exclude more subdirs if TOOLS_BUILDRUMP=yes.
Exclude subdirs added in the last 3 years but not need for rumpkernel builds.
2019-09-26 09:21:34 +00:00
maya
da2c419ac4 Fix bugurl. PR toolchain/48712 2019-09-09 13:57:13 +00:00
hannken
8d122c4997 Bring back two lines deleted by accident. From Kamil Rytarowski. 2019-06-22 14:40:33 +00:00
hannken
aa8b5122a1 Update tools/compat/configure for new path of "rpc/types.h".
Remove intermediate patch from rpcgen/Makefile.

Patch from Nick Hudson, errors from me.
2019-06-22 13:42:53 +00:00
kamil
8ce1514e5e Instruct tools/rpcgen about new path for rpc headers
Fixes build on Gentoo.
2019-06-21 14:56:39 +00:00
maya
874624a318 Update to working instructions.
thx mrg for the build_install suggestion.
2019-06-21 07:05:02 +00:00
kamil
80b70339c3 regen tools/compat 2019-06-19 23:35:55 +00:00
kamil
08fadea744 Add more SunOS types to tools/compat
Add fallback defintions of: uchar_t, ushort_t, uint_t, ulong_t.

Needed by the libctf code on Ubuntu 16.x.
2019-06-19 23:33:07 +00:00
kamil
1c06c1fef3 Add sys/uio.h & enum uio_seg, enum uio_rw to tools/compat
This is needed for bootstrapping the tools on Ubuntu 16.x.
2019-06-19 03:40:15 +00:00
christos
d299b579b0 force libexpat since the autoconfig test are not cross-compile friendly
(they try to link with /usr/lib/libexpat.so in the compiler invocation).
2019-06-02 23:28:32 +00:00
christos
b077f17d15 Disable mpfr to make MKCROSSGDB work again. The problem is that the default
(auto) finds the mpfr library in tools, but then when it tries to build using
the proper headers it does not find it anymore since we don't install it
(like the native build does not find it).
2019-06-01 17:02:59 +00:00
christos
dad3d2d152 adjust for gdb-8.3 2019-05-29 01:56:06 +00:00
christos
2e45e8b5fb sync with arm. 2019-05-20 18:24:57 +00:00
christos
4f16751b14 sync with latest. 2019-05-19 04:09:22 +00:00
nakayama
43b52312c6 Use ${_TOOL_PREFIX} instead of hardcoding "nb" for consistency. 2019-05-17 13:51:36 +00:00
nakayama
0015932b89 Revert previous.
The binaries created are different, but according to joerg@ there
is no difference in functionality.
2019-05-17 13:44:55 +00:00
nakayama
95541573e2 Rename nb{clang,llvm}-tblgen to ${MACHINE_GNU_PLATFORM}-{clang,llvm}-tblgen
since they contain the default target (e.g. x86_64--netbsd).
2019-05-16 20:00:49 +00:00
thorpej
8319f966d5 Fix building libprop as a host tool library on platforms that don't have
the Matt Thomas rbtree:

- Include rb.c in libnbcompat, and provide a nbcompat sys/rbtree.h
  header.
- Make sure libprop's source file include prop_object_impl.h before
  anything else, and pull in nbtool_config.h from there.

Tested by simulating such a host system by renaming the host's
<sys/rbtree.h> out of the way (which reproduced the build failure)
and verifying that the host-tool installboot contained the rb_*
functions in its own .text segment.
2019-05-08 02:25:50 +00:00
hannken
7ccc083a7e Fix build, "pax" must be built before "libprop".
Ok: Matthew Green mrg@
2019-05-07 10:22:54 +00:00
thorpej
02d67d1066 Add installboot(8) support for evbarm (and, in the future, other evb*)
boards that use u-boot.  A known board database lists boards and their
respective u-boot packages.  u-boot packages are discovered at run-time
(in /usr/pkg/share/u-boot, by default).  These packages contain board
database overlays that describe u-boot installation procedure that's
specific for that board.

Support this as a native tool and as a host tool.  The native tool
will attempt to determine the running board type using OpenFirmware
calls.  Host tool and native tool alike may also specify a board type
directly using the "-o board=xxx option" or have installboot(8) determine
the board type from a device tree blob using "-o dtb=/path/to/board.dtb".
A "-o media=xxx" option is provided for boards that have different u-boot
binaries and/or installation procedures for different media types (e.g.
SDMMC, eMMC, or USB).

This is trivial to extend to other evb* platforms that use u-boot, even if
they don't use FDT for autoconfiguration.
2019-05-07 05:02:41 +00:00