aboutsummaryrefslogtreecommitdiff
path: root/share
Commit message (Collapse)AuthorAgeFilesLines
* Fix incorrect defined() usage from style clean up in r289735.Bryan Drewery2015-10-221-2/+2
| | | | | | | | | | Submitted by: ngie MFC after: 2 weeks X-MFC-With: r289735 Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=289737
* Document that we use {} for variable expansion.Bryan Drewery2015-10-221-1/+8
| | | | | | | | MFC after: 1 week Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=289736
* Fix style. Namely use {} rather than ().Bryan Drewery2015-10-221-53/+54
| | | | | | | | MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=289735
* Rewrite crunchgen target handling for progs so that it can be parallelized.Bryan Drewery2015-10-221-23/+13
| | | | | | | | | | | | | | This covers 'clean', 'cleandepend', 'cleandir', 'obj', 'objlink' and 'build-tools'. This uses the same method as bsd.subdir.mk. MFC after: 2 weeks X-MFC-With: r289731 Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=289734
* Clean up some bsd.crunchgen.mk issues.Bryan Drewery2015-10-221-17/+18
| | | | | | | | | | | | - Remove handling of 'make -P' since that is for fmake only. - Add '+' where appropriate for sub-make calls. - Pass MK_TESTS=no to all of the sub-makes to prevent recursing into test directories for targets such as 'obj', 'clean', 'depend', etc. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=289731
* Let SUBDIR_OVERRIDE with 'make buildworld' be more useful.Bryan Drewery2015-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 Notes: svn path=/head/; revision=289725
* Add myself (avos) to committers-src.dotAndriy Voskoboinyk2015-10-211-0/+2
| | | | | | | | Approved by: adrian (mentor) Differential Revision: https://reviews.freebsd.org/D3941 Notes: svn path=/head/; revision=289724
* Remove indirection of _sub target for using _SUBDIR.Bryan Drewery2015-10-211-6/+4
| | | | | | | | | | | | | | | | | | | | | | | This reverts r266473 as the need for it, working around .MAKE and '+' issues, is no longer needed after r289460. This avoids extra log output in -j builds of '-- _sub.TARGET --' that are redundant with the '-- TARGET --' and '-- TARGET_subdir_DIR --' entries already showing. r266473 also made a subtle change in the ordering of _SUBDIR handling. Before the change, SUBDIRS were recursed into after building the TARGET due to the .USE of _SUBDIR *appending* the commands onto the TARGET. After the change though the indirection caused TARGET to depend on _sub.TARGET which had the _SUBDIR handling in it. This TARGET would run after recursing. However, the SUBDIR_PARALLEL handling from r263778 has this ordering as well. Since this has so far not been a problem, for now make this behavior for non-SUBDIR_PARALLEL use of _SUBDIR explicit by using .USEBEFORE. Further research may change this back to .USE as well as the SUBDIR_PARALLEL handling and bsd.progs.mk recursing. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=289705
* Fix building in a directory with SUBDIRs and SUBDIR_PARALLEL.Bryan Drewery2015-10-211-4/+4
| | | | | | | | | | | | | | | | | | The SUBDIR_PARALLEL feature uses a .for dir in ${SUBDIR} loop. The old code here for recursing was setting SUBDIR= as a make *argument*. The SUBDIR= replacement was not actually handled until after the .for loop was unrolled. This could be seen with a '.info ${SUBDIR} ${dir}' inside of the loop which showed an empty ${SUBDIR} and a set ${dir}. Setting NO_SUBIDR= before calling ${MAKE} as an *environment* variable handles the case fine and is a more proper mechanism for disabling subdir handling. This could be seen with 'make -C tests/sys/kern -j15 SUBDIR_PARALLEL=yes'. MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=289669
* cpuset.9: Link to/from the new pageConrad Meyer2015-10-201-0/+2
| | | | | | | | | A follow-up to r289667. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=289668
* Document cpuset(9)Conrad Meyer2015-10-203-14/+381
| | | | | | | | | | A follow-up to r289467. Coerced by: jhb Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=289667
* Improve safety of caching from r289659 by only importing of none of theBryan Drewery2015-10-201-0/+9
| | | | | | | | | | | | variables are already set. This should cover odd cases such as the COMPILER_TYPE override in lib/csu/powerpc64. X-MFC-With: r289659 MFC after: 3 weeks Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=289663
* Pass COMPILER_TYPE and COMPILER_VERSION to sub-makes to avoid redundantBryan Drewery2015-10-201-0/+20
| | | | | | | | | | | | | | | | | | | | lookups. This uses a special variable name based on a hash of ${CC}, ${PATH}, and ${MACHINE} to ensure that a cached value is not used if any of these values changes to use a new compiler. Before this there were 34,620 fork/exec from bsd.compiler.mk during a buildworld. After this there are 608. More improvement is needed to cache a value from the top-level before descending into subdirs in the various build phases. Reviewed by: brooks (earlier version) MFC after: 3 weeks Sponsored by: EMC / Isilon Storage Division Differential Revision: https://reviews.freebsd.org/D3898 Notes: svn path=/head/; revision=289659
* o NetBSD 7.0, OpenBSD 5.8, FreeBSD 10.2, OS X 10.11 added.Sergey Kandaurov2015-10-201-11/+19
| | | | Notes: svn path=/head/; revision=289623
* Replace all of the duplicated logic for recursing into a subdir with oneBryan Drewery2015-10-191-30/+17
| | | | | | | | | | implementation. It is duplicated at run-time but is more easily maintainable now. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=289606
* Add missing .PHONY for parallel subdir target.Bryan Drewery2015-10-191-1/+1
| | | | | | | | MFC after: 1 week Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=289605
* Make libxo depend on libutil because it uses humanize_number after r287111Enji Cooper2015-10-181-0/+1
| | | | | | | | | | | Remove overlinking in lib/libxo/tests, sbin/savecore, and usr.bin/{iscsictl,wc,xo} PR: 203673 Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=289490
* Only enable -fstack-protector-strong on gcc 4.9+ and default to ↵Enji Cooper2015-10-181-2/+4
| | | | | | | | | | | | | | | | | | | | -fstack-protector when -fstack-protector-strong is not available, like it was implicitly before r288669 As noted by antoine@, devel/gcc (which is 4.8.5) lacks -fstack-protector-strong support, whereas 4.8.4i (devel/gcc48) has the support. Until a version is available which has -fstack-protector-strong support, be conservative and only enable support with 4.9+. Reviewed by: pfg X-MFC with: r288669, r289465 Differential Revision: https://reviews.freebsd.org/D3924 Notes: svn path=/head/; revision=289481
* Document bitset(9)Conrad Meyer2015-10-173-2/+430
| | | | Notes: svn path=/head/; revision=289467
* Only use -fstack-protector-strong with supported compilersEnji Cooper2015-10-171-0/+4
| | | | | | | | | | | | | | | | | | This includes clang 3.5.0+, gcc 4.2.1, gcc 4.8.4+ This allows me to do subdirectory makes again after setting MAKESYSPATH on 10.2-RELEASE as it comes with clang 3.4.1. As a sidenote: this isn't technically correct for all vintages of gcc 4.2.1, but will be correct when gcc is rebuilt/reinstalled after r286074, so this version check should be good enough. X-MFC with: r288669 Differential Revision: https://reviews.freebsd.org/D3924 Reviewed by: emaste, pfg Notes: svn path=/head/; revision=289465
* Rework the 'make -n -n' feature such that '-n' recurses and '-N' does not.Bryan Drewery2015-10-171-7/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bmake has a documented feature of '-N' to skip executing commands which is specifically intended for debugging top-level builds and not recursing into sub-directories. This matches the older 'make -n' behavior we added which made '-n -n' the recursing target and '-n' a non-recursing target. Removing the '-n -n' feature allows the build to work as documented in the bmake manpage with '-n' and '-N'. The older '-n -n' feature was also not documented anywhere that I could see. Note that the ${_+_} var is still needed as currently bmake incorrectly executes '+' commands when '-N' is specified. The '-n' and '-n -n' features were broken for several reasons prior to this. r251748 made '_+_' never expand with '-n -n' which resulted in many sub-directories not being visited until fixed 2 years later in r288391, and many targets were given .MAKE over the past few years which resulted in non-sub-make commands, such as rm and ln and mtree, to be executed. This should also allow removing some indirection hacks in bsd.subdir.mk and other cases of .USE that have a .MAKE by using '+'. Sponsored by: EMC / Isilon Storage Division Discussed on: arch@ (mostly silence) Notes: svn path=/head/; revision=289460
* Install share/zoneinfo in a deterministic way by sorting the results from findEnji Cooper2015-10-171-1/+1
| | | | | | | | | | | | | This helps produce deterministic METALOG output PR: 200674 Submitted by: Fabian Keil <fk@fabiankeil.de> Reviewed by: emaste MFC after: 1 week Obtained from: ElectroBSD Notes: svn path=/head/; revision=289451
* Similar to r289355, /usr/tests is within the base system so put the symbolsBryan Drewery2015-10-161-1/+1
| | | | | | | | | | | | | | | | | | | | into /usr/lib/debug. This covers some missing files: /usr/tests/libexec/rtld-elf/.debug /usr/tests/libexec/rtld-elf/.debug/libpythagoras.so.0.debug /usr/tests/lib/libc/tls/.debug /usr/tests/lib/libc/tls/.debug/libh_tls_dynamic.so.1.debug /usr/tests/lib/libc/tls/.debug/h_tls_dlopen.so.debug /usr/tests/lib/libthr/dlopen/.debug /usr/tests/lib/libthr/dlopen/.debug/h_pthread_dlopen.so.1.debug /usr/tests/lib/libxo/.debug /usr/tests/lib/libxo/.debug/libenc_test.so.debug Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=289408
* Rename the /usr/share/doc/legal files to driver.LICENSE to work aroundBryan Drewery2015-10-1613-34/+39
| | | | | | | | | | | | | | | | bug of installing 'realtek' and 'intel_iwn' as files rather then as a 'LICENSE' file in their directories. Also add obsolete entries for the older names and names that existed in head for a period of time. Suggested by: jmg X-MFC-With: r289391 MFC after: 3 weeks Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=289399
* Add more SUBDIR_PARALLEL.Bryan Drewery2015-10-1513-0/+20
| | | | | | | | MFC after: 3 weeks Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=289393
* Make installing to a non-existent directory an error.Bryan Drewery2015-10-157-15/+15
| | | | | | | | | | | | | | | | | | | | | | | | Before this, if a file was installed to DESTDIR/some/dir and that directory was missing due to not having ran 'make distrib-dirs' yet, the file would be installed as 'some/dir'. For something like bsd.incs.mk with INCLUDEDIR being a sub-directory of /usr/include, this could result in all of the headers being installed to a file rather than getting a directory of them. Now it will error that the file/directory does not exist rather than hide the issue. Another option being discussed is to implement GNU's install -D flag which would auto create any missing directories. This is a mitigation of the problem. The proper order to the build is to run 'make distrib-dirs' first, but that can be forgotten if building from a sub-directory after updating the source code to the latest revision. MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=289391
* Fix wrong use of .for; the iteration variable is not used in the loop.Bryan Drewery2015-10-151-2/+2
| | | | | | | | MFC after: 1 week Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=289375
* Remove excess .elseBryan Drewery2015-10-151-1/+0
| | | | | | | | MFC after: 1 week Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=289374
* /usr/tests is part of the base system (for *.debug files)Ed Maste2015-10-151-1/+1
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=289355
* Add missing targets to PHONY_NOTMAIN.Bryan Drewery2015-10-141-7/+7
| | | | | | | | | | - buildconfig, installconfig (missed in r289085) - files (missed in r241298) Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=289335
* Recurse on 'buildconfig' and 'installconfig'. Remove the 'config' pseudo ↵Bryan Drewery2015-10-141-4/+5
| | | | | | | | | | | | | | target. The 'config' target isn't really needed right now so just remove it to avoid any clashes with config(8) building. It's also likely misspelled and should be 'configs' if we decide to add it back. This was just a convenience target recently added. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=289334
* Re-indent the ALL_SUBDIR_TARGETS listBryan Drewery2015-10-141-2/+3
| | | | Notes: svn path=/head/; revision=289333
* Revert r289282 for now as the interaction with a directory containingBryan Drewery2015-10-144-15/+20
| | | | | | | bsd.files.mk and bsd.subdir.mk is recursing too many times. Notes: svn path=/head/; revision=289331
* /libexec subdirs are part of the base system (for *.debug files)Ed Maste2015-10-141-1/+1
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=289330
* resolver: automatically reload /etc/resolv.confEric van Gyzen2015-10-141-3/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | On each resolver query, use stat(2) to see if the modification time of /etc/resolv.conf has changed. If so, reload the file and reinitialize the resolver library. However, only call stat(2) if at least two seconds have passed since the last call to stat(2), since calling it on every query could kill performance. This new behavior is enabled by default. Add a "reload-period" option to disable it or change the period of the test. Document this behavior and option in resolv.conf(5). Polish the man page just enough to appease igor. https://lists.freebsd.org/pipermail/freebsd-arch/2015-October/017342.html Reviewed by: kp, wblock Discussed with: jilles, imp, alfred MFC after: 1 month Relnotes: yes Sponsored by: Dell Inc. Differential Revision: https://reviews.freebsd.org/D3867 Notes: svn path=/head/; revision=289315
* Fix support for building a PROG_CXX, and PROG, directly.Bryan Drewery2015-10-141-3/+6
| | | | | | | | | | | | | | | | For example in lib/atf/libatf-c++/tests/detail it is now possible to run 'make application_test'. This was intended to worked for PROGS, but lacked support for PROGS_CXX. Also fix redefining the main PROG target to recurse. This isn't needed since the main process is setting PROG/PROG_CXX to handle it directly via bsd.prog.mk. MFC after: 3 weeks Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=289289
* Fix date.Adrian Chadd2015-10-141-1/+1
| | | | | | | Noticed by: bdrewery Notes: svn path=/head/; revision=289287
* Follow-up r288218 by ensuring common objects are built before recursing.Bryan Drewery2015-10-141-0/+19
| | | | | | | | | | | | | | | | | | | | Some example where this is a problem: lib/atf/libatf-c++/tests/Makefile:SRCS.${_T}= ${_T}.cpp test_helpers.cpp lib/atf/libatf-c++/tests/detail/Makefile:SRCS.${_T}= ${_T}.cpp test_helpers.cpp lib/atf/libatf-c/tests/Makefile:SRCS.${_T}= ${_T}.c test_helpers.c lib/atf/libatf-c/tests/detail/Makefile:SRCS.${_T}= ${_T}.c test_helpers.c lib/libpam/libpam/tests/Makefile:SRCS.${test} = ${test}.c ${COMMONSRC} A similar change may be needed for FILES, SCRIPTS, or INCS, but for now stay with just SRCS. Reported by: rodrigc MFC after: 3 weeks X-MFC-With: r288218 Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=289286
* rsu(4) manpage updates: add me, add 802.11n support, update caveats.Adrian Chadd2015-10-141-1/+4
| | | | | | | | | * Add that I indeed added 802.11n support. * Update caveats - we support 1x1, 1x2 and 2x2 operation now, but there's no transmit aggregation support. Notes: svn path=/head/; revision=289283
* Replace the out-of-place includes/files/config handling in bsd.subdir.mk withBryan Drewery2015-10-144-20/+15
| | | | | | | | | | | | | | | more typical ALL_SUBDIR_TARGETS entries and target hooks in bsd.incs.mk, bsd.files.mk and bsd.confs.mk. This allows the targets to be NOPs if unneeded and still work with the shortcut 'make includes' to build and then install in a parallel-safe manner. Sort and re-indent the ALL_SUBDIR_TARGETS with the new entries. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=289282
* Correct a comment in bsd.incs.mk forgotten in r274662 and copied into ↵Bryan Drewery2015-10-142-2/+2
| | | | | | | | | | | bsd.confs.mk. The bsd.confs.mk may be wrong but for now fix it. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=289278
* Add a note about the mysterious files/includes/config block.Bryan Drewery2015-10-141-0/+3
| | | | | | | This originated from r96668. Notes: svn path=/head/; revision=289277
* bsd.subdir.mk: Move all of the targets into ALL_SUBDIR_TARGETS.Bryan Drewery2015-10-131-6/+7
| | | | | | | | | | | | | Also improve documentation. The SUBDIR_TARGETS variable should really be named LOCAL_SUBDIR_TARGETS, but renaming it may be a surprise for downstream vendors who use this variable. MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=289254
* bsd.subdir.mk: Handle cleanobj.Bryan Drewery2015-10-131-1/+1
| | | | | | | | | | | | | Before this, the target was unknown. Now it will recurse on subdirs and run the target in the current directory. It is required to recurse as there may be subdirs that have objs in their directory or in the object directory, so it is not enough to just delete the objdir of the subdir parent. MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=289253
* Replace references to /dev/acd0 with /dev/cd0Enji Cooper2015-10-131-3/+3
| | | | | | | | | | | atapicd(4) was replaced by cd(4) with the atacam work done by mav@ and then removed in r249083 X-MFC to: stable/10 MFC after: 2 weeks Notes: svn path=/head/; revision=289229
* Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) andEnji Cooper2015-10-122-4/+2
| | | | | | | | | | | | | | | netbsd-tests.test.mk (r289151) - Eliminate explicit OBJTOP/SRCTOP setting - Convert all ad hoc NetBSD test integration over to netbsd-tests.test.mk - Remove unnecessary TESTSDIR setting - Use SRCTOP where possible for clarity MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Divison Notes: svn path=/head/; revision=289172
* Default TESTSDIR to /usr/tests/${RELDIR:H}Enji Cooper2015-10-112-4/+9
| | | | | | | | | | | | | | | | | | 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 MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=289158
* Simplify netbsd-tests.test.mkEnji Cooper2015-10-111-8/+4
| | | | | | | | | | | | | | | | - 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. MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=289151
* Use existing CONFDIR instead of adding a new CONFIGDIRBaptiste Daroussin2015-10-111-1/+0
| | | | | | | Reported by: jbeich Notes: svn path=/head/; revision=289148
* Make delete method set via kern.cam.da.X.delete_method persistent.Alexander Motin2015-10-111-11/+20
| | | | | | | | | | | | This allows to set delete method via tunable, before device capabilities are known. Also allow ZERO method for devices not reporting LBP, if user explicitly requests it -- it may be useful if storage supports compression and WRITE SAME, but does not support UNMAP. MFC after: 2 weeks Notes: svn path=/head/; revision=289146