Commit Graph

178 Commits

Author SHA1 Message Date
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
matt
6192144845 Add a method to a whiteout an entry thereby allowing a md/ad file to remove
a file from the set lists.

Use this for md.evbppc which doesn't build some module tests.
2011-01-28 20:36:19 +00:00
he
a16282018d Introduce the "ssp" attribute derived from HAS_SSP from <bsd.sys.mk>.
Use it to flag entries which should only be included if the target platform
supports SSP.  Fixes the build for a bunch of architectures.
2010-12-28 09:15:24 +00:00
njoly
f23e744cdd Make tests set generation optional, skipped for MKATF=no build. 2010-12-08 23:56:01 +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
mrg
8b69d164b3 add some infrastructure to build pigz instead of gzip. you can test
this out if you set MKPIGZ=yes, but you'll end up with a /usr/bin/gzip
that doesn't support bzip2, compress or pack.
2010-06-18 04:21:21 +00:00
tron
11300caff5 "dtrace,zfs" means "MKDTRACE=yes" *and* "MKZFS=yes" which is not what
we want. Invent a flag "solaris" which is the or of those two flags.
2010-03-03 16:13:42 +00:00
darran
eda67656cd Add DTrace to sets. 2010-02-21 03:18:45 +00:00
plunky
097453b233 add note of "pcc" and "pcccmds" attributes 2010-02-04 13:07:55 +00:00
he
677bd46137 In addition to setting module=no if ${MKKMOD} is "no", also
set kmod=no.  This should get evbppc building correctly again.
2010-01-14 13:45:51 +00:00
uebayasi
3db267ebd3 s/sed/${SED}/; s/xargs/${XARGS}/ 2009-12-21 15:37:25 +00:00
uebayasi
930c6ee6c5 Clean up debug knobs. 2009-12-15 06:18:07 +00:00
uebayasi
4b2bc9eb2d Factor out print_set_files() printing raw set list entries out of
list_set_files().  While here kill a useless-use-of-cat.
2009-12-15 05:11:08 +00:00
uebayasi
6be5668179 We don't need to check ${MACHINE_ARCH} == "m68000" if we use shlib or not.
Because such a knowledge is concentrated in bsd.own.mk and passed to as
${MKPIC}.  Tested by build.sh -m sun2 distribution sets.
2009-12-15 05:07:11 +00:00
he
66597865fb Move the test for evbppc out of sets.subr and into bsd.own.mk, to
decide whether to make kernel modules: set MKKMOD to no for evbppc.
Use this in etc/Makefile to decide whether to do the "modules"
obsolete sets.  Move the ./var/db/obsolete/modules entry from the
"mi" to the "module.mi" file set.

Fixes the build for evbppc.

Discussed with uebayasi@
2009-12-11 15:22:33 +00:00
uebayasi
096187792a list_set_lists() - Share code of handling *.ad.* set lists. 2009-12-11 13:30:11 +00:00
uebayasi
e140e09a48 Indent. 2009-12-11 13:10:47 +00:00
uebayasi
e06370d53f Refactor list_set_lists using more functions. 2009-12-11 13:10:06 +00:00
uebayasi
0e9d695764 Replace many "if [ -f $x ]; then echo $x; fi" instances with function. 2009-12-11 12:57:39 +00:00
he
9d7093b6b4 Prefix mkvars.mk with ${rundir}/, so that the scripts from this
dir using sets.subr can be run from another directory, as is done
e.g. during "make release" via the mksums script.

OK'ed by uebayasi@
2009-12-11 12:07:58 +00:00
uebayasi
e08ad0e79f Move make variable extraction & conversion logic from here-documented make
-f- command to an isolated makefile.  The list of non-_MKVARS.* variables
are concentrated there.

