Commit Graph

2015 Commits

Author SHA1 Message Date
joerg
1fe45e28aa Add fine-grained compiler selection, including clang support. 2011-05-19 14:29:27 +00:00
adam
dde94184d6 Reverting last change; joerg has a better approach 2011-05-19 06:09:36 +00:00
adam
84862a28ce Add support for LLVM/Clang 2011-05-18 13:08:14 +00:00
christos
6bbebf8328 Enable c99 mode by default.
This has the side effect of complaining for missing prototypes
implicit type declarations and missing return statements.

NB:	I've only ran a build on amd64, so other platforms MI code might break.
	If you can't wait for me to fix them, revert this commit.
2011-05-17 01:12:34 +00:00
jmmv
21bb82bc2e Remove any stale .fifo files when doing 'test'. These may be leaked if
the user aborts the execution of atf-run with Ctrl+C, which will prevent
a subsequent 'make test' from working at all.
2011-05-14 17:47:28 +00:00
haad
1d514c3d24 Add MKPERFUSE flag to those who are enabled by default. 2011-05-09 14:36:48 +00:00
he
ae7d1665f4 The new Heimdal adds -lwind and -lheimbase to the set of libraries,
so define the corresponding LIB* variables.
These are also needed in the PAM_STATIC_* variables, so add them there too.
2011-04-26 08:22:17 +00:00
joerg
0cef9f9563 Add MKBSDGREP switch for easy testing of the GNU grep
replacement/alternative.
2011-04-21 14:26:33 +00:00
joerg
cad1e2593b Fix --sysroot usage. 2011-04-18 02:16:55 +00:00
christos
afb74ce0eb Revert previous, breaks builds completely (cd /usr/src/bin/test && make clean &&
make)
2011-04-17 15:03:37 +00:00
tron
7d762fda62 Don't use "--sysroot=/" for host builds as "nbhost-mkdep" doesn't
understand that option. This should unbreak tool builds.
2011-04-17 12:54:22 +00:00
mrg
19625811ee prepare for evbppc modules, and allow overriding the ${MACHINE} for
installed modules.
2011-04-17 09:47:40 +00:00
mrg
3776a6678e it's spelled CPPFLAGS not CPPFLAGGS. 2011-04-17 00:05:36 +00:00
christos
62ee277445 Need --sysroot=/ otherwise ld does not find crt0.o and friends. 2011-04-16 22:45:23 +00:00
christos
640ac4b1c5 Simplify and correct (previous did not work for !defined(DESTDIR) 2011-04-16 21:41:24 +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
joerg
5e3fd2e02b Adjust --sysroot related usage:
-Wl,-rpath does not expand =, so just drop it.

Drop -Wl,-rpath-link entries that duplicate the -Wl,-rpath entries, this
is done implicitly now that ld is built with sysroot support.

Use ${DESTDIR} explicitly for the remaining -Wl,-rpath-link entries.
2011-04-11 23:03:38 +00:00
joerg
c033559e42 GCC 4.1 doesn't have the support code for -I =... yet, so don't use it
for now.
2011-04-11 21:04:11 +00:00
joerg
31ba4e2954 Use ?: operator to determine when to add --sysroot. Unbreaks clang
bootstrap.
2011-04-10 21:03:17 +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
8f1068802c Compute the build seed using :hash. 2011-04-07 01:40:32 +00:00
plunky
bbe1bca01a if not including <bsd.prog.mk> then we need to clean up our own mess 2011-03-27 14:22:02 +00:00
bouyer
d9210c2405 Add a new libquota library, which contains some blocks to build and/or
parse quota plists; as well as a getfsquota() function to retrieve quotas
for a single id from a single filesystem (whatever filesystem this is:
a local quota-enabled fs or NFS). This is build on functions getufsquota()
(for local filesystems with UFS-like quotas) and getnfsquota();
which are also available to userland programs.
move functions from quota2_subr.c to libquota or libprop as appropriate,
and ajust in-tree quota tools.
move some declarations from kernel headers to either sys/quota.h or
quota/quota.h as appropriate. ufs/ufs/quota.h still installed because
it's needed by other installed ufs headers.
ufs/ufs/quota1.h still installed as a quick&dirty way to get a code
using the old quotactl() to compile (just include ufs/ufs/quota1.h instead of
ufs/ufs/quota.h - old code won't compile without this change and this is
on purpose).
Discussed on tech-kern@ and tech-net@ (long thread, but not much about
libquota itself ...)
2011-03-24 17:05:39 +00:00
plunky
b34a9665c8 CLEANFILES is not processed by <bsd.files.mk> so don't assume that
anything assigned there will be cleaned up; handle clean up of the
PKGCONFIG files explicitly. (eg lib/dri/dri.pc was not cleaned)
2011-03-12 13:22:03 +00:00
njoly
2198134aa6 Adjust html link template and css location for man pages in arch
subdirs.
2011-03-08 12:20:17 +00:00
jmmv
8de5cd3354 Revert previous (revision 1.261): it broke the build because PROG_CXX is
defined in terms of PROG, so later on we would end up with target duplicates
because both PROG_CXX and PROG were being converted to PROGS_CXX and PROGS.

Did not catch this earlier because the test build I did was not clean and
thus the duplicate targets did not have nasty effects.
2011-03-08 07:53:43 +00:00
jmmv
18b629ec58 Always convert PROG to its plural form independently of whether PROG_CXX
is defined or not.  From Garrett Cooper in private mail.
2011-03-07 19:05:03 +00:00
jmmv
07be9009b6 Define LIBATF_C and LIBATF_CXX to point to their corresponding .a files and
use these to properly set DPADD for test programs.
2011-02-20 20:16:01 +00:00
jmcneill
20ae4ea372 add 'i386' to CLEANFILES on amd64, thanks mrg! 2011-02-20 04:05:14 +00:00
jmmv
814b005f0c Miscellaneous improvements from Garrett Cooper:
- Add to variables only once, instead of from within a loop.
- Use :tl instead of :M to match against strings for readability.
- Use CLEANFILES instead of a custom clean target.

Full release built successfully after this change.
2011-02-16 10:13:00 +00:00
christos
efe059951d add saslc 2011-02-13 00:42:45 +00:00
matt
94810ded7b Only define DPLIBC if LIBC_SO is not empty otherwise we an errant
dependency on DESTDIR.
2011-02-10 21:55:33 +00:00
mrg
1051ab1175 add missing SRCDIR for synaptics. 2011-02-07 21:23:47 +00:00
jmmv
3b500cc2c3 Fix the 'test' target to force atf to use its own files from DESTDIR instead
of the installed ones.  This is achieved by overriding all ATF_* environment
variables and making them point inside DESTDIR.
2011-02-06 19:38:48 +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
joerg
afe7317d58 Don't use -nostdinc or -nostdinc++ if this is included in a HOSTLIB. 2011-02-06 01:08:37 +00:00
joerg
5c52343643 Allow HOSTLIB to use C++ by not specifying -nostdinc++. 2011-02-06 00:52:49 +00:00
matt
a66016ab15 Add TOOL_MKUBOOTIMAGE 2011-01-31 03:42:01 +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
he
a73bf0c204 Default MKREPRO to "no", so that the tests in stand/ etc. don't need
to add ":Uno" to the variable expansion inside the test to avoid errors
from nbmake.
2011-01-25 10:28:56 +00:00
joerg
19b23810a0 Switch remaining platforms to modern CPP for assembler. 2011-01-21 15:59:04 +00:00
matt
c17daf3806 Default mips64e[bl] to SOFTFLOAT. 2011-01-18 08:31:18 +00:00
joerg
13d8b2b89c Move SPARC and SPARC64 to modern CPP. Update UPDATING note for this and
Alpha.
2011-01-17 18:11:09 +00:00
pooka
14c8789b8c Add rump bits to DPSRCS so that update builds work correctly. 2011-01-17 18:05:52 +00:00
joerg
66ef8e5b14 Alpha doesn't need -traditional-cpp for assembler. 2011-01-16 19:29:59 +00:00
joerg
d3a052c472 Allow use of traditional CPP to be set on a per platform base in sys.mk.
Honour this for dependency processing in bsd.dep.mk.  Switch i386 and
amd64 assembly to use ISO C90 preprocessor concat and drop the
-traditional-cpp on this platform.
2011-01-12 23:12:10 +00:00
joerg
681aec7b5a USETBL no longer disables mandoc processing. 2011-01-12 23:05:31 +00:00
joerg
6518b0c675 mandoc now supports tbl(1) formatting, so adjust rules.
Use -Wstop in lintmanpages.
2011-01-12 23:03:24 +00:00
matt
d24d5902b3 Kernels modules are c99 (gnu99) just like the kernel.
Add(move) -std=gnu99 to CPPFLAGS (from COPTS).
2011-01-02 19:24:47 +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
pooka
43673c5e38 befriend RUMPPRG with CRUNCHEDPRG 2010-12-13 21:47:04 +00:00
pooka
84d9317cb6 Define RUMPPRG, which is just like PROG, except it additionally
builds a rump client with the name rump.${PROG}.  The rump client
is not installed suid/sgid by default even if BINMODE is defined.
2010-12-13 17:22:26 +00:00
martin
f6c30c513f Revert last, gcc(1) checks explicitly for -r on some platforms to disable
passing down --relax as well.
2010-12-11 18:42:33 +00:00
joerg
f360555e8a Revert last, gcc(1) checks explicitly for -r on some platforms to disable
passing down --relax as well.
2010-12-10 20:08:17 +00:00
joerg
49755c474a gcc passes down -r directly to ld, so make it explicitly a linker option. 2010-12-08 02:04:13 +00:00
joerg
d9da1368fc Don't depend on ${CC} passing down -R to ld, use -Wl,-rpath explicitly. 2010-12-08 01:57:22 +00:00
mrg
aa6fd2d6fa switch ofppc to xorg. 2010-12-05 09:54:34 +00:00
wiz
36c0ebae6f Remove HTMLDEPS; was only used by nroff.
Ok joerg@
2010-12-02 23:08:04 +00:00
skrll
1f561df24f Fix a comment 2010-11-28 18:44:13 +00:00
skrll
15fa0783d7 Centralise USE_COMPILERCRTSTUFF.
PCC might need help.
2010-11-28 18:40:54 +00:00
mrg
5efc132dce - always include <xorg-config.h> for DIX components
- update stuff to xorg-server 1.9.2
2010-11-23 09:49:30 +00:00
mrg
a69630cac3 add transforms for dri.pc. 2010-11-23 00:02:20 +00:00
pooka
ebb5797af8 add LIBRUMPCLIENT 2010-11-22 11:29:07 +00:00
tsutsui
33a2e12125 Switch NetBSD/dreamcast to X11FLAVOUR=Xorg.
No particular comments on port-dreamcast@ and
tested with JP (HKT-7600) and US (HKT-7620) keyboards.
2010-11-12 16:05:49 +00:00
lukem
44f36b23ab Preserve date on original shared library or program when stripping
the debug symbols and adding the debug-link to .debug.
Use '(rm -f file; false)' in the failure path to force failure.
Based on solution proposed by Nicolas Joly on tech-toolchain in July 2010.
Should fix PR toolchain/44046 from Andreas Gustafsson.
2010-11-08 06:54:52 +00:00
joerg
afd3226f0e Add LIBLZMA. 2010-11-02 19:13:58 +00:00
mbalmer
aa94cc597c Link Lua to the build and add the resulting files to the distribution sets.
Document the addition of Lua and the change we made to the default settings.
2010-10-31 11:52:50 +00:00
yhardy
acec8b0574 Fix pkg-config substitution for glu 2010-10-22 16:48:38 +00:00
ahoka
82e82fca50 Add libc glue for libtre.
tre will be compiled without approx and wchar/mulibyte support to
only match the minimum requirement to replace our spencer regex.

This needs a lot of testing.

Only enabled when USE_LIBTRE is set to `yes'.
2010-09-04 12:17:58 +00:00
reed
db8c589cdc For MLINKS description, remove sentence saying they
are soft-linked (as it is not accurate).
2010-08-25 15:24:29 +00:00
joerg
09dba18788 Simplify. 2010-08-23 16:03:03 +00:00
rmind
2e6f2099c6 Import NPF - a packet filter. Some features:
- Designed to be fully MP-safe and highly efficient.

- Tables/IP sets (hash or red-black tree) for high performance lookups.

- Stateful filtering and Network Address Port Translation (NAPT).
  Framework for application level gateways (ALGs).

- Packet inspection engine called n-code processor - inspired by BPF -
  supporting generic RISC-like and specific CISC-like instructions for
  common patterns (e.g. IPv4 address matching).  See npf_ncode(9) manual.

- Convenient userland utility npfctl(8) with npf.conf(8).

NOTE: This is not yet a fully capable alternative to PF or IPFilter.
Further work (support for binat/rdr, return-rst/return-icmp, common ALGs,
state saving/restoring, logging, etc) is in progress.

Thanks a lot to Matt Thomas for various useful comments and code review.
Aye by: board@
2010-08-22 18:56:18 +00:00
christos
0479cf6528 PR/43772: enami tsugutomo: __XCONFIGFILEMAN__ is left unexpaneded in
xinit(1)/startx(1)
2010-08-17 08:40:57 +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
7a40f55864 add/fix some transforms for some font, GL and xcb .pc files.
XXX: xcb still has pythondir=@pythondir@ in it.
2010-08-15 06:48:56 +00:00
christos
6e861e80dc don't forget to install bsd.ioconf.mk 2010-08-07 21:50:51 +00:00
jmmv
eed27dd4f1 Move the TESTSBASE definition from bsd.test.mk to bsd.own.mk. Per joerg@'s
suggestion.
2010-08-02 07:08:26 +00:00
tsutsui
d10a5f9ef8 Cleanup and sort if-clause lines for X11FLAVOUR per ${MACHINE}. 2010-07-31 16:23:15 +00:00
tsutsui
d3d7f5a993 Switch hpcarm, hpcmips, and hpcsh to using X11FLAVOUR=Xorg. 2010-07-31 12:54:35 +00:00
mrg
8d81f5c19e add some more transforms to the hacky ugly sed script for pkg-config files,
and note a few more that are not yet handled but should be.
2010-07-18 07:05:39 +00:00
mrg
4f2c95e76d - add X11SHAREDIR definition
- X11SRCDIR's for libxcb, xcb-proto and xcb-utils
2010-07-17 22:53:29 +00:00
jmmv
dad604ce0c Implement Atffile automatic generation.
This change adds the ATFFILE variable, which can take the following values:
- yes: The source directory contains a static Atffile to be installed.
- auto: The Atffile is automatically generated.
- no: Do not install any Atffile (replaces the previous NOATFFILE variable).

The ugly bit of this is that I have to add a TESTS_SUBDIRS variable that
lists the subdirectories that contain test cases (so that they can be listed
in the Atffiles, without including auxiliary directories without tests).
This is a subset of SUBDIR.

Addresses a minor part of PR bin/43394.
2010-07-13 21:11:41 +00:00
kiyohara
299d82b760 Support xserver for prep.
It tested only s3(864).
2010-07-12 07:54:11 +00:00
mrg
6479f6e5b4 ldap is configured to depend upon MKCRYPTO no, so force MKLAP=no if
MKCRYPTO=no.
don't build pkg_install, libcrypto tests or rump_smbfs if MKCRYPTO=no.
mark librumpcrypto, rump_smb, pkg_*

fix set lists as appropriate.
2010-07-11 06:16:54 +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
mrg
88d56f4c97 - note that if MKINET6 is "no", MK11 must also be "no". we don't support
building X11 without inet6 support.  the support to maintain patches to
  generated files and other files is too great.  PR#42856
- add TOOL_PIGZ, which defaults to the (not yet default) built tools/pigz.
2010-06-20 06:54:23 +00:00
mrg
1909f84b1c - always install pigz. hooary!
- kill MKPIGZ.
- add MKPIGZGZIP.  if it is "no", then only install pigz as pigz.  if it is
  not "no", don't install mrgzip, install pigz as gzip.

in all cases, the z* scripts.


i don't like the name MKPIGZGZIP so if anyone has a better name, feel free
to replace it.  i don't care enough since killing the ugly name is just
more incentive to get pigz doing .bz2, .Z and .z.
2010-06-19 03:50:30 +00:00
jmmv
6fd7d9f8b8 Prevent build breakage if TESTSDIR is not defined (as in tests/modules/k_helper). 2010-06-18 13:14:21 +00:00
jmmv
92a7fda174 Add a experimental "make test" target
make test may yield misleading results but should work in many cases.  This
target is supposed to simplify the execution of tests but does not preclude
developers from running the installed versions.

Addresses PR misc/38326.
2010-06-18 10:10:57 +00:00
mrg
42a9c5d4fe default MKPIGZ to "no", for now. 2010-06-17 06:17:02 +00:00
mrg
b6aa233709 ugh. this needs a real fix, but for now just update it to reality.
the diff -u is more obvious than a description:

-X11FLAGS.VERSION=      -DOSMAJORVERSION=1 -DOSMINORVERSION=6           # XXX
+X11FLAGS.VERSION=      -DOSMAJORVERSION=5 -DOSMINORVERSION=99          # XXX
2010-06-17 03:10:21 +00:00
riz
a4259da5ea Note that MKZFS is actually "yes" on i386/amd64. 2010-06-08 22:22:25 +00:00
joerg
3ace57c17b Add definitions for TOOL_MANDOC_* for standalone users. Requested by
dyoung.
2010-06-04 20:19:39 +00:00
jmmv
727dd8cd9e Simplify build of shell-based test cases: atf-compile is gone. 2010-06-04 08:35:09 +00:00
joerg
2d399c649e Needs additional single quotes to keep the double qoutes. Magic... 2010-06-03 10:08:34 +00:00
joerg
826b0b1f17 XORGVERSION should be a single quoted expression as it represents a
single argument for .TH
2010-06-02 19:40:12 +00:00
joerg
e4c9126b4d Install mdocml's default CSS as /usr/share/man/style.css. Switch HTML
man pages to use mandoc unconditional as it gives reasonable output for
all man pages, not only a subset of mdoc(7).  Use the newly installed
style.css for formatting and produce hyperlinks for .Xr.
2010-06-01 23:29:09 +00:00
mrg
9a93ccfecc add / retire some xf86-video drivers. 2010-05-28 06:24:59 +00:00
njoly
9a6aefa72e Small typo. 2010-05-26 14:52:10 +00:00
uwe
94642857bf bsd.subdir.mk - don't mention "make subdir" where subdir is any
directory listed in ${SUBDIR} as ${dir}: all-${dir} alias was removed
from 11 years ago (revision 1.31)

PR bin/43356
2010-05-26 01:10:10 +00:00