Commit Graph

2334 Commits

Author SHA1 Message Date
matt
0bccd770b8 Change the way we default MK vars to yes or no allowing
MK<var>.${MACHINE_ARCH} to override.
e.g MKGDB.aarch64=no will default MKGDB to no on aarch64
2014-08-11 22:28:50 +00:00
jnemeth
3481529578 Add the infrastructure for MODULAR support for Xen kernels. At
the moment, this can only load very simple modules due to missing
symbols.  It is being add at this time to make pullups to the
netbsd-7 branch easier.  It is not enabled by default in any kernels.
2014-08-11 03:43:25 +00:00
joerg
4ca7de0cb3 Put GCC/GAS specific options under ACTIVE_CC == "gcc". 2014-08-10 17:44:26 +00:00
joerg
6e4f4efa7c LLVM builds on PowerPC want no libgcc, but enabled libc++. 2014-08-10 17:39:11 +00:00
matt
547b3a3b01 Changes to existing files to enable building AARCH64 userland.
evbarm64-el
This is clang only.  While gcc4.8 supports aarch64, no netbsd support has
been written for aarch64 with gcc4.8.
2014-08-10 05:56:36 +00:00
apb
146f7f2fe4 Wrap CTFCONVERT invocations in ${defined(CTFCONVERT):? ... :}
so it performs the test at the time the rule is invoked.  We can't
use a ".if defined" test because that would be tested at the time the
sys.mk file is parsed, which may be before CTFCONVERT has been set by
bsd.own.mk.

Remove the now-unnecessary assignment "CTFCONVERT ?= : ctfconvert",
and the similar assignment to CTFMERGE.  Now the build logs are not
cluttered by many unnecessary invocations of the ": ctfconvert ..."
2014-08-06 15:23:48 +00:00
apb
2e4737e211 Typo in comment 2014-08-05 15:51:23 +00:00
apb
71da667fc9 Use ${TOOL_GZIP_N} instead of ${TOOL_GZIP} -n, and similarly
use ${TOOL_GZIP_N} -9 instead of ${TOOL_GZIP} -9n, etc.

This will pass -nT instead of just -n if the gzip program is
actually pigz.
2014-08-05 15:40:58 +00:00
apb
6b9469411b Provide and document GZIP_N_FLAG and TOOL_GZIP_N.
These may be used to pass "-nT" instead of just "-n"
when the gzip program is actually pigz.
2014-08-05 15:25:20 +00:00
plunky
95e44a9f0c add p++ tool, for PCC 2014-07-24 20:29:19 +00:00
lneto
4ab4902eb2 lua: updated from 5.1 to 5.3 work3
* lua(1):
  - changed lua_Integer to intmax_t
  - updated distrib/sets/lists and etc/mtree
  - updated bsd.lua.mk
  - fixed bozohttpd (lua-bozo.c)
  - compatibilized bindings: gpio, sqlite
* lua(4):
  - removed floating-point and libc dependencies using '#ifndef _KERNEL'
  - fixed division by zero and exponentiation
  - libkern: added isalnum(), iscntrl(), isgraph(), isprint() and ispunct()
  - acpica: removed isprint() from acnetbsd.h
  - libc: moved strcspn.c, strpbrk.c and strspn.c to common
  - removed stub headers
  - compatibilized bindings: luapmf, luasystm
* reorganized luaconf.h
* updated doc/CHANGES and doc/RESPONSIBLE
2014-07-19 18:38:33 +00:00
plunky
c76e451dca when calling mkdep, pass any -std=* flags for C and C++ source files
to ensure that any definitions this implies are set
2014-07-19 17:19:22 +00:00
nakayama
4a75cb34db Add new transform for gl.pc.
Now GLX_TLS is "no" since GLX_USE_TLS is not defined.
2014-07-16 14:10:26 +00:00
christos
f4679b8a67 stray slash 2014-07-15 13:27:04 +00:00
christos
0fb28704a3 fix typo 2014-07-15 13:25:40 +00:00
christos
da52f38464 Add vfontedpr 2014-07-15 13:22:39 +00:00
dholland
fa41303899 Add MKGROFFHTMLDOC and make it default to no. It seems that sometimes
when generating html groff runs netpbm behind your back. Needless to
say we don't have netpbm in base, so this fails on a clean install; so
for now disable generating html for /usr/share/doc by default.
Workaround for PR 48970.

