summaryrefslogtreecommitdiffstats
path: root/share/mk
Commit message (Collapse)AuthorAgeFilesLines
* MFC 314894: Fix a couple of typos and reword some sentences in bsd.README.jhb2017-05-101-2/+2
|
* Fix mismerge in r313790ngie2017-02-161-1/+1
| | | | | | | | Use ${.TARGET}, not Kyuafile.auto* for the fmake case This is a direct commit to ^/stable/10 Sponsored by: Dell EMC Isilon
* MFC r295643:ngie2017-02-161-0/+1
| | | | | | r295643 (by bdrewery): Test directories can build in parallel fine.
* MFC r285119,r292502,r295380:ngie2017-02-165-64/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r285119 (by jmmv): Add support for TEST_METADATA Allow Makefiles to define generic metadata settings that apply to all test programs defined by a Makefile. The generic TEST_METADATA variable extends the per-test program settings already supported via TEST_METADATA.<program>. This feature will be useful to easily apply some settings to all programs in a directory. In particular, Kyua 0.12 will support parallel execution of test programs and a bunch of them will need to be tagged as is_exclusive to indicate that they cannot be run in parallel with anything else due to their side-effects. It will be reasonable to set this setting on whole directories. r292502: Always expose LOCALBASE, not just when CROSS_TOOLCHAIN is defined Instead of using which(1) to look for doxygen, look for it in <LOCALBASE>/bin . $PATH gets mangled by make buildenv, etc so it's better to just be explicit about the path if someone uses that for instance. r295380: Simplify running the FreeBSD test suite 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. X-MFC to: stable/10 Relnotes: yes
* MFC r288241:ngie2017-02-162-6/+4
| | | | | | | | | | r288241 (by bdrewery): Remove 'set -e' that are no longer needed as it is already default. When bmake was initially imported at r241298 shell commands were no longer ran with 'set -e' as they were before. This was fixed in r254980 so they again always use 'set -e'.
* MFC r311744,r312328,r312329,r312330:ngie2017-02-042-0/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r311744: Document bsd.snmpmod.mk from a high-level r312328: Add a make target (smilint) for running smilint tool against BMIBS Running smilint against MIB definitions is useful in finding functional problems with MIB definitions/descriptions. This is inspired by the smilint targets defined in usr.sbin/bsnmpd/modules/{snmp_hostres,snmp_mibII}/Makefile Document all of the variables that are involved in running the smilint target, as well as all of the prerequisites to running it. r312329: Remove ad hoc smilint targets made standard in bsd.snmpmod.mk in r312328 r312330: Add smilint target to subdir targets so "make smilint" here will run the smilint target in subdirs While here, convert a path that's .CURDIR relative to SRCTOP
* MFC r312009:ngie2017-01-161-18/+18
| | | | | | Add license preamble for r286964; credit to asomers While here, clean up trailing whitespace
* MFC r309477:bdrewery2017-01-032-8/+4
| | | | Revert r296585.
* MFC r303964:bdrewery2016-08-152-2/+3
| | | | PROGS: Support INTERNALPROG.prog=yes to not install it.
* Follow-up r300233: Don't override MK_* from env as head does.bdrewery2016-05-191-0/+4
| | | | | PR: D6271 Sponsored by: EMC / Isilon Storage Division
* Allow MK_ overrides.bdrewery2016-05-191-15/+0
| | | | | | | | | | This is a direct commit to stable. This was done in head in r264661 and is needed to force certain options off for ports. PR: D6271 Sponsored by: EMC / Isilon Storage Division
* MFC r298864:ngie2016-05-151-1/+1
| | | | Allow FILESGROUPS to be specified more than once by pruning out duplicates
* MFC r297282,r297456,r298012,r298013,r298014:ngie2016-04-233-5/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r297282 (by bdrewery): We don't have a CPPFLAGS, COPTS or CPUFLAGS. r297456 (by bdrewery): We don't support DPLIBS. r298012: Add DEBUG_FLAGS to PROG_VARS and STRIP to PROG_OVERRIDE_VARS This will allow the variables [*] to be overridden on a per-PROG basis, which is useful when controlling "stripping" behavior for some tests that require debug symbols or to be unstripped DEBUG_FLAGS (similar to CFLAGS) supports appending, whereas STRIP is an override *: Due to how STRIP is defined in bsd.own.mk (in addition to bsd.lib.mk and bsd.prog.mk), and the fact that bsd.test.mk pulls in bsd.own.mk first, overriding STRIP doesn't work today. A follow up commit is pending to "rectify" this after additional testing is done. Discussed with: bdrewery r298013: Commit documentation change for r298012 Requested by: bdrewery r298014: Regenerate the list of bsd.progs.mk supported variables Prefix with dashes (unordered list) and put one variable on each line (to avoid future conflicts) Done via the following one-liner: > sh -c 'for i in $(make -C tests/sys/aio PROG=foo -VPROG_VARS:O); do printf "\t\t- $i\n"; done'
* MFC r296585:bdrewery2016-03-282-4/+8
| | | | | These group names may be used as a cookie, so replace any non-fs-safe characters.
* MFC r294873:bdrewery2016-03-121-2/+2
| | | | Set a value for _RECURSING_PROGS for debugging.
* MFC r294878:bdrewery2016-03-121-2/+2
| | | | Revert yacc dependency back to pre-r241298.
* MFC r296554:bdrewery2016-03-121-4/+0
| | | | Remove things set already by bsd.progs.mk.
* MFC r296122:bdrewery2016-03-121-5/+0
| | | | | (partial) Move PROGS logic to proper place and remove redundant and unneeded logic.
* MFC r295994,r296000:bdrewery2016-03-121-13/+1
| | | | | | | r295994: PROGS: Remove the 'build one' optimization since it breaks 'build multiple' r296000: PROGS: Only the main process will install INCS.
* MFC r295976:bdrewery2016-03-121-0/+2
| | | | PROGS: Only recurse on called targets like done for SUBDIR in r291635.
* MFC r295665:bdrewery2016-02-231-8/+0
| | | | | | Remove temporary hack from r294370 for SSH upgrades. Approved by: re (marius)
* MFC 278320,278336,278830,285621:jhb2016-02-011-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add devctl(8): a utility for manipulating new-bus devices. Note that this version does not include the 'suspend' and 'resume' commands present in HEAD as those depend on larger changes to the suspend and resume code in the kernel. 278320: Add a new device control utility for new-bus devices called devctl. This allows the user to request administrative changes to individual devices such as attach or detaching drivers or disabling and re-enabling devices. - Add a new /dev/devctl2 character device which uses ioctls for device requests. The ioctls use a common 'struct devreq' which is somewhat similar to 'struct ifreq'. - The ioctls identify the device to operate on via a string. This string can either by the device's name, or it can be a bus-specific address. (For unattached devices, a bus address is the only way to locate a device.) Bus drivers register an eventhandler to claim unrecognized device names that the driver recognizes as a valid address. Two buses currently support addresses: ACPI recognizes any device in the ACPI namespace via its full path starting with "\" and the PCI bus driver recognizes an address specification of 'pci[<domain>:]<bus>:<slot>:<func>' (identical to the PCI selector strings supported by pciconf). - To make it easier to cut and paste, change the PnP location string in the PCI bus driver to output a full PCI selector string rather than 'slot=<slot> function=<func>'. - Add a devctl(3) interface in libdevctl which provides a wrapper around the ioctls and is the preferred interface for other userland code. - Add a devctl(8) program which is a simple wrapper around the requests supported by devctl(3). - Add a resource_unset_value() function that can be used to remove a hint from the kernel environment. This is used to clear a hint.<driver>.<unit>.disabled hint when re-enabling a boot-time disabled device. 278336: Unbreak the build (memchr is explicitly required by devctl(9) after r278320) 278830: install the man page... 285621: Fix formatting. Approved by: re (marius)
* MFC r295006:bdrewery2016-01-291-5/+6
| | | | | | Fix -include .depend hack from r294370 for headers not in .PATH. Approved by: re (gjb)
* MFC r294968:smh2016-01-281-2/+3
| | | | | | Allow file specific user-specified flag overrides. Sponsored by: Multiplay
* MFC r294370:bdrewery2016-01-251-2/+15
| | | | mkdep: Fix -include not being added for .depend tracking.
* MFH (r291198, r291260, r291261, r291375, r294325, r294335, r294563)des2016-01-241-1/+0
| | | | Remove the HPN and None cipher patches.
* MFC r274503:smh2016-01-151-0/+2
| | | | | | Add OBJDUMP to sys.mk. Sponsored by: Multiplay
* Fix SRCTOP assignment for fmake.bdrewery2016-01-141-1/+1
| | | | | | | This corrects r292239 which incorrectly used a bmake feature for the fmake logic. Sponsored by: EMC / Isilon Storage Division
* MFC r293014:dim2016-01-031-1/+1
| | | | | | | | | | | | Merge r293006 from clang380-import branch: For determining the compiler version, quote the string to be echo'd, otherwise the command might fail. This is because clang -v now results in the following: FreeBSD clang version 3.8.0 (trunk 256633) (based on LLVM 3.8.0svn) The second "3.8.8svn)" string tripped up the shell command.
* MFC nv(3) and part of nv(9) to stable/10ngie2015-12-311-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This includes the following revisions from head: r258065,r258594,r259430,r260222,r261407,r261408,r263479,r264021,r266351, r269603,r271026,r271027,r271028,r271241,r271578,r271579,r271847,r272102, r272843,r273752,r277920,r277921,r277925,r277926,r277927,r279421,r279422, r279423,r279424,r279425,r279426,r279427,r279428,r279429,r279430,r279431, r279432,r279434,r279435,r279436,r279438,r279439,r279440,r279760,r282122, r282254,r282257,r282304,r282312,r285339,r288340 This change reverts stable/10@r282122 and stable/10@r288340, and re-MFCs the series again (r282122, r285339, and r288340). More changes are pending to nv(9)/pci(4) after further review/work. Please see the Phabricator review for more details (both https://reviews.freebsd.org/D4232 and https://reviews.freebsd.org/D4249 ). - Tested with: -- Booting VMware Fusion 8.1.0 running on a Haswell Apple Macbook Pro -- Booting a Haswell machine with zfs and running some stress workloads with VirtualBox guests -- make tinderbox -- kyua test -k /usr/tests/lib/libnv Differential Revision: https://reviews.freebsd.org/D4249 (part of a larger diff) Relnotes: yes Reviewed by: oshogbo (implicit), sbruno (implicit) Submitted by: Kevin Bowling <kevin.bowling@kev009.com> Sponsored by: EMC / Isilon Storage Division
* MFC r278449, r278926:gjb2015-12-301-0/+9
| | | | | | | | | | | | | r278449: Enable multi-threaded xz(1) compression for release install media. r278926 (rpaulo): Use xz(1) via pipe when compressing the release distribution tarballs. Tested on: stable/10@r292855 Sponsored by: The FreeBSD Foundation
* MFC r292507,r292508:ngie2015-12-284-9/+9
| | | | | | | | | | | | | | | | | | | r292507: - Use LOCALBASE instead of KYUA_PREFIX for the --prefix to kyua(1) - Use LOCALBASE instead of hardcoding /usr/local for perl Differential Revision: https://reviews.freebsd.org/D4406 (part of a larger diff) Reviewed by: emaste, Evan Cramer <eccramer@gmail.com> Sponsored by: EMC / Isilon Storage Division r292508: Document LOCALBASE in the bsd.test.mk section Differential Revision: https://reviews.freebsd.org/D4406 (part of a larger diff) Reviewed by: emaste, Evan Cramer <eccramer@gmail.com> Sponsored by: EMC / Isilon Storage Division
* MFC r292500,r292501,r292504,r292509:ngie2015-12-271-14/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r292500: Simplify Kyuafile generation logic with KYUAFILE == auto and related complexity with variables Differential Revision: https://reviews.freebsd.org/D4406 (part of a larger diff) Reviewed by: emaste, Evan Cramer <eccramer@gmail.com> Sponsored by: EMC / Isilon Storage Division r292501: Fix typo in r292500 by adding missing conditional statement Pointyhat to: ngie Differential Revision: https://reviews.freebsd.org/D4406 (part of a larger diff) Sponsored by: EMC / Isilon Storage Division r292504: Deal with another hardcoded reference to Kyuafile in the KYUAFILE == auto case Differential Revision: https://reviews.freebsd.org/D4406 (part of a larger diff) Reviewed by: emaste, Evan Cramer <eccramer@gmail.com> Sponsored by: EMC / Isilon Storage Division r292509: Clean up Kyuafile.tmp, not Kyuafile.auto.tmp Differential Revision: https://reviews.freebsd.org/D4406 (part of a larger diff) Reviewed by: emaste, Evan Cramer <eccramer@gmail.com> Sponsored by: EMC / Isilon Storage Division
* MFC r291892:ngie2015-12-201-4/+0
| | | | | | | Remove redundant default TESTSDIR that is already defined in bsd.test.mk after r289158 Sponsored by: EMC / Isilon Storage Division
* MFC r284408,r289151,r289158:ngie2015-12-153-9/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r284408: Ensure TESTSDIR is defined before bsd.test.mk is .include'd r289151: Simplify netbsd-tests.test.mk - projects/bmake and subsequent commits provide SRCTOP; there's no need to manually specify it now. - Compute a sane default for OBJTOP based on .OBJDIR and RELDIR. Manually specifying this is probably no longer needed, but it persists just in case (supporting commits will need to be made to move it out of some of the meta .mk files). - Compute a sane default for TESTSRC. Error out if the path cannot be found. Sponsored by: EMC / Isilon Storage Division r289158: Default TESTSDIR to /usr/tests/${RELDIR:H} When run from bin/ls/tests, for example, the value of TESTSDIR would be ${TESTSBASE}/${RELDIR:H} -> /usr/tests/bin/ls/tests/.. -> /usr/tests/bin/ls Document the new behavior in bsd.README. While here, also document TESTSBASE Relnotes: yes Differential Revision: D1022 Sponsored by: EMC / Isilon Storage Division
* Partial MFC r291349:bdrewery2015-12-151-0/+3
| | | | | | | Standardize on OBJTOP in and outside of META MODE. For stable/10 this means bringing OBJTOP support in which simplifies MFCs.
* Add SRCTOP and RELDIR support.bdrewery2015-12-151-0/+13
| | | | | | | This is a direct commit to stable/10. It allows simpler MFCing from head where these are being used more frequently. Sponsored by: EMC / Isilon Storage Division
* MFC r291896:ngie2015-12-131-23/+0
| | | | | | | | | | | | Remove unused atf.test.mk variables - ATF_BUILD_CC - ATF_BUILD_CPP - ATF_BUILD_CXX - ATF_SHELL - ATF_PREFIX Sponsored by: EMC / Isilon Storage Division
* MFC r289669:bdrewery2015-12-041-4/+6
| | | | Fix building in a directory with SUBDIRs and SUBDIR_PARALLEL.
* MFC r289289,r290181:bdrewery2015-12-041-3/+6
| | | | | | | | | r289289: Fix support for building a PROG_CXX, and PROG, directly. r290181: Unbreak bsd.progs.mk with PROGS (but not PROGS_CXX) and when invoking the "one of many" targets, e.g. `make hello_world`, where hello_world is a C program
* MFC r289286,r291338,r291340:bdrewery2015-12-041-0/+22
| | | | | | | | | | r289286: Follow-up r288218 by ensuring common objects are built before recursing. r291338: Fix the "common object" handling to not depend on ".o" if SRCS only contains headers. r291340: Follow-up r291338 to handle .d, .y and .l files better as well.
* MFC r289870,r289871:bdrewery2015-12-042-0/+3
| | | | | | | r289870: Add bsd.crunchgen.mk to bsd.README. r289871: Sort properly.
* MFC r289375:bdrewery2015-12-041-2/+2
| | | | Fix wrong use of .for; the iteration variable is not used in the loop.
* MFC r289374:bdrewery2015-12-041-1/+0
| | | | Remove excess .else
* MFC r289360,r289361,r289378,r289430,r289605,r289676:bdrewery2015-12-041-1/+1
| | | | | | | | | | | | | | | | | | | r289360: Add temporary workaround for .MAKE being applied to _worldtmp, since r251750. r289361: Consider top-level targets to be .PHONY as bmake won't build them otherwise if a file with the same name is found in the directory. r289378: Mark sub-make targets as .MAKE and .PHONY to handle -n and always-build properly. r289430: Remove .MAKE from targets that do more than just run sub-makes, such as calling rm or mtree. r289605: Add missing .PHONY for parallel subdir target. r289676: Add some missing '+', .MAKE, and .PHONY modifiers.
* MFC r290870:ngie2015-11-231-2/+2
| | | | | | Add NO_WERROR and WARNS to PROG_OVERRIDE_VARS for bsd.prog.mk compatibility Sponsored by: EMC / Isilon Storage Division
* Disable SSE in libthrvangyzen2015-10-261-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clang emits SSE instructions on amd64 in the common path of pthread_mutex_unlock. If the thread does not otherwise use SSE, this usage incurs a context-switch of the FPU/SSE state, which reduces the performance of multiple real-world applications by a non-trivial amount (3-5% in one application). Instead of this change, I experimented with eagerly switching the FPU state at context-switch time. This did not help. Most of the cost seems to be in the read/write of memory--as kib@ stated--and not in the #NM handling. I tested on machines with and without XSAVEOPT. One counter-argument to this change is that most applications already use SIMD, and the number of applications and amount of SIMD usage are only increasing. This is absolutely true. I agree that--in general and in principle--this change is in the wrong direction. However, there are applications that do not use enough SSE to offset the extra context-switch cost. SSE does not provide a clear benefit in the current libthr code with the current compiler, but it does provide a clear loss in some cases. Therefore, disabling SSE in libthr is a non-loss for most, and a gain for some. I refrained from disabling SSE in libc--as was suggested--because I can't make the above argument for libc. It provides a wide variety of code; each case should be analyzed separately. https://lists.freebsd.org/pipermail/freebsd-current/2015-March/055193.html Suggestions from: dim, jmg, rpaulo Sponsored by: Dell Inc.
* MFC r286822:ngie2015-10-251-1/+0
| | | | | | | Reap MK_SYSINSTALL It's no longer in use in the tree (most likely missed when sade/sysinstall were removed)
* MFC r284405:ngie2015-10-251-83/+1
| | | | | | Remove ALLOW_DEPRECATED_ATF_TOOLS/ATFFILE support from atf.test.mk The legacy atf tools were removed in atf 0.20
* Revert r289043.bdrewery2015-10-081-4/+0
| | | | | r284408 was marked for MFC but is not safe for stable/10 yet due to failing in bin/sh/tests.
OpenPOWER on IntegriCloud