Go to file
christos 43cbec9b32 - With DEBUG=-g (which is also set when we build CTF) we build netbsd.gdb *and*
netbsd-${KERNEL_CONFIG}.debug because it is not worth having two sets of
  rules (one that builds just netbsd.gdb and one that builds both netbsd.gdb
  and netbsd-${KERNEL_CONFIG}.debug. This maintains compatibility building
  netbsd.gdb when DEBUG=-g
- When either MKDEBUGKERNEL=yes or MKDEBUG=tes we set DEBUG=-g if DEBUG was
  not set.
- We only make a debuginstall rule to install netbsd-${KERNEL_CONFIG}.debug
  if MKDEBUG=yes
2021-12-30 18:53:35 +00:00
bin s/forground/foreground/ in comments. 2021-12-19 21:15:27 +00:00
common fix various typos in comments. 2021-12-12 22:20:52 +00:00
compat remove obsolete files. 2021-06-18 06:34:00 +00:00
crypto put back the tcpwinsz initialization code. 2021-12-24 21:52:48 +00:00
dist/pf Fix all remaining typos, mainly in comments but also in few definitions and log messages, reported by me in PR kern/54889. 2021-07-24 21:31:31 +00:00
distrib With recent changees to debug kernel stuff from Christos we are 2021-12-30 15:01:55 +00:00
doc new acpica 2021-12-18 18:05:55 +00:00
etc Enable split-debug files for kernels. Enabled by default with MKDEBUG=yes. 2021-12-29 22:22:12 +00:00
external build the rest of the tools. 2021-12-29 18:13:43 +00:00
extsrc
games fix various typos in comments. 2021-12-12 22:20:52 +00:00
include Make fdopendir visible according to POSIX.1 spec. 2021-12-30 16:20:19 +00:00
lib curses: spell "foreground" correctly in comments 2021-12-17 03:50:18 +00:00
libexec s/occured/occurred/ in comments, log messages and man pages. 2021-12-10 20:36:02 +00:00
regress introduce a SOL_LOCAL for unix-domain socket level socket options 2021-08-08 20:54:48 +00:00
rescue
sbin kern.hashstat takes too long and it is meaningless here. 2021-12-28 16:06:57 +00:00
share remove the NEED_OWN_INSTALL_TARGET conditional for setting the install 2021-12-30 04:57:10 +00:00
sys - With DEBUG=-g (which is also set when we build CTF) we build netbsd.gdb *and* 2021-12-30 18:53:35 +00:00
tests tests/lint: extend documentation for omitted braces in initializer 2021-12-28 22:54:08 +00:00
tools Make dtc on riscv 2021-11-14 15:48:02 +00:00
usr.bin tests/make: demonstrate edge case that evaluates an expression twice 2021-12-30 02:14:55 +00:00
usr.sbin s/filname/filename/ 2021-12-21 21:28:31 +00:00
BUILDING Rename: 2021-12-20 20:33:20 +00:00
Makefile G/c spurious whitespace. 2020-10-29 20:26:24 +00:00
Makefile.inc
README.md README: use https for man.NetBSD.org 2021-09-05 12:45:44 +00:00
UPDATING s/dissallow/disallow/ 2021-12-07 21:45:31 +00:00
build.sh Enable split-debug files for kernels. Enabled by default with MKDEBUG=yes. 2021-12-29 22:22:12 +00:00

README.md

NetBSD

NetBSD is a free, fast, secure, and highly portable Unix-like Open Source operating system. It is available for a wide range of platforms, from large-scale servers and powerful desktop systems to handheld and embedded devices.

Building

You can cross-build NetBSD from most UNIX-like operating systems. To build for amd64 (x86_64), in the src directory:

./build.sh -U -u -j4 -m amd64 -O ~/obj release

Additional build information available in the BUILDING file.

Binaries

Testing

On a running NetBSD system:

cd /usr/tests; atf-run | atf-report

Troubleshooting

Latest sources

To fetch the main CVS repository:

cvs -d anoncvs@anoncvs.NetBSD.org:/cvsroot checkout -P src

To work in the Git mirror, which is updated every few hours from CVS:

git clone https://github.com/NetBSD/src.git