It seems that all available document preparation toolchains are made
of fail.
2014-07-06 18:22:03 +00:00
dholland
92684d2864 Don't install EXTRAHTMLFILES if MKHTML is "no". 2014-07-06 06:34:33 +00:00
dholland
0663904a6f Remove HTMLDOCDIR; it is no longer used (and doesn't fit the docs
scheme) and it was never honored anyway except in a couple places.
2014-07-05 19:23:38 +00:00
dholland
c3ab26950f Rework /usr/share/doc.
Update the <bsd.doc.mk> infrastructure, and update the docs to match
the new infrastructure.

- Build and install text, ps, pdf, and/or html, not roff sources.

- Don't wire the chapter numbers into the build system, or use them in
the installed pathnames. This didn't matter much when the docs were a
museum, but now that we're theoretically going to start maintaining
them again, we're going to add and remove documents periodically and
having the chapter numbers baked in creates a lot of thrashing for no
purpose.

- Specify the document name explicitly, rather than implicitly in a
path. Use this name (instead of other random strings) as the name
of the installed files.

- Specify the document section, which is the subdirectory of
/usr/share/doc to install into.

- Allow multiple subdocuments. (That is, multiple documents in one
output directory.)

- Enumerate the .png files groff emits along with html so they can be
installed.

- Remove assorted hand-rolled rules for running roff and roff widgetry
and add enough variable settings to make these unnecessary. This
includes support for
   - explicit use of soelim
   - refer
   - tbl
   - pic
   - eqn

- Forcibly apply at least minimal amounts of sanity to certain
autogenerated roff files.

- Don't exclude USD.doc, SMM.doc, and PSD.doc directories from the
build, as they now actually do stuff.

Note: currently we can't generate pdf. This turns out to be a
nontrivial problem with no immediate solution forthcoming. So for now,
as a workaround, install compressed .ps as the printable form.
2014-07-05 19:22:02 +00:00
mrg
200f5dd968 set TOOLCHAIN_MISSING for playstation2.
default EXTERNAL_TOOLCHAIN to choosing to be GCC.

ps2 pkgsrc almost works now..
2014-06-29 15:10:17 +00:00
tsutsui
9118f0148c Use "-O2 -fno-reorder-blocks" instead of "-Os" for m68k default optimization.
"-Os" was specfied when gcc 4.5.x was imported and the commit log says
"-O2 produces much bigger code with gcc 4.5 than it did with gcc 4.1"
but "-Os" disables most inline declarations and makes some applications
much slower.  "-O2 -fno-reorder-blocks" seems enough to reduce sizes
and disabling -freorder-blocks wouldn't cause particular performance
impact on ancient m68k machines with small cache memories.
See my post on port-m68k@ for more details:
http://mail-index.NetBSD.org/port-m68k/2014/06/22/msg000488.html

No objection in the thread and "seems fine to me" from mrg@.
2014-06-29 05:20:15 +00:00
christos
5326abe227 unbreak powerpc64; it is not ready for gcc-4.8 ATM. 2014-06-23 02:13:53 +00:00
mrg
26f35dd6b6 remove the build support for GCC 4.1, and any hacks i found for it.
there could still be more -- i only looked for lines matching
both "HAVE_GCC" and "4" as words (grep -w.)
2014-06-13 01:17:45 +00:00
skrll
90a8b32c92 Switch sh3 to gcc 4.8. My landisk just survived two atf runs through
/usr/tests with

