summaryrefslogtreecommitdiffstats
path: root/share/man/man7/build.7
Commit message (Collapse)AuthorAgeFilesLines
* Clarify build(7) instructions for alternate object directory.wblock2016-04-281-3/+15
| | | | | | | PR: 209062 Submitted by: Shawn Debnath <sd@beastie.io> MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D6106
* META_MODE+filemon: Default -DNO_CLEAN enabled.bdrewery2016-04-141-1/+9
| | | | | | | | | When using meta mode with filemon, the build is reliably incremental safe. Bmake will use the meta files, along with filemon information, to rebuild targets when their dependencies change, commands change, or files they generate are missing. Sponsored by: EMC / Isilon Storage Division
* Remove the old depend (mkdep) code and make FAST_DEPEND the one true way.bdrewery2016-03-301-13/+10
| | | | | | | Reviewed by: emaste, hselasky (partial), brooks (brief) Discussed on: arch@ Sponsored by: EMC / Isilon Storage Division Differential Revision: https://reviews.freebsd.org/D5742
* Import bsd.clang-analyze.mk based on NetBSD's version.bdrewery2016-02-261-1/+3
| | | | | | | | | This allows 'make analyze' or 'make OBJ.clang-analyzer' to run the Clang static analyzer and present results on stdout. Obtained from: NetBSD (CVS Rev. 1.3) Sponsored by: EMC / Isilon Storage Division Differential Revision: https://reviews.freebsd.org/D5449
* Simplify running the FreeBSD test suitengie2016-02-071-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace `make regress` (legacy test make target) and `make test` (incomplete test make target added with the FreeBSD test suite) with make check as it's consistent with other open source projects. `make check` defaults to running tests from `.OBJDIR`, but can be overridden with the `CHECKDIR` variable. Add `make checkworld` target to simplify running the FreeBSD test suite from `TESTSBASE` (i.e. the top-level tests directory), similar to buildworld. Document `make check` and `make checkworld` in build(7). Other minor changes: - Rename intermediate file (`Kyuafile.auto`) to `Kyuafile` to simplify `make check`. - Remove terse warnings attached to `beforetest`/`aftertest`. - Add kyua binary check to check target in suite.test.mk; error out if it's not found The MFC is [partly] contingent on other build related changes being MFCed. Differential Revision: https://reviews.freebsd.org/D4406 MFC after: 2 months X-MFC to: stable/10 Relnotes: yes Reviewed by: bdrewery, Evan Cramer <eccramer@gmail.com> Sponsored by: EMC / Isilon Storage Division
* Let SUBDIR_OVERRIDE with 'make buildworld' be more useful.bdrewery2015-10-221-2/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now it can be used to effectively "build in a subdir". It will use the 'cross-tools', 'libraries', and 'includes' phases of 'buildworld' to properly setup a WORLDTMP to use. Then it will build 'everything' only in the listed SUBDIR_OVERRIDE directories. It is still required to list custom library directories in LOCAL_LIB_DIRS if SUBDIR_OVERRIDE is something that contains libraries outside of the normal area (such as SUBDIR_OVERRIDE=contrib/ofed needing LOCAL_LIB_DIRS=contrib/ofed/usr.lib) Without these changes, SUBDIR_OVERRIDE with buildworld was broken or hit obscure failures due to missing libraries, includes, or cross compiler. SUBDIR_OVERRIDE with 'make <target that is not buildworld>' will continue to work as it did before although its usefulness is questionable. With a fully populated WORLDTMP, building with a SUBDIR_OVERRIDE with -DNO_CLEAN only takes a few minutes to start building the target directories. This is still much better than building unneeded things via 'everything' when testing small subset changes. A BUILDFAST or SKIPWORLDTMP might make sense for this as well. - Add in '_worldtmp' as we still need to create WORLDTMP as later targets, such as '_libraries' and '_includes' use it. This probably was avoiding calling '_worldtmp' to not remove WORLDTMP for debugging purposes, but -DNO_CLEAN can be used for that. - '_legacy' must be included since '_build-tools' uses -legacy. The SUBDIR_OVERRIDE change came in r95509, while -legacy being part of build-tools came in r113136. - 'bootstrap-tools' is still skipped as this feature is not for upgrades. - Fix buildworld combined with SUBDIR_OVERRIDE not installing all includes. The original change for SUBDIR_OVERRIDE in r95509 kept '_includes' and '_libraries' as building everything possible as the SUBDIR_OVERRIDE could need anything from them. However in r96462 the real 'includes' target was changed from manual sub-makes to just recursing 'includes' on SUBDIR, thus not all includes have been installed into WORLDTMP since then when combined with 'buildworld'. This is not done unless calling 'make buildworld' as it would be unexpected to have it go into all directories when doing 'make SUBDIR_OVERRIDE=mydir includes'. - Also need to build the cross-compiler so it is used with --sysroot. If this is burdensome then telling the build to use the local compiler as an external compiler (thus using a proper --sysroot to WORLDTMP) is possible by setting CC=/usr/bin/cc, CXX=/usr/bin/c++, etc. - Don't build the lib32 distribution with SUBDIR_OVERRIDE in buildworld since it won't contain anything related to SUBDIR_OVERRIDE. Testing of the lib32 build can be done with 'make build32'. - Document these changes in build.7 Sponsored by: EMC / Isilon Storage Division MFC after: 2 weeks
* Bump .Dd again for the change done in r276483ngie2015-01-051-1/+1
| | | | Pointyhat to: me
* The variable used with install(1) for stripping should be STRIPBIN, notngie2014-12-311-2/+2
| | | | | | | STRIP_CMD MFC after: 3 days Reported by: lev
* Bump .Dd for change done in r275908ngie2014-12-271-1/+1
|
* Document STRIP_CMD in build(7) and note its importance with LOCAL_ITOOLSngie2014-12-181-0/+15
| | | | | | | MFC after: 1 week Phabric: D1335 Reviewed by: brueffer Sponsored by: EMC / Isilon Storage Division
* Drop references to updating over csup from build(7).gavin2014-06-251-4/+2
| | | | MFC after: 1 week
* use .Mt to mark up email addresses consistently (part6)bapt2014-06-231-1/+1
| | | | | PR: 191174 Submitted by: Franco Fichtner <franco at lastsummer.de>
* - Add a LOCAL_ITOOLS to allow adding additional tools required for thebdrewery2014-06-171-1/+7
| | | | | | | | installworld and distributeworld targets PR: 179562 Submitted by: Garrett Cooper <yaneurabeya@gmail.com> MFC after: 1 week
* Update build(7) with LOCAL_* varsbdrewery2014-03-271-3/+20
| | | | | | | PR: docs/178286 Submitted by: Garrett Cooper <yaneurabeya@gmail.com> Sponsored by: EMC / Isilon Storage Division MFC after: 1 week
* WITH_CTF is now a "normal" build option (WITHOUT_CTF is supported andjhb2012-10-101-7/+1
| | | | | | MK_CTF is used internally). Reviewed by: fjoe
* Add reference to portsnap(8).wblock2012-07-021-3/+5
| | | | | Submitted by: Tim Kientzle MFC after: 1 day
* Point out that /usr/src, /usr/doc, and /usr/ports may be empty or notwblock2012-06-271-2/+8
| | | | | | | | exist until populated with csup(1) or svn(1). PR: 169487 Submitted by: Moritz Wilhelmy MFC after: 1 day
* Bump .Dd to reflect the date of the last content change, so MFC contentgjb2011-10-091-1/+1
| | | | | | makes sense. Pointy-hat to: gjb (myself)
* Whitespace cleanup in build(7).gjb2011-09-291-8/+8
| | | | | MFC after: 1 week Need-MFC: 225858
* Document, and provide an example for, PORTS_MODULES in build(7).gjb2011-09-291-0/+10
| | | | | | PR: 161017 Submitted by: gcooper MFC after: 1 week
* It's a bit odd, but "make update" in src/ can also update the ports/,ru2011-06-161-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | doc/, and now www/ trees, but only using the "cvsup" transport. When "make update" is run using a tree's makefile, it can also use "cvs" (except for www/) and "svn" (only src/). Clean up documentation and code regarding "make update": - Increase oddness by adding support for WWWSUPFILE and NO_WWWUPDATE to Makefile.inc1 (analogous to PORTSSUPFILE/NO_PORTSUPDATE and DOCSUPFILE/NO_DOCUPDATE; WWWSUPFILE already supported by www/Makefile). - Document all trees that support CVS_UPDATE. - Document all trees that support SUP_UPDATE. - Document SVN_UPDATE. - Document NO_WWWUPDATE. - make.conf(5) mistakenly said that *SUPFILE* had defaults. - Add an example entry for WWWSUPFILE.
* Update release(7) and build(7) to reflect new release infrastructure fornwhitehorn2011-03-221-2/+21
| | | | the new installer.
* - Add a new UNIVERSE_TARGET variable for 'make universe'. If it is set,jhb2011-02-101-6/+32
| | | | | | | | | | | | then that target is invoked for each architecture rather than the default action of building world and kernels for each architecture. - Add a 'make toolchains' wrapper which uses UNIVERSE_TARGET to build toolchains for all architectures. - Document JFLAG, MAKE_JUST_KERNELS, and MAKE_JUST_WORLDS variables for 'make universe'. Reviewed by: bz MFC after: 1 week
* Back out r217734. [1]bz2011-01-251-1/+7
| | | | | | | | | Properly document what `make targets` is supposed to list to avoid further confusion given the place the target sits. Should have happened with r217125. Requested by: imp [1] Reviewed by: rwatson
* Properly document what the top-level `make tinderbox` does.bz2011-01-221-1/+6
| | | | | | Reviewed by: jmallett MFC After: 3 days X-MFC: build.7 only
* Minor grammar fix.gjb2010-10-261-1/+1
| | | | | | | Submitted by: arundel (via email) Approved by: jkois (mentor) Patch by: arundel MFC after: 5 days
* WITH_CTF can now be specified in src.conf (not recommended, therenetchild2010-04-021-1/+10
| | | | | | | | | | | | | | | | | | | | | | are some problems with static executables), make.conf (would also affect ports which do not use GNU make and do not override the compile targets) or in the kernel config (via "makeoptions WITH_CTF=yes"). Additional (related) changes: - propagate WITH_CTF to module builds - do not add -g to the linker flags, it's a noop there anyway (at least according to the man page of ld) - do not add -g to CFLAGS unconditionally we need to have a look if it is really needed (IMO not) or if there is a way to add it only when WITH_CTF is used Note: ctfconvert / ctfmerge lines will not appear in the build output, to protect the innocent (those which do not build with WITH_CTF would see the shell-test and may think WITH_CTF is used). Reviewed by: imp, jhb, scottl (earlier version) Discussed on: arch@
* Document DEBUG_FLAGS in a more visible place, in the build(7) manpagekeramida2010-03-311-1/+15
| | | | | | Noticed by: Alexander Best <alexbestms.at.wwu.de> Reviewed by: jhb MFC after: 1 week
* Forgot to bump .Dd, so do it with this commit. Chose local time overimp2009-12-161-1/+1
| | | | UTC time for the date...
* Docmuent NO_KERNEL{CLEAN,CONFIG,DEPEND,OBJ} as necessary. Updateimp2009-12-161-2/+9
| | | | documentation on KERNFAST meaning.
* Sort KERNFAST and KERNCONF into the list they are in.imp2009-01-231-19/+19
|
* Document KERNCONF and KERNFAST. Note that TARGET is usually all oneimp2009-01-231-1/+22
| | | | needs to set for cross building.
* Document the NO_XXX options supported by our Makefile.inc1.keramida2009-01-051-1/+64
| | | | | | Noticed by: simon Reviewed by: imp MFC after: 1 week
* BSDMAKE isn't really needed and was removed, so remove hereimp2007-12-131-10/+0
|
* Document BSDMAKE variable that was recently introduced. Also, sinceimp2007-12-111-3/+16
| | | | | | | | | RELENG_7, the way to do a cross build changed from specifying only TARGET_ARCH (which has an ambigous mapping to TARGET) to specifying only TARGET (which has a unique mapping to TARGET_ARCH). Update the example to reflect this. MFC After: 1 week (the example change only)
* Spelling fixes.mpp2006-12-141-1/+1
|
* Markup glitch.ru2006-09-301-1/+2
|
* Require rpc.lockd(8) only if make is running with the -j option.ru2006-09-301-2/+5
|
* Cross-reference src.conf(5).jkoshy2006-06-111-0/+1
|
* o Replace alpha-specific DESTDIR to a sparc64 one.maxim2006-05-171-1/+1
| | | | Spotted by: Gennady Proskurin
* o In the cross-build example replace alpha by sparc64.maxim2006-05-151-3/+3
|
* Document the requirement to run rpc.lockd(8) on both clientru2006-03-201-1/+8
| | | | and server when installing onto an NFS file system.
* Document the public targets and make variables supported by thejkoshy2005-12-051-51/+267
| | | | | | build system. Reviewed by: ru (multiple passes)
* -mdoc sweep.ru2005-11-181-3/+7
|
* Replace "/etc/make.conf" with references to make.conf(5)yar2005-10-101-2/+1
| | | | | | | | | where applicable. The main reason for this change is that the location of make.conf is not constant and can be modified via __MAKE_CONF. This change also improves hyper-text linkage in our manpages. MFC after: 2 weeks
* Add missing "not" in rev. 1.34.ru2005-08-031-1/+1
| | | | Submitted by: Jeremie Le Hen
* Make delete-old* and friends useable for cross-builds.ru2005-08-031-1/+13
|
* Document 'kernel-toolchain'.obrien2005-08-031-0/+3
| | | | Submitted by: Jeremie Le Hen <jeremie@le-hen.org>
* - Move recently added dir into the correct section.netchild2005-07-291-2/+2
| | | | | | | | | | | | - Add a note about the organisation of the sections. - Expand shell globs (they worked in a previous version of the delete-old target, but not in this one). - Use the correct way of checking for a native environment. [1] - Add some more obsolete files. - Fix some bad english. [1] Suggested by: ru [1] Approved by: mentor (joerg)
* Add delete-old and delete-old-libs targets:netchild2005-07-231-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - removes obsolete files/dirs or libraries. - works in interactive (default) and batch mode - respects DISTDIR - documented in UPDATING and build(7) The head of the file ObsoleteFiles.inc contains instructions how to add obsolete files/dirs/libs to the list. Obviously one should add obsolete files to this list, when he removes a file/dir/lib from the basesystem. Additionally add check-old target: - allows re@ to check if a file on the obsolete list resurfaces Design goals: - allows full control by the user (default interactive mode) - possibility of scripted removal of obsolete files (batch mode) - opt-in removal of files (explicit list of files) - seperate removal of libs (2 delete targets) Important design decissions: - structured list of files to remove instead of a plain text file: * allows to remove additional files if a NO_foo knob is specified without the need to change the targets (no NO_foo knob is respected yet) - not using mtree like NetBSD does: * mtree doesn't has an interactive mode Discussed on: arch (long ago), current (this year) Additional input from: re (hrs) Approved by: mentor (joerg)
OpenPOWER on IntegriCloud