Commit Graph

422 Commits

Author SHA1 Message Date
uebayasi 0a333665fa Add a new build make variable, CONFIGOPTS, which is passed to config(1)
when building kernels.  Revert "mkernel=*" and "mkernels" in favor of
this option.

Diff posted on source-changes-d@, approved by (null).
2014-11-30 15:53:29 +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 9e8101899d To make pax use ${TOOL_GZIP}, we need to pass "--use-compress-program
${TOOL_GZIP}" on the command line, and refrain from passing "-z".  If
passed "-z", pax will use plain "gzip", ignoring --use-compress-program.
2014-08-06 11:41:18 +00:00
apb 5a18c2965e Introduce and use GZIP_FLAGS variable, to fix a quoting error
in the way we tried to use GZIP="-9 ${GZIP_N_FLAG}".
For consistency, also use GZIP_FLAGS elesehere in this file.
2014-08-06 10:37:30 +00:00
apb f78c710fb2 Pass GZIP="-9 ${GZIP_N_FLAG}" instead of GZIP=-9n
in the environmentto commands that invoke ${TOOL_GZIP}.
This will allow them to use -nT instead of just -n with pigz.
2014-08-05 15:43:50 +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 a2fb9dacaf BUILDINFO part 3: Add BUILDINFO to RELEASEVARS and /etc/release
The BUILDINFO string will appear nearthe top of /etc/release,
indented by 8 spaces and with a blank line above and below it,
but without a heading.  The BUILDINFO string is expected to
be self-explanatory.

Also change some other headings near the top of /etc/release.
2014-08-03 09:19:34 +00:00
martin 59ac30731b Undo the mac68k specific previous change and instead move all mkisofs-based
images into ${RELEASEDIR}/images (just like the makefs ones).
2014-06-30 15:34:57 +00:00
apb d768eb27cb Print BUILDID near the top of /etc/release. 2014-06-14 12:26:26 +00:00
martin c72d415969 Use the new -U option for config to avoid generating kernel debug info
during release builds. This should save quite some space in the evbarm
build, where makeoptions DEBUG is heavily used.
2014-05-05 19:10:00 +00:00
apb a452d8c9e2 Pass the -n flag to gzip invocations.
This prevents it from embedding a timestamp in the output.  We pass
"-n" unconditionally, not conditional on MKREPRO, because many other
invocations of gzip already passed the -n flag unconditionally.
2014-01-27 21:37:17 +00:00
christos 2b043c75b6 eliminate use of bsd.sys.mk from Makefiles 2014-01-16 01:15:32 +00:00
matt 3c46e5578f if softfloat, Install a ld.so.conf to use libc_vfp.so if there is a VFP on
evbarm (no other arm ports a CPU supporting VFP).
2013-08-19 16:34:29 +00:00
agc a3a6189341 Fix typo in previous 2013-05-01 15:57:44 +00:00
agc d7199a4b01 Install pkgpath.conf in /etc - part of fix for misc PR/47645 2013-05-01 15:55:53 +00:00
uebayasi 434b2461fb Don't print warning even if mkisofs is not found. 2013-04-06 13:00:31 +00:00
jmmv 47840f72d0 Install a kyua.conf file that sets unprivileged_user to _tests. 2013-02-24 03:06:13 +00:00
matt 4c0c51981c Only include debug set obsolete set if MKDEBUG is not no 2013-02-05 16:39:26 +00:00
matt ea2a4e9bad Add debug to the list of OBSOLETE_FILES 2013-02-05 07:32:44 +00:00
christos 80695a814b spwd.db should be 0600 (Brooks Davis) 2013-01-29 20:21:02 +00:00
mlelstv e6e5cc51b8 Support a release build restricted to ALL_KERNELS. This file was missed
by the first commit.
2013-01-14 20:05:42 +00:00
apb 3e31590ff0 Add src/etc/Makefile.params, containing the definition of the
RELEASEVARS variable, and commands related to printing the values of
the variables whose names are in RELEASEVARS.

Add an awk script to remove noise printed by "make -j" or high levels
of MAKEVERBOSE, so we get only the variables names and values.  The
values are escaped so that variables containing embedded newlines,
quotation marks, and backslashes, are passed through safely.

Adapt src/etc/Makefile and src/Makefile to use the new ${PRINT_PARAMS}
command defined in src/etc/Makefile.params.

Now ${DESTDIR}/etc/release and the params file in the top-level
.OBJDIR should never contain unwanted noise, even after a build with
MAKEVERBOSE=4.
2012-12-03 13:53:28 +00:00
apb acfd2b168d motd needs to be re-generated when DISTRIBVER changes, so change he
Makefile to use the new ${_NETBSD_VERSION_DEPENDS} mechanism defined in
bsd.own.mk.

Rename the default motd file in the source tree from "motd" to
"motd.default", because otherwise it would conflict with the motd file
that is now created in the .OBJDIR.
2012-11-04 11:09:14 +00:00
apb 040e0f875d Add DISTRIBVER to the list of variables under RELEASEVARS. 2012-11-04 11:04:10 +00:00
riz a727e4697d Install live images and install images into ${RELEASEDIR}/images by
default, to keep all the large files (such as ISOs) together.
2012-08-17 16:59:26 +00:00
christos bdb2cc007b MKCRYPTO_{IDEA,MDC2} is no more 2012-07-14 04:01:11 +00:00
tsutsui 3cf69f27e2 Add "live-image" and "install-image" target support to build.sh.
"live-image" target builds pre-installed disk images that can be used on
emulators or boot from USB memory sticks to try NetBSD without installation.
Currently amd64, i386, pmax, sparc, sparc64, sun2, sun3, and vax
(which have working emulators and don't require extra tools like preparing
 msdosfs or partitioning MD label structures) support this target.

