summaryrefslogtreecommitdiffstats
path: root/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* MFC r316794:bdrewery2017-04-281-1/+1
| | | | Cache compiler metadata and reuse it at installworld time.
* MFC r305147:bdrewery2017-01-031-2/+7
| | | | Add a 'make print-dir' that simply traverses all directories and prints them.
* MFC r304006:bdrewery2016-08-191-1/+2
| | | | Avoid showing the bootstrap make command for check-old, etc.
* MFC r303272,r303273:bdrewery2016-07-271-2/+4
| | | | | | | | | r303272: SYSTEM_COMPILER: Rework the logic to allow a 'make test-system-compiler'. r303273: Fix empty WANT_COMPILER_TYPE when neither compiler is bootstrapped. Approved by: re (kib)
* WITH_META_MODE: Whitelist 'make kernel-toolchain'bdrewery2016-06-221-3/+3
| | | | | Approved by: re (blanket, META_MODE) Sponsored by: EMC / Isilon Storage Division
* Fix top-level builds with fmake / 9.x.bdrewery2016-06-211-1/+3
| | | | | | Reported by: allanjude Approved by: re (marius) Sponsored by: EMC / Isilon Storage Division
* WITH_META_MODE: Whitelist 'make kernel' and 'make world'.bdrewery2016-06-151-2/+2
| | | | | | | | | | | installkernel is technically META_MODE safe but doesn't need an explicit approval to use it since it's all disabled via .PHONY. world uses 'make -B installworld' which already will disable META_MODE via the -B (.MAKE.MODE=compat) usage. Approved by: re (implicit) Sponsored by: EMC / Isilon Storage Division
* tinderbox/universe: Only show arm64 warning if it was in the TARGETS list.bdrewery2016-06-151-2/+2
| | | | | | | | | This was a flaw in my change in r287903 but also in the original change in r282156 since it used empty(${TARGETS}) rather than empty(TARGETS). Reported by: lidl Approved by: re (gjb) Sponsored by: EMC / Isilon Storage Division
* Fix makeman showing dependency of DIRDEPS_BUILD->META_MODE.bdrewery2016-06-141-2/+2
| | | | | | | | This broke in r301887 with the meta mode whitelist. 'make showconfig' still needs WITH_META_MODE support. Approved by: re (implicit) Sponsored by: EMC / Isilon Storage Division
* Fix build from stable/10 with fmake.bdrewery2016-06-141-1/+1
| | | | | | | | | | | This was broken in r301888. fmake does not look in share/mk by default and thus does not yet have MK_META_MODE set with default. Pointyhat to: bdrewery Approved by: re (implicit) Sponsored by: EMC / Isilon Storage Division
* WITH_META_MODE: Lessen the filemon(4) requirement scope.bdrewery2016-06-141-0/+7
| | | | | | | | | | | | | | | | | | | - Move the sys.mk filemon requirement to bsd.init.mk as a warning. This is intended only to show when building directly in a subdirectory without filemon loaded. - Move the error into Makefile and only apply it when building from the META_TGT_WHITELIST target list. -DNO_FILEMON can be used to suppress both the warning and the error but makes WITH_META_MODE less useful. It will only compare build commands in this mode rather than track all dependencies. This fixes installing from a jail which doesn't need filemon in this phase [1]. Reported by: Nikolai Lifanov <lifanov@mail.lifanov.com> [1] Approved by: re (implicit) Sponsored by: EMC / Isilon Storage Division
* WITH_META_MODE: Whitelist targets that are meta-mode-safe.bdrewery2016-06-141-6/+24
| | | | | | | | | | | META_TGT_WHITELIST is added to define which build targets are safe for meta mode. See comments for more details. This fixes 'make delete-old-libs' to properly show the interactive prompt. Approved by: re (implicit) Sponsored by: EMC / Isilon Storage Division
* Add more missing .PHONYbdrewery2016-06-141-24/+24
| | | | | Approved by: re (implicit) Sponsored by: EMC / Isilon Storage Division
* Only include bsd.compiler.mk for bmakes that use -m .../share/mk by default.bdrewery2016-06-051-0/+2
| | | | | | | Otherwise they error when trying to include the file, which also has its own dependencies. Sponsored by: EMC / Isilon Storage Division
* WITH_META_MODE: Enable bmake's missing meta rebuild featurebdrewery2016-06-051-0/+5
|
* Fix bmake version upgrade logic to use the new bmake.bdrewery2016-06-051-3/+6
| | | | | | | | | Otherwise it was only used on the next build. This was a flaw in r295980. MFC after: 3 days Sponsored by: EMC / Isilon Storage Division
* Make armv6 hard float abi by default. Kill armv6hf.imp2016-05-181-2/+2
| | | | | | | Allow CPUTYPE=soft to build the current soft-float abi libraries. Add UPDATING entry to announce this. Approved by: re@ (gjb)
* Follow-up r298220: Don't pass down META_MODE which will still enable it.bdrewery2016-04-181-0/+1
| | | | | Reported by: Nikolai Lifanov <lifanov@mail.lifanov.com> Sponsored by: EMC / Isilon Storage Division
* META_MODE: Disable during installworld and similar.bdrewery2016-04-181-0/+8
| | | | | | | | | META_MODE may create cookies during staging of files to WORLDTMP that would also prevent installation of the files to the final DESTDIR, since the cookie already exists. This is not yet the case but will be soon. Prevent other similar issues by disabling META_MODE for any top-level install targets. Sponsored by: EMC / Isilon Storage Division
* MFHgjb2016-04-161-3/+3
|\ | | | | | | Sponsored by: The FreeBSD Foundation
| * Mark some more .PHONY targets.bdrewery2016-04-141-2/+2
| | | | | | | | Sponsored by: EMC / Isilon Storage Division
| * Define the *soft targets properly.bdrewery2016-04-141-1/+1
| | | | | | | | Sponsored by: EMC / Isilon Storage Division
* | MFHgjb2016-04-041-1/+1
|\ \ | |/ | | | | Sponsored by: The FreeBSD Foundation
| * Remove the old depend (mkdep) code and make FAST_DEPEND the one true way.bdrewery2016-03-301-1/+1
| | | | | | | | | | | | | | Reviewed by: emaste, hselasky (partial), brooks (brief) Discussed on: arch@ Sponsored by: EMC / Isilon Storage Division Differential Revision: https://reviews.freebsd.org/D5742
* | MFHgjb2016-03-141-4/+7
|\ \ | |/ | | | | Sponsored by: The FreeBSD Foundation
| * Use the newly minted Makefile.libcompat to implement libsoft librariesimp2016-03-121-1/+2
| | | | | | | | | | | | | | | | for the armv6 ABI switch. This also make WITH_LIBSOFT functional on the arm platform. As a transition thing, this seems to work even without switching the ABI (we basically build the same libraries twice when MK_LIBSOFT=yes until the ABI cut over next month). MK_LIBSOFT remains default no.
| * Avoid MK_TESTS error on stable/10 by just preventing SUBDIR recursion.bdrewery2016-03-111-1/+1
| |
| * Avoid bmake upgrade NO_MAN warning by just setting MAN to empty.bdrewery2016-03-111-1/+1
| | | | | | | | Suggested by: imp
| * Revert r296645 as it breaks stable/10->head builds.bdrewery2016-03-111-2/+1
| |
| * FAST_DEPEND: Use .dinclude to enable full .depend logic in bmake.bdrewery2016-03-111-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The inclusion of .MAKE.DEPENDFILE (.depend) has special logic in make to ignore stale/missing dependencies. bmake 20160220 added a '.dinclude' directive that uses the special logic for .depend when including the file. This fixes a build error when a file is moved or deleted that exists in a .depend.OBJ file. This happened in r292782 when sha512c.c "moved" and an incremental build of lib/libmd would fail with: make: don't know how to make /usr/src/lib/libcrypt/../libmd/sha512c.c. Stop Now this will just be seen as a stale dependency and cause a rebuild: make: /usr/obj/usr/src/lib/libmd/.depend.sha512c.o, 13: ignoring stale .depend for /usr/src/lib/libcrypt/../libmd/sha512c.c --- sha512c.o --- ... This rebuild will only be done once since the .depend.sha512c.o will be updated on the build with the -MF flags. This also removes -MP being passed for the .depend.OBJ generation (which would create fake targets for system headers) since the logic is no longer needed to protect from missing files. Sponsored by: EMC / Isilon Storage Division
| * Fix bmake upgrade NO_MAN warnings.bdrewery2016-03-111-1/+2
| | | | | | | | | | MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
| * Fix make -n upgrade_checks.bdrewery2016-03-111-1/+1
| | | | | | | | | | MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* | MFHgjb2016-03-101-1/+1
|\ \ | |/ | | | | Sponsored by: The FreeBSD Foundation
| * Don't ever create object directories here with MK_AUTO_OBJ.bdrewery2016-03-081-1/+1
| | | | | | | | Sponsored by: EMC / Isilon Storage Division
* | MFHgjb2016-03-021-4/+3
|\ \ | |/ | | | | Sponsored by: The FreeBSD Foundation
| * Add order for installworld/installkernel.bdrewery2016-02-241-0/+1
| | | | | | | | | | MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
| * Support a WANT_MAKE_VERSION.bdrewery2016-02-241-4/+2
| | | | | | | | | | | | | | This will be used soon for .dinclude support in FAST_DEPEND. MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
* | Include a 'package-pkg' target, intended for use forgjb2016-02-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | architectures we do not provide upstream pkg(8) packages. This is not tied to anything as-is, and likely will break your system if used (based on experience with testing with powerpc). There is an overwhelming amount of evil happening here, so until the issues are fixed, it will not be tied into the 'packages' target. Sponsored by: The FreeBSD Foundation
* | MFHgjb2016-02-101-1/+2
|\ \ | |/ | | | | Sponsored by: The FreeBSD Foundation
| * Fix make universe when running with non POSIX/C locales using a locale sensitivebapt2016-02-101-1/+2
| | | | | | | | | | | | | | pattern Reported by: many Submitted by: jilles
* | Add logic to rotate the package repository, keyed on PKG_VERSION,gjb2016-02-091-1/+1
| | | | | | | | | | | | | | and create a 'latest' symlink to the PKG_VERSION repository path. Suggested by: des Sponsored by: The FreeBSD Foundation
* | Rename the signpackages target to sign-packages, and include it in thedes2016-02-081-1/+1
| | | | | | | | packages meta-target so 'make packages' now does everything.
* | Split the packages target into stage-packages and create-packages to makedes2016-02-081-2/+3
| | | | | | | | | | it possible to roll new packages from an existing build without having to restage them.
* | MFHgjb2016-02-081-3/+8
|\ \ | |/ | | | | Sponsored by: The FreeBSD Foundation
| * Simplify running the FreeBSD test suitengie2016-02-071-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | MFHgjb2016-02-021-1/+8
|\ \ | |/ | | | | Sponsored by: The FreeBSD Foundation
| * Add order for installworld/distribution.bdrewery2016-02-021-0/+1
| | | | | | | | Sponsored by: EMC / Isilon Storage Division
| * Add make universe targets "kernels" and "worlds".ian2016-01-311-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | "make kernels" is now shorthand for "make universe -DMAKE_JUST_KERNELS" "make worlds" is now shorthand for "make universe -DMAKE_JUST_WORLDS" The kernels target includes modules (unless you add -DNO_MODULES). And of course you can still add all the other universe options, such as "make kernels TARGETS=arm" to build kernels for all arm arches, or TARGET_ARCH=armv6 to build all armv6 kernels, etc. Reviewed by: imp
* | Add 'stagekernel' target, which invokes 'distributekernel'gjb2016-01-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | with -DNO_ROOT to create the METALOG mtree(8) file. Separate the default STAGEDIR for world (WSTAGEDIR) and kernel (KSTAGEDIR). Fix the 'create-kernel-packages' target to work properly. Evaluate if 'kernel' is set when invoking mtree-to-plist.awk, which splits the kernel and kernel.debug into separate plist files. Fix METALOG creation when building/packaging multiple kernels. Sponsored by: The FreeBSD Foundation
* | Add a 'signpackages' target, which creates the pkg repositorygjb2016-01-251-1/+1
| | | | | | | | | | | | | | metadata files and uses the path of PKGSIGNKEY for signing, if set. Sponsored by: The FreeBSD Foundation
OpenPOWER on IntegriCloud