Commit Graph

1956 Commits

Author SHA1 Message Date
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