Commit Graph

1237 Commits

Author SHA1 Message Date
maya a3ebee93c8 Add configure check and fallback definition for u_longlong_t
Should help linux tools compilation of dtrace tools, and not
affect NetBSD.

From Chuck Zmudzinski in current-users, with light modification
by myself.
2018-06-11 18:48:24 +00:00
christos 3732eb3530 remove trailing newline 2018-05-19 17:48:51 +00:00
joerg f0360e1d3e For EXTERNAL_TOOLCHAIN, MKLLVM=yes needs to build only tablegen. 2018-05-09 13:21:27 +00:00
christos 89df939d83 revert previous, breaks llvm build and not easy to fix. 2018-05-04 14:50:18 +00:00
christos 2acd48c6ea need bsd.hostinit.mk before bsd.endian.mk 2018-05-03 01:09:04 +00:00
christos bf7113376a Create a new bsd.hostinit.mk file and put the build definitions for all host
programs there; make all Makefiles that use bsd.hostprog.mk include it.
Namely turn off MKREPRO and don't make lint, man pages, info files etc.
Remove the Makefile.inc files that contained these same settings, and
remove the settings from Makefile.host
2018-05-01 19:59:42 +00:00
christos c0d10d8e3a Centralize NOMAN handling. 2018-05-01 12:38:39 +00:00
christos b2a8932dbe PR/53238: Robert Elz: Disable MKREPRO in tools; the host compiler might
not support the necessary options. This is done thusly:

1. Set MKREPRO=no in Makefile.host. This handles all the Makefiles that
   use it and don't include bsd.own.mk.
2. Create Makefile.inc and set MKREPRO=no in it. Change the Makefiles that
   include bsd.own.mk, to include bsd.init.mk which includes Makefile.inc
   first. This will also allow us to control other tools options from a
   single location if we need to.

XXX: pullup-8
2018-05-01 00:04:34 +00:00
maya 43018fddb4 Remove hack previously needed to build gcc/arm with clang.
genattrtab.c:1.2 makes this unnecessary.

Tested by thorpej.
2018-04-17 10:08:54 +00:00
christos 622f49cc74 Use the __clang__ preprocessor symbol to check for clang, since --version
might barf. From joerg@
2018-04-17 02:03:56 +00:00
christos 1c811476c7 do the bracket nesting only for clang for now. 2018-04-15 21:50:38 +00:00
christos a1d4324dc0 fix the variable name for then non-gmake case. 2018-04-15 15:13:37 +00:00
snj 6e9004b7ce GCC build exceeds the macOS clang default bracket nesting level of 256.
Work around with -fbracket-depth=512.

From potr in PR toolchain/53178.
2018-04-13 06:15:26 +00:00
ryo fe33aa2786 Add initial support for ARMv8 (AARCH64) (by nisimura@ and ryo@)
- sys/arch/evbarm64 is gone and integrated into sys/arch/evbarm. (by skrll@)
- add support fdt. evbarm/conf/GENERIC64 fdt (bcm2837,sunxi,tegra) based generic 64bit kernel config. (by skrll@, jmcneill@)
2018-04-01 04:35:01 +00:00
mrg 3e838582ee bump the NetBSD GCC version. both GCC 5 and 6 got x86 spectre
mitigation code, and both are now "nb2 20180327".
2018-03-28 19:30:41 +00:00
christos e9e7b01807 undo previous; breaks the build. handle inside flex. 2018-03-11 18:32:43 +00:00
hans ccac921152 Fix build of tools/lex on platforms lacking sys/cdefs.h by including
nbtool_config.h in tools/compat/regex.h. Tested on illumos.
2018-03-11 10:14:04 +00:00
uwe 6be0d6d9a0 Fix .endif comment for TOOLS_BUILDRUMP 2018-02-18 01:06:24 +00:00
mrg af3901dedb also fetch GCOV_DUMP_OBJS. 2018-02-06 07:04:01 +00:00
mrg 1fcc5cabfc mark GCC 6.4 has nb1 20180203 2018-02-05 06:22:27 +00:00
mrg adfccf1e30 pullout port_specific_symbol_files from libstdc++. 2018-02-03 19:06:25 +00:00
mrg 6d188dd0d7 convert HAVE_GCC handling to modern GCC release numbering:
- HAVE_GCC=5 is now the default (vs. HAVE_GCC=53 we've been using for
  GCC 5.4 and GCC 5.5.)