No functional changes.
2009-12-10 15:51:24 +00:00
uebayasi
403121b1db Move the list of non-_MKVARS.* make variables from .for code to MKEXTRAVARS.
List one variable in one line for readability.  No functional changes.
2009-12-10 13:25:19 +00:00
uebayasi
563445b23a Put MKMANZ back and unbreak its installation. 2009-12-10 13:19:21 +00:00
uebayasi
7638dd5a18 Add print_mkvars make target for debug. 2009-12-10 05:15:28 +00:00
uebayasi
779d1d735d MKZFS is properly set in bsd.own.mk now; remove it from MKEXTRAVARS. 2009-12-10 05:02:48 +00:00
uebayasi
57fef1c87f Add MKZFS to MKEXTRAVARS just to make sure. 2009-12-03 18:26:34 +00:00
uebayasi
f254ac3fe3 Put ${MKXORG} back to MKVARS. It doesn't exist in bsd.own.mk but used here
to generate th set list keywork "xorg" in list_set_files().  Hopefully fix
some of reported build failures.
2009-12-03 13:45:11 +00:00
uebayasi
e09a9264c5 Oops. Remove debug echo again. 2009-12-02 17:56:14 +00:00
uebayasi
726e3cc2de Convert make variables ${_MKVARS.yes} / ${_MKVARS.no} to environments
${_MKVARS_yes} / ${_MKVARS_no} to make sure assignments done right both in
make and shell.

Extract important make variables not listed in ${_MKVARS.*}.
2009-12-02 17:51:30 +00:00
apb
26fce401e0 Patches from Lloyd Parkes in PR 41684, plus my changes:
* ${HOSTNAME} is special to bash, so rename the variable to HOSTNAME_CMD.
* Don't use "cd -".
* Don't use only comments in the else part of an if statement.
2009-12-02 15:52:14 +00:00
uebayasi
85051a7017 Add EXTSRCS to the list of syspkgs aware variables. Remove debug code. 2009-12-02 15:18:06 +00:00
uebayasi
79bf8cee4b Pass the correct ${MKVARS} equivalent value to list_set_files().
XXX list_set_files() needs to be rewritten.
2009-12-02 15:05:55 +00:00
uebayasi
5383775576 Quote variable values from make in case it has spaces. Remove debug print. 2009-12-02 14:32:15 +00:00
uebayasi
62258ab60d Fix previous; don't forget extra vars other than MK*. 2009-12-02 14:28:24 +00:00
uebayasi
7a06940f80 Don't hardcode the list of MK* variables but use ${_MKVARS.yes} and
${_MKVARS.no} provided by bsd.own.mk.
2009-12-02 14:13:12 +00:00
apb
fb5e3559de There's no point in adding _PKGTOOLS_VER=$(${PKG_CREATE} -V)
to any syspkg +BUILD_INFO files, since we don't use the pkg_* tools
to create syspkgs.  Also remove the definition of PKG_CREATE
from sets.subr, since nothing uses it now.
2009-12-01 15:49:21 +00:00
uebayasi
d166c4bf28 Support "extsrc", externally added programs and libraries. Users can write
their own reach-overs, cross-build, install, and get set files just like base
and X11 / X.org.  (These sets are not included as TNF releases.)
2009-11-30 16:13:22 +00:00
dyoung
2e43373a96 Fix MKKMOD=no builds: in sets.subr, if $MKKMOD == no, leave the
modules set out of the list of NetBSD set lists, nlists.  If
$MKKMOD == no, do not install modules tests.
2009-11-05 17:34:25 +00:00
dyoung
cef5c322c2 Always respect MKBINUTILS=no, MKGCC=no, and MKGDB=no by filtering
entries binutils=N, gcc=N, or gdb=N from the set list.
2009-11-03 00:38:56 +00:00
haad
fe1c828484 Add MKZFS file so building a release works for others, too. 2009-10-07 22:22:18 +00:00
tsarna
a8bcd3b5c3 Multicast DNS ("Bonjour") support, based on Apple's mDNSResponder. 2009-09-29 23:56:26 +00:00
skrll
8a770313a3 Rename MKBFD to MKBINUTILS and support HAVE_BINUTILS for set lists. This
makes {MK,HAVE_}BINUTILS consistent with {MK,HAVE_}{GCC,GDB}.

