Commit Graph

879 Commits

Author SHA1 Message Date
joerg b49cc14919 Hook up LLVM's SPARC target. 2011-07-05 14:15:56 +00:00
joerg 8597eac543 Hook up LLVM's PowerPC. 2011-07-04 22:37:58 +00:00
joerg b0f1ff448a Update LLVM/Clang to r134374. This brings the xstorerng alias for Via
PadLock, a bugfix for the C++ ABI in one edge condition and various
compiler improvements.
2011-07-04 16:10:38 +00:00
mrg b2ad2936ae fix the previous 2011-07-03 12:26:02 +00:00
mrg 1f61213386 -I$DESTDIR/usr/include is escaping into the generated files from
the native-gcc run.  add some sed commands to remove them.
2011-07-03 12:11:32 +00:00
mrg d2d81d57a9 copy sysroot-suffix.h as well, for sh3. 2011-07-03 06:47:12 +00:00
mrg b9c57fbd15 also pull out LIB2ADD_ST for libgcc. 2011-07-02 13:25:05 +00:00
mrg 0debd27c81 avoid creating an unused directory. 2011-07-01 02:11:14 +00:00
mrg a8847d182c - call each ${MKNATIVE_CONFIG_TARGET_LIBS} target separately
- comment out maybe-all-target-libgcc
- cope with the special transformation needed for gtyp-input.list
2011-07-01 01:27:17 +00:00
wiz 4cbd24b23f dependant -> dependent 2011-06-30 20:09:15 +00:00
mrg 425b4dd861 fix previous; they belong in _headers1 2011-06-30 07:16:59 +00:00
mrg 2703d75c7b - repurpose MKNATIVE_CONFIG_TARGET_LIBS to list all the targets
- disable building pch for the mknative run
2011-06-30 07:02:17 +00:00
mrg 089e26552b also pull tr1_impl_headers parallel_headers and decimal_headers for libstdc++ 2011-06-30 07:01:14 +00:00
mrg 3e9b4b1af1 fix all-tree.def, and add gtyp-input.list 2011-06-29 05:06:03 +00:00
mrg 8d616c352f fix the path for libdecnumber. 2011-06-29 02:13:59 +00:00
mrg a4e3e6142c get libdecnumber info out of GCC. 2011-06-29 02:02:38 +00:00
mrg 9897cb288e also need bversion.h 2011-06-28 04:30:32 +00:00
mrg c86def5214 some more updates for GCC 4.5. 2011-06-28 03:58:55 +00:00
mrg 68a31119f2 output stuff to the right libiberty dir for gcc 4.5. 2011-06-23 12:06:32 +00:00
mrg 64f6248066 get this some what working with GCC 4.5. i at least have managed to
get crtstuff and libgcc to build for amd64, and have linked and tested
/bin/sh with all these GCC 4.5 compiled part.
2011-06-23 05:42:37 +00:00
mrg 63da379d23 use --sysroot with GCC 4.5. (maybe could with 4.1 too? the 4.1 code
here is broken right now, anyway, ever since the sysroot changes were
merged into our tree.)
2011-06-21 09:37:41 +00:00
mrg 2d7ccc14fc initial port to HAVE_GCC = 45. mknative-gcc parts are from me
and are largely untested, most of the rest is from chuq.
2011-06-21 04:11:12 +00:00
mrg e13b252934 always build gmake if HAVE_GCC.
build gmp, mpfr and then mpc if HAVE_GCC >= 45.
2011-06-21 02:15:41 +00:00
mrg d25ffa98a4 tools build framework for gmp, mpfr and mpc. from chuq. 2011-06-20 05:56:45 +00:00
plunky c84ce3700e because we use --sysroot, force the default paths to be normal
while here, enable tls support
2011-06-13 12:29:16 +00:00
matt 865180f6f7 If building the cross gcc for softfloat, add --with-float=soft so it will
default to it.
2011-06-10 16:31:18 +00:00
joerg d14e81e4ad Update to LLVM/Clang revision 131404. This includes the fix for asm labels
on builtins (broke longjmp usage) and a better cross-compiling support
in combination with -m32/-m64.