- remove some more GCC 4.8 code.  we don't support GCC 4 here.
- adjust set lists to gcc=5 from gcc=53.

add some basic HAVE_GCC=6 handling (totally unused so far.)
2018-02-02 01:02:39 +00:00
skrll ac34435581 Remove port-acorn26
OK core@
2018-01-24 09:04:40 +00:00
uwe 4f2e9ed826 Do not use HOST_CFLAGS and others. build.sh calls configure with
CFLAGS set to HOST_CFLAGS, etc - so HOST_* environment variables are
already taken into account if set.

OTOH, if configure were to add anything to CFLAGS etc, the old code
would happily ignore those changes, picking up original environment
variables instead.
2018-01-16 08:53:51 +00:00
uwe 4b7a180ace Do not use HOST_CFLAGS to link the make binary. 2018-01-15 20:14:49 +00:00
uwe 4b89f891fb G/c unused runcmd. 2018-01-15 19:57:49 +00:00
uwe 06ddb7b0da Make sure nbmake is always built with the right _PATH_DEFSYSPATH. 2018-01-15 19:52:54 +00:00
christos 0e229e5357 Better EXTERNAL_TOOLCHAIN support from Zachary McGrew
- Allow mdsetimage and dbsym to be built with EXTERNAL_TOOLCHAIN
- Allow BFDDIR and IBERTYDIR to be overwritten for mdsetimage and dbsym
2017-12-27 21:34:11 +00:00
sevan d866c85be9 regen 2017-12-09 04:23:22 +00:00
sevan bf692293ff Add asnprintf() to the AC_CHECK_DECLS list.
Resolves conflict when cross compiling on Cygwin the provided implementation
does not get picked up.

Closes PR toolchain/52797
2017-12-09 04:22:53 +00:00
christos 273109cafb we want no-iconv for the tools build, but we want iconv for mknative. 2017-11-29 04:24:35 +00:00
christos 3e9314d067 Changes for gdb-8.0.1 2017-11-29 03:33:01 +00:00
christos 3e65cf6f80 Be more selective about what to quote-quote: only paths and version numbers. 2017-11-29 03:32:28 +00:00
christos 6933911900 backslash me harder! 2017-11-29 03:06:46 +00:00
christos cb9e65d7bb since gmake does not have :Q handle it in sed... 2017-11-29 02:10:15 +00:00
christos c4e49a61b5 Adjust to gdb-8.0.1 which uses c++
XXX: quoting of variables that contain paths and versions is broken.
2017-11-28 22:25:16 +00:00
christos 7a367c106f use make -C path/to -f Makefile instead of make -f path/to/Makefile
so that includes with relative paths work.
2017-11-28 22:05:57 +00:00
mrg 3141ce7b36 update netbsd version. 2017-11-13 08:47:24 +00:00
christos 8018b9b342 use the variable for the source dir instead of duplicating it. 2017-10-04 21:42:20 +00:00
christos d8288c95fa - gcc.old == gcc-5.3, so copy mknative-gcc{,.old} and adjust
- disable dual libstdc++ abi per joerg
  (https://gcc.gnu.org/onlinedocs/libstdc++/manual/using_dual_abi.html)
  will require a major libstdc++ major bump.
2017-10-04 21:29:43 +00:00
joerg bf5991674e Be consistent with our header. 2017-10-03 10:28:30 +00:00
christos 2dfeb58bd4 fix fpurge declaration 2017-10-03 01:43:03 +00:00
christos d9a3cc43b7 Simplify. 2017-10-02 22:32:04 +00:00
christos cd84452b4c regen 2017-10-02 22:21:31 +00:00
christos 692f2d0a6f handle __fpurge being declared in <stdio_ext.h> 2017-10-02 22:19:45 +00:00
joerg f6f53c2528 Honor HOST_CC. 2017-09-07 18:57:47 +00:00
mrg 26c43e3543 move the GMP_MACHINE_ARCH definition into external/lgpl3/gmp/Makefile.arch.
soon to be GMP 6 allows us to have only two arm copies.
2017-08-22 09:17:50 +00:00
joerg 7c192b2a5e Update LLVM build glue for 5.0RC1. 2017-08-01 20:07:37 +00:00
jmcneill 055f044508 --disable-nls does not work in gdb subdir, so add am_cv_func_iconv=no to
configure env. Fixes build on FreeBSD.
2017-07-01 12:23:09 +00:00
skrll 48a2d8bd72 Update for new libfdt location 2017-06-08 17:16:44 +00:00