Allow MKBFD to defines MKBINUTILS as a backwards compatibility hook.

Update the sets lists and add conditionals for lib{bfd,opcodes}.
2009-09-08 07:08:00 +00:00
jnemeth
fbeb8d3295 Create a modules.tgz set and move kernel modules into it. 2009-09-07 02:27:27 +00:00
dyoung
71fe64733e Let us use MKKMOD=yes to leave the kernel modules out of the
distribution.
2009-08-30 01:49:41 +00:00
mrg
980e989b21 fix the prior change to add MKX11FONTS support. 2009-06-18 21:05:35 +00:00
apb
f328a72950 Print debug messages only when MAKEVERBOSE >= 3, not when
it is >= 2.  MAKEVERBOSE=2 is teh default, and the messages
are too noisy.
2009-04-07 20:46:20 +00:00
apb
0dadb6113f All non-error messages printed to stderr by makeplist must begin with
"DEBUG:", or else regpkg assumes that they are error messages.  Make the
verbose messages printed by the list_set_files function follow that
convention.  Fixes PR 41077 from Lloyd Parkes.
2009-04-04 10:08:08 +00:00
rmind
6d73ddd355 Revert path of modules back to "/stand". 2009-01-24 22:14:44 +00:00
rmind
f0e51651e4 Change path to kernel modules from "/stand" to "/kernel".
Needs to go in before 5.0.  Proposed on <tech-kern>.
2009-01-24 00:29:12 +00:00
minskim
8b464c62c2 MKSENDMAIL is no longer used. 2009-01-19 19:13:45 +00:00
agc
408492d9e8 Put the lvm/MKLVM glue into the sets subroutines 2008-12-23 02:56:10 +00:00
tsutsui
36e401605d Reorganize lists for MD modules:
- move MD module files from md.* into separate module.* lists
- make those module lists per MACHINE_CPU or MACHINE_ARCH,
  rather than per MACHINE

Tested on several ports.

XXX maybe we should also move usr/tests/modules/k_helper/k_helper.kmod
XXX from lists/tests/mi to lists/tests/module.mi and disable it on evbppc.
2008-11-29 17:57:33 +00:00
tsutsui
399241e435 - rename set list lkm.mi -> module.mi
- move obsolete lists of usr/lkm files to mi
2008-11-26 15:45:56 +00:00
pooka
b2fa04c6b2 Now that MKPUFFS is default, kill it as advertised.
While there, give puffs and refuse files sensible syspkg entries.
2008-11-12 13:17:27 +00:00
ad
0efea177e3 Remove LKMs and switch to the module framework, pass 1.
Proposed on tech-kern@.
2008-11-12 12:35:50 +00:00
mrg
e5bc8e2c94 fix a couple of minor errors picked up by he@. thanks! 2008-11-09 23:07:22 +00:00
mrg
9c8df5ee67 - retire MKXORG from public use
- introduce X11FLAVOUR to choose src/x11 vs src/external/mit/xorg
  for the X11 to build if MKX11=yes is set.  it takes the values
  of either Xorg or XFree86.
- default to Xorg on alpha, i386, macppc, shark, sparc and sparc64
- remove MKXORG_WITH_XSRC_XSERVER, unused and never useful
2008-11-09 23:02:28 +00:00
mrg
72f26e4440 support MKCRYPTO. 2008-10-26 07:31:00 +00:00
lukem
e95c8a6849 Remove set lists for the non-cross-compiled ("vendor provided") build of
XFree86; we've used our src/x11 framework for four years.
2008-08-31 00:19:33 +00:00
lukem
77e36d9955 add debuglib keyword. per rtr 2008-08-28 07:22:41 +00:00
lukem
1373597cb4 Add support for MKHTML and MKXORG enabling "html" and "xorg" keywords
(respectively).