Update configuration to include /usr/include/clang-3.0 in the search
path.
2011-05-16 19:27:47 +00:00
joerg 46f5119e40 Update LLVM and Clang snapshot 2011-05-12 14:56:22 +00:00
joerg 1a9a81992d BSD grep is good enough if someone really needs src/tools/grep. 2011-04-21 14:27:11 +00:00
tron 0f152b1dd8 Set "HOSTLIB" before including "bsd.own.mk" to get the destination
directory checks to work properly.
2011-04-17 12:52:26 +00:00
elric 98fbe74f8c Upgrade Heimdal to 1.5pre1 by switching the build from crypto/dist/heimdal
to crypto/external/bsd/heimdal.  The latter was just imported as the head
of the Heimdal tree as of a few days ago.
2011-04-15 18:05:42 +00:00
elric f6f6e04b4f Tool for slc, a command built during the Heimdal build. 2011-04-14 19:38:21 +00:00
joerg c28ff146c9 For USETOOLS=yes, use the --sysroot support of the compiler to cut down
the number of hard-coded pathes and magic invocations.
2011-04-10 16:52:36 +00:00
joerg 333ceea9fc Enable support for --sysroot in binutils and gcc. 2011-03-24 13:33:42 +00:00
joerg 97e154c924 --with-clang-resource-dir is no longer needed 2011-03-21 02:10:10 +00:00
christos 7ee5629d5b add a stdio neutral getline/getdelim implementation. 2011-03-20 20:48:57 +00:00
joerg 73a4306de0 Update LLVM snapshot. This allows deriving the target from the binary
name, provides a proper CPP mode and fixes a number of compat issues
in the integrated assembler.

Build the toolchain compiler optimized and without assertions now.
2011-03-18 23:32:01 +00:00
tsutsui 94e49d10f9 tools/mklocale has not required ctype_bits.h since the following fix:
http://mail-index.NetBSD.org/source-changes/2010/06/20/msg011122.html

Tested build.sh tools on CentOS 5.
2011-03-18 15:13:54 +00:00
riz c8735093ef .WAIT for makefs, because in most builds, it's the first target
which includes Makefile.nbincludes, whose beforedepend: has
some race condition I don't fully understand, and which has been
causing many (but not all!) -j16 builds on the autobuild cluster
to fail in tools since sometime between 201103061600 and 201103070900.

With the proper voodoo, I was able to get 8 builds in a row to fail
without this change, and 16 in a row to succeed with it.

XXX a proper fix likely involves reworking the beforedepend: target
of Makefile.nbincludes, but this should get the build cluster back up
to full functionality in the meanwhile.
2011-03-17 19:06:45 +00:00
he e078102c8c This tool now depends on updated target includes in the tools build
for an UPDATE build to succeed; ensure that by including
${.CURDIR}/../Makefile.nbincludes.
2011-03-07 13:28:06 +00:00
joerg 3a6bc2a9c4 ufs/ufs/quota.h is now used by makefs 2011-03-07 02:02:36 +00:00
bouyer fcf38c8c34 merge the bouyer-quota2 branch. This adds a new on-disk format
to store disk quota usage and limits, integrated with ffs
metadata. Usage is checked by fsck_ffs (no more quotacheck)
and is covered by the WAPBL journal. Enabled with kernel
option QUOTA2 (added where QUOTA was enabled in kernel config files),
turned on with tunefs(8) on a per-filesystem
basis. mount_mfs(8) can also turn quotas on.