Summary for 587 test programs:
    3691 passed test cases.
    50 failed test cases.
    27 expected failed test cases.
    137 skipped test cases.
2014-06-06 21:04:02 +00:00
martin
84d9bd2e1d Switch ia64 to gcc 4.8 2014-06-06 20:24:03 +00:00
matt
96c7d9c422 Switch VAX to default to GCC 4.8 2014-06-05 21:05:42 +00:00
joerg
4692c72dc2 If clang is requested for i386, amd64 or eARM, also build libc++. 2014-05-30 18:39:29 +00:00
joerg
b983dfb658 Always use our exception handling code for eARM. 2014-05-30 18:31:58 +00:00
joerg
d4f1ac8b3b Remove platform support list for libc unwinder, just keep comment about
ia64 state.
2014-05-30 18:30:32 +00:00
plunky
6fbec3793c use -Wno-traditional only for GCC rather than !CLANG 2014-05-27 16:16:01 +00:00
plunky
4eab4174d7 we use C99 syntax but with some GCC extensions, so signal that depending
on the compiler in use
2014-05-27 16:14:03 +00:00
matt
acf5e54066 Since the majority of architectures uses GCC 4.8, make it the default.
Only ia64, m68k, 32-bit powerpc, and sh3 still use GCC 4.5
2014-05-23 18:51:31 +00:00
skrll
3d91f85ed1 Under "switch it" instructions from matt@ make mips use gcc 4.8 2014-05-23 18:35:36 +00:00
martin
b179bc7a0f Switch powerpc64 architectures over to gcc 4.8.
OK: mrg@
2014-05-20 09:59:20 +00:00
joerg
767787d382 Use compiler-rt in libc for Clang on NetBSD/ARM as well. 2014-05-17 23:32:32 +00:00
joerg
38febcf304 Structure HAVE_LIBGCC condition similar to HAVE_LIBGCC_EH. 2014-05-17 23:31:57 +00:00
joerg
d47b3f5c30 Mark unwinding as supported for eARM. 2014-05-16 00:19:00 +00:00
phx
3cf2564bdb Use TOOL_NCDCS to turn an ibmnws kernel automatically into a valid NCD
firmware image for netbooting. This is still a valid ELF kernel, but with
a patched CRC checksum and image size included.
2014-05-08 13:58:34 +00:00
martin
ecad429601 As discussed on tech-toolchain, offer a new make variable MKKDEBUG - if
set to "yes", kernel builds will gain debug info and a netbsd.gdb will
be created (same as adding "makeoptions DEBUG=-g" to the config file).
2014-05-05 19:06:29 +00:00
wiz
5f9e0f41f2 Fix typo in previous. 2014-04-26 20:25:07 +00:00
joerg
380ce570fd Add initial unwind support for MIPS and MIPS64. 2014-04-26 20:15:48 +00:00
pooka
d6b3d0da5a allow use with linkers that don't support --warn-shared-textrel
(Solaris, OpenBSD)
2014-04-24 00:14:59 +00:00
joerg
61731496eb Retire USE_COMPILERCRTSTUFF=yes. 2014-04-22 13:20:58 +00:00
joerg
f76ae5ef4f Basic unwind support for HPPA. 2014-04-19 21:21:24 +00:00
christos
4730dabc79 Add -g (gnu) so lint recognizes __attribute__ 2014-04-18 00:37:46 +00:00
joerg
a997683cbb Add basic Alpha support to libunwind. 2014-04-15 18:40:34 +00:00
joerg
7209984597 Add initial unwind support for SPARC/SPARC64. 2014-04-15 11:44:26 +00:00
matt
c5ab5d969b Back changes from 1.349 on since the -Wl,-x bug has been fixed in binutils. 2014-04-11 16:51:43 +00:00
christos
2e21bd91e3 explain what's going on, add another kludge for -g 2014-04-11 15:56:09 +00:00