Home | History | Annotate | Download | only in src

Lines Matching refs:BUILD

2 #	$NetBSD: build.sh,v 1.400 2025/10/20 14:31:35 nat Exp $
32 # Top level build wrapper, to build or cross-build NetBSD.
96 # the NetBSD build use them.
184 # the NetBSD build avoids using the problematic construct.
259 The NetBSD build system requires a shell that supports modern POSIX
267 The above command will usually enable build.sh to automatically set
296 *** BUILD ABORTED ***
475 "${HOST_SH}" build.sh --shelltest ||
493 bomb "usr.bin/make not found; build.sh must be run from" \
499 # to minimize (cross-)build problems observed "in the field".
516 # Find information about the build platform. This should be
612 results="${tmpdir}/build.sh.results"
856 "Use 'build.sh -m ${MACHINE} list-arch' to show options"
983 # such as when build.sh is run with the "-n" option.
1033 # outside the usual NetBSD build's make environment.
1109 Build OPERATIONs (all imply "obj" and "tools"):
1110 build Run "make build".
1120 dtb Build devicetree blobs.
1122 tools Build and install tools.
1125 kernel=CONF Build kernel with config file CONF.
1126 kernel.gdb=CONF Build kernel (including netbsd.gdb) with config
1129 kernels Build all kernels.
1132 modules Build kernel modules.
1141 pkg=CATEGORY/PKG (EXPERIMENT) Build a package CATEGORY/PKG from pkgsrc.
1171 Should not be used without expert knowledge of the build
1181 -N NOISY Set the noisiness (MAKEVERBOSE) level of the build to NOISY:
1194 -o Set MKOBJDIRS=no; do not create objdirs at start of build.
1203 -U Set MKUNPRIVED=yes; build without requiring root privileges,
1204 install from an unprivileged build with proper file
1212 -x Set MKX11=yes; build X11 from X11SRCDIR.
1540 build|\
1669 bomb "Asked to build X11 but no xsrc"
1688 bomb "Asked to build package but no pkgsrc"
1697 bomb "Experimental \`build.sh pkg=...'" \
1752 # options were passed to build.sh, then ${TOP_objdir} will be
1859 # 1. build a new version of nbmake in a temporary directory;
1866 # TOOLDIR has not changed since an earlier build. We try to avoid
1870 # sources used to build it.
1892 # Build bootstrap ${toolprefix}make if needed.
1913 bomb "Build of ${toolprefix}make failed"
1960 # These may be set as build.sh options or in "mk.conf".
1961 # Don't export them as they're only used for tests in build.sh.
1971 bomb "-U or -E must be set for build as an unprivileged user"
1984 ${runcmd} echo "ERROR: build.sh (in-tree cross-toolchain)" \
2007 # (rules in <bsd.obj.mk> would abort the build). We
2118 # If a previous build.sh run used -U (and therefore created a
2119 # METALOG file), then most subsequent build.sh runs must also
2133 warning "A previous build.sh run specified -U"
2135 bomb "A previous build.sh run specified -U;" \
2199 # Build a ${toolprefix}make wrapper script, usable by hand as
2200 # well as by build.sh.
2227 # Generated from: \$NetBSD: build.sh,v 1.400 2025/10/20 14:31:35 nat Exp $
2351 # Building tools every time we build a kernel is clearly
2362 statusmsg2 "Build directory:" "${kernelbuildpath}"
2427 # Building tools every time we build modules is clearly
2446 statusmsg "Successful build of kernel modules for" \
2465 statusmsg "Successful build of devicetree blobs for" \
2552 # of the point of pkgsrc cross-build infrastructure is to not need
2555 # (If you fix this, remove the bomb in build.sh pkg=... on MKX11=yes.)
2579 # Build the package.
2587 bomb "Failed to build ${catpkg}"
2606 # Run rump build&link tests.
2615 # These attempt to mimic what is encountered in the full build.
2619 # Above all, note that THIS IS NOT A SUBSTITUTE FOR A FULL BUILD.
2668 # optimize: for test we build only static libs (3x test speedup)
2680 # if we just wanted to build & install rump, we're done
2719 statusmsg "Rump build&link tests successful"
2856 statusmsg2 "Build platform:" "${uname_s} ${uname_r} ${uname_m}"
2907 build|distribution|release)
2928 # built with MKUNPRIVED. Assume MKUNPRIVED build has