See http://mail-index.netbsd.org/tech-kern/2011/02/19/msg010025.html
for details.
2011-03-06 18:15:30 +00:00
nakayama c09c2a7b34 Fix build on Solaris 10. 2011-03-03 14:53:01 +00:00
phx e1b5cdc215 mkubootimage is certainly useful for sandpoint 2011-02-25 23:29:16 +00:00
joerg 213144e1de Update LLVM/Clang snapshot. This brings improvements for the integrated
assembler and support for -cxx-isystem in the driver.
2011-02-23 03:09:02 +00:00
joerg daf6c4152f Update LLVM/clang snapshot. This brings in support for
.pushsection/.popsection and fixes clang -B to be incremental.
2011-02-17 18:35:35 +00:00
joerg 48360965f3 Add LLVM and clang build system. It is enabled by MKLLVM=yes.
Upstream sources can be fetched by running "make checkout" in
src/external/bsd/llvm, they will be properly imported once the
integration and missing features are sorted out.
2011-02-06 01:13:42 +00:00
yamt bf3102ba36 comment 2011-02-05 13:30:26 +00:00
matt 06de5a61bb Make mkubootimage for evbmips and evbppc too. 2011-01-31 03:41:10 +00:00
pooka 5f7e80a834 Add support for the Extensible MIPS ("eMIPS") platform. The
NetBSD/emips port runs on Xilinx and Beecube FPGA systems and the
Giano system simulator.

eMIPS is a platform developed at Microsoft Research for researching
reconfigurable computing.  eMIPS allows dynamic loading and scheduling
of application-specific circuits for the purpose of accelerating
computations based on the current workload.

NetBSD eMIPS support for NetBSD 4.x was written at Microsoft Research
by Alessandro Forin and Neil Pittman.  Microsoft Corporation has
donated full copyright to The NetBSD Foundation.

Platform support for eMIPS is the first part of Microsoft's
contribution.  The second part includes the hardware accelerator
framework and will be proposed on tech-kern soon.
2011-01-26 01:18:43 +00:00
apb ff7405e5b4 Define PRI[diouxX]8. We previously did this only for
16- and 32-bit type, but now PRIu8 is needed for tools/disklabel.

Also define SCN[diouxX]{8,16,32}, the scanf counterparts
to the PRI[diouxX]{8,16,32} macros.

Tested via "build.sh tools" on a system whose native definitions
or the PRI* and SCN* mcros was disabled.
2011-01-10 20:38:35 +00:00
joerg 762325586d If MKREPRO, transform ${NETBSDSRCDIR} to /usr/src and ${DESTDIR} to /
for the purpose of the C preprocessor.  This avoids leaking the source
path into the final binaries.
2010-12-25 18:56:44 +00:00
njoly deb4c35e46 Adjust LDFLAGS handling to fix curses detection for mknative-gdb. 2010-12-24 13:12:09 +00:00
christos 6a9b3088d8 hook to the new awk in external 2010-12-12 04:06:19 +00:00
christos 0c40d420be recognize isysroot 2010-11-14 15:18:24 +00:00
joerg c1e0a5bd50 Replace the current usage of Elf64_Half with Elf64_Word and rename
NetBSD specific Elf64_Quarter to Elf64_Half. This restores compatibility
with the common ELF specifications.
2010-08-28 21:30:02 +00:00
mrg 25c3593d4e add new option to build/use tools/pigz for compressing sets. for now
USE_PIGZGZIP defaults to "no".  (it depends upon local <pthread.h> and -lz.)

you can set it to "yes" on most modern platforms just fine.
2010-08-15 07:27:33 +00:00
mrg 4c92852a80 remove almost all the ability to build netbsd with an a.out target.
we're ELF now, and there are many missing checks against OBJECT_FMT.
if we ever consider switching, the we can figure out what new ones
we need but for now it's just clutter.

this doesn't remove any of the support for exec_aout or any actually
required-for-boot a.out support, only the ability to build a netbsd
release in a.out format.  ie, most of this code has been dead for
over a decade.

i've tested builds on vax, amd64, i386, mac68k, macppc, sparc, atari,
amiga, shark, cats, dreamcast, landisk, mmeye and x68k.  this covers
the 5 MACHINE_ARCH's affected, and all the other arch code touched.
it also includes some actual run-time testing of sparc, i386 and
shark, and i performed binary comparison upon amiga and x68k as well.


some minor details relevant:
- move shlib.[ch] from ld.aout_so into ldconfig proper, and cut them
  down to only the parts ldconfig needs