"install-image" target builds an bootable installation disk image that can
be used as an install CD but burned into USB memory sticks etc.
Current only amd64 and i386 (which would support USB boot) have this target.

For more details (and known issue) see following posts on netbsd-bugs@:
http://mail-index.NetBSD.org/netbsd-bugs/2011/08/06/msg023639.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/09/23/msg024207.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/07/msg025166.html
http://mail-index.NetBSD.org/netbsd-bugs/2011/12/08/msg025178.html

No particular comments about implementation, and
"go ahead" comments from mrg@, riz@ and christos@.

Closes PR toolchain/45153 and PR misc/45155.
2012-01-22 03:53:29 +00:00
joerg 6bc6b7aae6 Now that the name of the ISO image is no longer stable, rename the
variable to make it possible to overwrite the default with
build.sh -V CDROM_IMAGE=...
2012-01-15 17:36:55 +00:00
jmcneill ce4646dd28 PR# install/44593: Please give release ISO's more meaningful names
Change release ISO filenames, what was once 'i386cd.iso' will now look
like 'NetBSD-5.99.60-i386.iso'.

ok snj@
2012-01-14 22:56:30 +00:00
yamt 85ccb2e960 update RELEASEVARS 2011-11-02 16:39:23 +00:00
jym f56903492e Modify etc/defaults/Makefile so that architectures can specify an additional
rc.conf file. This one should reside under etc/etc.${MACHINE}/, and will
get automatically appended to etc/defaults/rc.conf at build time if present.

This is used by i386 and amd64 to append a small MD rc.conf(5) configuration
at the end of the defaults/rc.conf file, so that powerd(8) can be started
by default when we are running in a Xen environment. This is needed to support
save/restore functions for domains.

From all the alternatives proposed to fix that issue (from /etc/rc.conf
parsing in postinstall to etc/defaults/rc.conf arch-hooks) I believe
this one will appease everyone because it:
- does not touch etc/defaults/rc.conf template file,
- patches it at build time for MD hooks only when required,
- does not need to parse/modify a user-specified file like /etc/rc.conf (which
is a complex, error-prone operation),
- only enables powerd(8) by default when conditions are met (Xen environment)
while still allowing root to shoot himself in the foot if he wants to
override this manually in /etc/rc.conf.

See also http://mail-index.netbsd.org/tech-userlevel/2011/07/25/msg005246.html
2011-08-22 18:54:05 +00:00
matt 05461650d2 Add COMPRESS_PROGRAM=${TOOL_GZIP:Q} for pax.
Replace gzip with ${TOOL_GZIP}
2011-06-30 18:15:13 +00:00
martin 470f713611 Get rid of var/chroot/tcpdump/etc 2011-04-17 13:07:18 +00:00
martin f327756f24 Ooops, fix source path for the "protocols" file 2011-04-11 21:49:13 +00:00
martin 75b76dfeb7 When run as root, tcpdump will chroot to /var/run/tcpdump - but it can
not look up /etc/protcols in there. So install a copy of /etc/protocols
into the chroot area.
Fixes PR bin/44721.
2011-04-11 20:03:45 +00:00
uebayasi 51495ed0e7 Install "obsolete" files only when necessary. 2011-02-16 16:22:13 +00:00
uebayasi 0fe7ea2a0f Generate MAKEDEV only when really necessary. Write dependency correctly. 2011-02-16 16:20:06 +00:00
uebayasi d47c36d993 To install 0-sized files, check if the destination already has one.
This avoids unnecessary updates (== timestamp changes in METALOG).
2011-02-16 15:52:51 +00:00
christos 4f848eee4b `` -> $() 2010-12-27 03:38:52 +00:00
njoly f23e744cdd Make tests set generation optional, skipped for MKATF=no build. 2010-12-08 23:56:01 +00:00
tsutsui 807849c28e Change distribution filename for KERNEL_SETS kernels with KERNEL_SUFFIXES
in ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/kernel/
from "netbsd.aout-GENERIC.gz" to "netbsd-GENERIC.aout.gz" or so
as src/distrib/common/Makefile.mdset does for mdroot ramdisk kernels.
2010-10-04 13:55:39 +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
roy 89d790bdbe Move the emergancy terminfo database from /root to /rescue. 2010-02-05 09:44:23 +00:00
roy 70f7be699b Install a minimal .terminfo and .terminfo.db in /root.
This allows terminfo to be used when /usr is not available.
Fixes PR misc/6879.
2010-02-04 21:01:16 +00:00
dholland fd438cf632 Fix previous: use correct mode as well as owner/group.
My bad. PR misc/41544.
2010-01-12 04:44:06 +00:00
dholland 39f1d3fefb Fix installation permissions of /var/db/locate.database as per PR misc/41544. 2010-01-10 06:13:25 +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
pooka 4098e2664f Install obsolete lists for modules. 2009-12-05 19:14:39 +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
tsarna a8bcd3b5c3 Multicast DNS ("Bonjour") support, based on Apple's mDNSResponder. 2009-09-29 23:56:26 +00:00