Go to file
christos a043955316 Patch the build script and toolchain to allow passing through
HOST_CPPFLAGS, HOST_CXXFLAGS, but not LIBRARY_PATH because it breaks
the build. These variables are necessary to support building NetBSD
from a GNU Guix or NixOS host, where /usr/include, /lib, and all
but /bin/sh do not exist.  In many cases, support for HOST_CPPFLAGS
was incomplete. From Ryan Sundberg
2021-09-18 01:47:07 +00:00
bin It is either teaching gcc about aaah or adding FALLTHROUGH. 2021-09-16 19:44:01 +00:00
common fix typos in word "successfully", mainly s/succesfully/successfully/. 2021-09-16 21:29:41 +00:00
compat remove obsolete files. 2021-06-18 06:34:00 +00:00
crypto ipsectools: fix lint error 2021-09-14 21:49:31 +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 Patch the build script and toolchain to allow passing through 2021-09-18 01:47:07 +00:00
doc Bootloader banner changes 2021-09-11 22:34:17 +00:00
etc Move the sanitizer libraries from 9.0.0 -> 13.0.0 to match our current clang 2021-09-16 23:32:49 +00:00
external Patch the build script and toolchain to allow passing through 2021-09-18 01:47:07 +00:00
extsrc
games person on internet is confused by how to list disks because there's 2021-09-07 13:29:41 +00:00
include stdio.h: remove outdated comment for vscanf 2021-09-11 20:05:33 +00:00
lib some love to double letters (in comments). 2021-09-17 08:13:06 +00:00
libexec fix typos in word "successfully", mainly s/succesfully/successfully/. 2021-09-16 21:29:41 +00:00
regress introduce a SOL_LOCAL for unix-domain socket level socket options 2021-08-08 20:54:48 +00:00
rescue
sbin Fix the function pointer declaration to something lint likes. 2021-09-17 22:41:48 +00:00
share Add DW 2021-09-16 08:33:24 +00:00
sys Don't include <sys/device_calls.h> in the _STANDALONE case. 2021-09-17 16:16:18 +00:00
tests fix typos in word "successful". 2021-09-16 22:19:10 +00:00
tools Patch the build script and toolchain to allow passing through 2021-09-18 01:47:07 +00:00
usr.bin downgrade bitfield in union to a warnings (ldpd uses it). 2021-09-17 21:15:19 +00:00
usr.sbin remove lint hacks now that lint supports _Static_assert 2021-09-17 21:06:35 +00:00
BUILDING Reintroduce the support of MKCATPAGES 2020-11-10 21:47:40 +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/helt/held+s/eroneously/erroneously/+s/splitted/split/+s/recommented/recommended/ 2021-08-21 09:59:45 +00:00
build.sh Patch the build script and toolchain to allow passing through 2021-09-18 01:47:07 +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