- remove various unused source files
- switch amiga bootblocks to using elf2bb.h instead of aout2bb.h
2010-07-06 05:59:50 +00:00
riz 5929231814 Rename Makefile.disklabel to Makefile.nbincludes, as this file has
been used by more than disklabel for years.  New name suggestion from
mrg@ .
2010-06-19 23:11:10 +00:00
riz a7a0c207ec mklocale now requires <sys/ctype_bits.h> to build, so install it
under ${TOOLDIR} when building as a host tool.

XXX Makefile.disklabel is clearly mis-named.  I'll deal with that
shortly.
2010-06-19 22:36:15 +00:00
jmcneill 192740f5f9 hook mkubootimage into the build 2010-06-18 18:57:27 +00:00
mrg dcf7552621 add support to build pigz as a host tool.
still missing:
- TOOL_PIGZ
- support to use it instead of the host's "gzip"
2010-06-18 05:26:12 +00:00
jmmv 357bd260c3 Bye bye atf-compile, you won't be missed. 2010-06-04 08:34:35 +00:00
hans 31b20c1266 Fix tools build on Solaris with MKCROSSGDB=YES. 2010-05-08 23:18:44 +00:00
jmmv 441d96f6d5 Adjust paths to new location of the atf-compile sources in atf 0.8.
(You may be happy to know that this tool will probably disappear in
the next atf release!)
2010-05-08 08:20:18 +00:00
cegger 8690c1d646 remove OSX specific fix where CLOCK_REALTIME is not defined.
It has been properly fixed in
http://mail-index.netbsd.org/source-changes/2010/03/26/msg008200.html
2010-03-27 07:16:57 +00:00
cegger 1359eca921 toolchain buildfix on OSX with MKDTRACE=yes:
The host <sys/time.h> doesn't provide CLOCK_REALTIME but ctf uses it.
See http://mail-index.netbsd.org/current-users/2010/03/20/msg012963.html

No comments.
2010-03-26 07:16:12 +00:00
hans ee93caba9c Fix build on Solaris. "seems reasonable" by joerg. 2010-03-07 19:10:10 +00:00
darran 5f2f3d9ce8 DTrace: add libelf, libdwarf, libctf, and CTF tools to the toolchain,
built when MKDTRACE=yes.
2010-03-02 20:47:01 +00:00
darran ec591d7fd5 DTrace: add CTF tools to the toolchain (not built yet). 2010-02-24 21:34:57 +00:00
roy fde317d2b1 libterminfo can now compile a single terminfo description which allows
$TERMINFO to be a terminfo description as well as a file reference.

This enables the user to modify the terminfo description on read-only
media.
2010-02-22 23:05:39 +00:00
roy 20fbb1c876 Use HOST_SRCS instead of adding to SRCS for hash.c 2010-02-20 19:04:48 +00:00
roy 47aa05b406 Use the pre-built hash table. 2010-02-20 17:02:33 +00:00
joerg 637b0cffec Rewrite argument processing to deal with spaces and other meta
characters in options. This was exposed by the "NetBSD 5.99" argument of
mandoc.
2010-02-20 15:04:03 +00:00
joerg 2c23e1b113 Add intermediate files to CLEANFILES. Explicitly include bsd.sys.mk to
ensure that HOST_SH is set, even when e.g. cleandir is used.
Noticed by Nicolas Joly.
2010-02-20 13:43:31 +00:00
joerg 1bd975ff5c Build mandoc unconditional if man pages are desirable. All
compatibility issues are supposed to be sorted out.
Build groff conditionally on MKGROFF. It is currently the only component
that requires C++.
2010-02-20 00:35:11 +00:00
joerg 83a16fe245 Update tool version for mdocml 1.9.15. 2010-02-19 23:03:02 +00:00
roy 3dc9dc4362 Store our generated files in CVS and remove nbperf from the toolchain.
This allows us to build consistent libs without an ever changing hash.
2010-02-03 20:56:54 +00:00
roy 98eb889579 Userland now builds and uses terminfo instead of termcap.
OK: core@, jdc@
2010-02-03 15:34:37 +00:00
tsutsui 18ee5820df No need to compile strlcpy.c and strlcat.c here.
They are in libnbcompat.a, not in src/lib/libc/string
(moved into src/common/lib/libc/string), and
strlcpy.c and strlcat.c derived from crypto/dist/heimdal/lib/roken
won't include the target functions if nbtool_config.h defines
HAVE_STRLCPY and HAVE_STRLCAT.
2010-02-03 12:58:53 +00:00
tsutsui 766937a0b1 Regen this properly per procedure described in src/tools/compat/configure.ac. 2010-01-21 12:55:04 +00:00
asau 76d4b3bdab Regenerate. 2010-01-15 11:27:01 +00:00
asau 9f9e90f73c Test for <sys/endian.h> and provide HAVE_SYS_ENDIAN_H.
Fixes FreeBSD hosted builds (PR 42440 and PR 42470).