MKXORG also sets x11_version as per MKX11.
(Eventually we'll deprecate the non cross-build X11 sets and remove
the need for the x11_version variable here)
2008-08-28 07:17:13 +00:00
lukem
909a499e2a Support dynamicroot keyword, keyed off MKDYNAMICROOT!=no.
Sort some entries.
Document some keywords.
2008-08-25 07:27:27 +00:00
dyoung
6c06f2593a Per discussion on tech-userlevel@, do not compile and install nvi
if MKNVI=no.

The default is MKNVI=yes, so that this amounts to no change for
most users, but the default may change.
2008-07-22 21:07:58 +00:00
he
3b5e9e1519 When MAKEVERBOSE >= 2 (or if unset, by default), let list_set_files()
echo all the set list component file names to stderr, so they end
up in the build log.  This is to make it slightly easier to find
a suitable file to fix when the set lists need fixing.

Discussed with lukem.
2008-05-22 22:56:40 +00:00
he
6ac0267475 Export NETBSDSRCDIR from make, and use it to point at
sys/conf/osrelease.sh, so that the script is found when building
with -O is given to build.sh.

Discussed with lukem.
2008-05-22 14:48:42 +00:00
lukem
3ece9bfe0a OpenLDAP client libraries, utilities, and relevant manual pages. 2008-05-22 14:24:42 +00:00
ad
14cd43625f Install kernel modules into the proper locations, taking machine and
kernel version into account.
2008-05-20 19:01:10 +00:00
ad
e7660f2353 Use HOST_SH. 2008-05-20 15:18:29 +00:00
ad
85a077252f Recognise @MODULEDIR@ as a keyword in setlists. 2008-05-20 15:17:22 +00:00
jmmv
b0152a99f8 Support negated build-time options in the lists. I need this to disable
some files when the modular option (not yet committed) is enabled.
2008-02-09 19:30:11 +00:00
minskim
9e5ba8057c Remove MKUUCP from MKVARS; uucp is not in src any longer. 2007-12-01 03:20:33 +00:00
jmmv
4d9b8b6a50 Add the tests.tgz set
This adds a new tests.tgz set to releases which includes all the tests
for the system.  It is important to note that this set does not rely on
comp.tgz: a user of the system can run the tests without having the
development tools installed, which can be useful in a production machine.
2007-11-12 15:06:45 +00:00
apb
f7004b0cbc Whenever we try to parse the output from make, run make with the -B
flag.  This ensures that -j<N> isn't accidentally inherited from the
environment, because the "--- foo ---" headers printed with -j<N> would
interfere with parsing the output.
2007-02-05 18:26:01 +00:00
pooka
81b905fdbb if MKPUFFS=yes is given, build & install mount_psshfs (default: no) 2006-12-29 15:52:20 +00:00
christos
ab6d6d1244 more uucp removal 2006-11-12 02:43:39 +00:00
lukem
cacf5bfacc Implement MKDEBUG:
If "no", don't build and install separate debugging symbols
	into /usr/libdata/debug.
	Default: no
2006-07-23 11:41:24 +00:00
lukem
5666bd9aa8 * Provide new keywords:
gcc=<n>			<n> = value of ${HAVE_GCC}
	gdb=<n>			<n> = value of ${HAVE_GDB}

* Support extra keywords on lines with "obsolete" keywords to allow
  keyword-specific obsolete files.
  (Primarily intended for use with gcc=<n> and gdb=<n>, although
  it could be use for other items).

* Use the above features to collapse the gcc.* and gcc4.* lists into
  the appropriate set lists.

* Deprecate the tc.* lists as all platforms are either HAVE_GCC=3 or HAVE_GCC=4.

* Update set lists for HAVE_GDB=6.
2006-07-12 13:39:04 +00:00
mrg
e8ffedc44b add support for MKISCSI=no. 2006-06-24 05:11:40 +00:00
dogcow
82f4871f70 As pointed out by Izumi and Tsutsui and Valeriy Ushakov, these should
properly be .ad. files, not .md. files.
2006-06-09 03:14:54 +00:00
dogcow
b943d36d28 Use the gcc4 md list. 2006-05-19 01:49:05 +00:00
mrg
0db1500b43 retire HAVE_GCC3/HAVE_GCC4 and introduce HAVE_GCC that is set to 2, 3 or 4. 2006-04-07 19:38:58 +00:00
christos
85e611dd01 Goodbye KerberosIV 2006-03-20 04:03:10 +00:00
apb
6942b0e739 Use TARGET_ENDIANNESS (from bsd.endian.mk) to decide whether
to add "-E B" or "-E L" options to ${db_opts}.

Approved by christos.
2006-01-08 10:25:33 +00:00
apb
6d714d9691 Add cheap implementations of basename and dirname,
using builtin printf, or using echo if printf is not a
shell builtin.

Reviewed by agc
2006-01-04 14:35:03 +00:00
apb
4d96f88bcb Add shell variables for several additional host tools,
required by the new versions of regpkgset and regpkg.
2006-01-04 14:23:22 +00:00
apb
3a0b541193 Add shell variables defined in sets.subr for almost all commands used
by scripts in distrib/sets/*.  This is intended to be useful when cross
building.  Only trivial commands like echo, cat, and rm are excluded
from this treatment.

While I am here, make ${MTREE} and ${DB} follow the pattern used by most
other such variables.

Reviewed by agc.
2006-01-03 16:40:16 +00:00
apb
26d8593b50 Move default values for several shell variables into sets.subr.
Reviewed by agc
2006-01-03 15:42:42 +00:00
lukem
22b0f5dfc0 Add support for following keywords in sets lists, based on mk.conf(5) vars:
use_inet6		${USE_INET6} != no
	use_kerberos		${USE_KERBEROS} != no
	use_yp			${USE_YP} != no
2005-05-01 07:06:09 +00:00
tron
a9f1e3563a Add "MKX11" flag. We need it for the X11 obsolete lists in the "base" set. 2005-03-22 09:28:24 +00:00
peter
1c9b56c830 Add MKIPFILTER; if set to no, don't build and install the ipf(4) programs,
headers and LKM.

Add MKPF; if set to no, don't build and install the pf(4) programs,
headers, LKM and spamd.

Both options default to yes, so nothing changed in the default build.

Reviewed by lukem.
2005-02-22 14:39:58 +00:00
lukem
3af1db4def Support ${MKINET6} == "no". 2005-01-10 03:13:04 +00:00
he
67d66c86bb Don't build libpam and associated bits if the target platform doesn't
support shared libraries (sun2 and evbsh5 at it would seem), or if the
user has specified MKPIC=no.  Also introduce a new tag to the set lists
("pam"), so that the non-shlib ports can once again complete a release
build.

Discussed with christos and lukem.
2005-01-10 00:20:21 +00:00
matt
f26774eaee Add MKGCCCMDS/gcccmds 2005-01-09 22:24:04 +00:00
tron
71d6312747 EOL of XFree86 3.3.6, approved by core@NetBSD.org 2005-01-07 18:56:40 +00:00
erh
10d0173282 Make all the sets scripts work even when not run from the directory that
they reside in.
Change any uses of dirname to use shell variable substitution instead.
2004-07-23 15:11:26 +00:00
jmc
944c6c8bad Add support for building/install just cat pages (via MANINSTALL=catpages) in
the sets. Originally from PR#24949. Tested w. all combinations of MANINSTALL
2004-06-13 22:35:02 +00:00
scw
c7f9b71508 Allow MKGDB=no to override inclusion of records with the 'gdb' keyword. 2004-03-17 20:32:02 +00:00
jmc
7c8480de0f Restructure MKPIC tests so that stlib always gets set first based on
OBJECT_FMT and then MKPIC/arch tests can set shlib=no if they need to.
2004-03-05 04:52:50 +00:00
matt
e8f9e7f005 Recognize when MKPIC=no and then set shlib=no 2004-02-28 01:02:05 +00:00
uwe
39b999ccdb sh3 ports have shlibs now in the gcc3 world. 2004-02-22 01:43:02 +00:00