Approved by <dholland>.
2010-01-15 11:26:25 +00:00
christos f9076c1664 undef and redefine instead of checking if it is define, from joerg 2010-01-14 21:38:19 +00:00
christos 76aa0f6aa7 provide __arraycount for those that don't have it. 2010-01-14 21:26:56 +00:00
tsutsui d3724ba41f Add necessary byteswap ops for tools disklabel(8) used with -F option
(treating a target disk as a regular file and suppressing ioctl(2)s)
on reading/writing disklabel in a target file.
This allows cross build enviroment creating bootable disk images
for targets in different endian.
No functional changes to native (non-tools) disklabel(8) command.

Closes PR toolchain/42357.
2010-01-05 15:45:26 +00:00
tsutsui 47ef4e54e9 Include "nbtool_config.h" for src/tools/zic/ and
remove bogus -DNOID to disable __RCSID().

XXX: should we also remove #ifndef lint from scheck.c and zic.c?
2010-01-02 10:42:49 +00:00
he 1058cef38c To unbreak the build, temporarily remove the build of libelf here,
since no other part of the build depends on this yet.

Suggested as a temporary workaround by thorpej@
2009-12-29 22:13:00 +00:00
thorpej 69ceabfc59 Include nbtool_config.h as needed. Should fix missing defn of __unused in
some host tool environments.
2009-12-29 17:32:18 +00:00
cegger 49fd8fe03d Add tooldir include path.
This fixes amd64 toolchain build on OSX.
2009-12-23 20:28:29 +00:00
mrg 8c0cbe863f revert the previous; not intended to be part of that commit, or any commit 2009-12-23 20:17:13 +00:00
mrg 3fa4bcf59c rework the main SUBDIR list here as suggested by enami. put .WAIT on
the same line as the target that needs to wait, but before the target,
rather than on the previous line, which led to confusion and an error
being introduced in the previous change.
2009-12-23 20:15:21 +00:00
mrg 2dc54d1398 move the build of pax before libelf. fixes my build of tools/libelf,
though i didn't look to see why libelf needs pax.
2009-12-21 20:57:36 +00:00
thorpej aa6d6cf7b8 Add support for building libelf in a host-tool environment.
XXX Makefile.disklabel is really mis-named, but I'm not going to tackle
that problem right now.
2009-12-21 18:21:17 +00:00
uebayasi 656d7ae41f get_libgcc_new: Make previous work for digit only ABI names. 2009-12-17 15:48:13 +00:00
uebayasi eae6ecc426 get_libgcc_new: Teach multilib. 2009-12-17 15:01:33 +00:00
uebayasi 6d1f240d45 Fix parallel build. Analyzed & patch provided by enami@, thanks! 2009-12-15 11:39:05 +00:00
christos a31812a3a1 disable only parallel make. 2009-12-14 14:13:16 +00:00
uebayasi 0d144fa114 Disable parallel build, which always fails at compiling itable.c / interp.c.
Only affect MKCROSSGDB=yes.
2009-12-14 08:51:31 +00:00
pooka d6224f4507 Remove support for NetBSD/playstation2. 2009-12-05 16:29:10 +00:00