aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* META_MODE: Simplify the META_COOKIE handling to use .USE/.USEBEFORE.Bryan Drewery2016-03-119-45/+29
| | | | | | | | | | Extend it to other cases of meta mode cookies so they get the proper rm cookie behavior when a .meta file detects it needs to rebuild and fails. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=296700
* DIRDEPS_BUILD: Add a sure way to prohibit building 'all' during dirdeps phase.Bryan Drewery2016-03-111-0/+10
| | | | | | | | | | | | | | | | | This obsoletes the _SKIP_BUILD check but keeps it for now until it proves to be enough. In the dirdeps build the first 'make all' or 'make' ran would invoke 'make dirdeps' which builds dependencies and then builds the current directory in a sub-make (when BUILD_AT_LEVEL0 is no, which for us it is). This behavior causes things attached to 'all:' to build in the dirdeps phase AND the sub-make phase which creates all kinds of problems for staging, meta file tracking, and races. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=296699
* DIRDEPS_BUILD: Reduce restaging here.Bryan Drewery2016-03-112-3/+9
| | | | | | | | | | This also fixes meta tracking for the beforeinstall since it had been marked .PHONY before (in bsd.sys.mk). Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=296698
* DIRDEPS_BUILD: Fix building during dirdeps.Bryan Drewery2016-03-112-0/+4
| | | | | | | Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=296697
* DIRDEPS_BUILD: Avoid rebuilds due to changed build commands with newly ↵Bryan Drewery2016-03-111-2/+1
| | | | | | | | | | | | | | | | | | | | | | | staged tools. This is a follow-up to r291561 which reworked the bootstrap tool PATH handling. An example of this is when building lib/clang/libclangedit. At first clang-tblgen will not be staged in the host tree so it will have CLANG_TBLGEN=clang-tblgen set and exported. During the build though it will stage clang-tblgen and then find it via the PATH. On the next build it finds clang-tblgen in the stage directory and would set CLANG_TBLGEN=<stagedir/usr/bin>/clang-tblgen thus causing the build command to change. In both cases the same exact tool was used though so there is no need to rebuild. If the tool did change the normal meta/filemon handling would pick that up via timestamp comparisons and rebuild. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=296696
* DIRDEPS_BUILD: Fix staging of share/sendmail and share/examples.Bryan Drewery2016-03-118-7/+49
| | | | | | | Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=296695
* DIRDEPS_BUILD: export DESTDIR for STAGING.Bryan Drewery2016-03-111-0/+1
| | | | | | | | | | | An example of where this is needed is in share/examples which for 'etc-examples' runs 'make -C SRCTOP/etc etc-examples' which installs to the default DESTDIR otherwise. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=296694
* DIRDEPS_BUILD: Extend beforeinstall: staging hack.Bryan Drewery2016-03-111-1/+1
| | | | | | | | | | Most beforeinstall: usage is not adding commands but only adding targets, such as in share/sendmail. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=296693
* Remove out-of-place make(buildincludes) check.Bryan Drewery2016-03-111-4/+0
| | | | | | | | | | | | This came in r239572 for META_MODE handling but it doesn't make sense since the staging is always done in make(all); make(buildincludes) is never actually ran in the META_MODE build. Reported by: bapt Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=296692
* DIRDEPS_BUILD: None of this is needed anymore.Bryan Drewery2016-03-111-22/+2
| | | | | | | | | | | | This file is using stage-install, so all of the .dirdep files are properly handled. The cookie handling also properly handles rebuilds with .meta files. DESTDIR from bsd.sys.mk is also respected for staging. This logic came in r239572. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=296691
* DIRDEPS_BUILD: Remove the cookie when target is out-of-date.Bryan Drewery2016-03-112-10/+12
| | | | | | | | | | | | | | The meta file may decide the target is out of date but nothing ensures that the *next* build will build this target if it fails this time for some reason; it is still out-of-date until it succeeds. Convert the include/ cookie usage to the global versions. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=296690
* cxgbe(4): sysctls to display the TOE's TCP timers.Navdeep Parhar2016-03-111-0/+135
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cask:~# sysctl -d dev.t5nex.0.toe dev.t5nex.0.toe.finwait2_timer: FINWAIT2 timer (us) dev.t5nex.0.toe.initial_srtt: Initial SRTT (us) dev.t5nex.0.toe.keepalive_intvl: Keepidle interval (us) dev.t5nex.0.toe.keepalive_idle: Keepidle idle timer (us) dev.t5nex.0.toe.persist_max: Persist timer max (us) dev.t5nex.0.toe.persist_min: Persist timer min (us) dev.t5nex.0.toe.rexmt_max: Retransmit max (us) dev.t5nex.0.toe.rexmt_min: Retransmit min (us) dev.t5nex.0.toe.dack_timer: DACK timer (us) dev.t5nex.0.toe.dack_tick: DACK tick (us) dev.t5nex.0.toe.timestamp_tick: TCP timestamp tick (us) dev.t5nex.0.toe.timer_tick: TP timer tick (us) ... cask:~# sysctl dev.t5nex.0.toe dev.t5nex.0.toe.finwait2_timer: 9765440 dev.t5nex.0.toe.initial_srtt: 244128 dev.t5nex.0.toe.keepalive_intvl: 73240800 dev.t5nex.0.toe.keepalive_idle: 7031116800 dev.t5nex.0.toe.persist_max: 9765440 dev.t5nex.0.toe.persist_min: 976544 dev.t5nex.0.toe.rexmt_max: 9765440 dev.t5nex.0.toe.rexmt_min: 244128 dev.t5nex.0.toe.dack_timer: 19520 dev.t5nex.0.toe.dack_tick: 32.768 dev.t5nex.0.toe.timestamp_tick: 1048.576 dev.t5nex.0.toe.timer_tick: 32.768 ... Notes: svn path=/head/; revision=296689
* Use SI_SUB_LAST instead of SI_SUB_SMP as the "catch-all" subsystem.John Baldwin2016-03-115-5/+5
| | | | | | | | | Reviewed by: kib Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D5515 Notes: svn path=/head/; revision=296688
* Pull in r250279 from upstream libc++ trunk (by Eric Fiselier):Dimitry Andric2016-03-112-5/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | Fix GCC atomic implementation in C++03 Pull in r250802 from upstream libc++ trunk (by Eric Fiselier): Detect relaxed constexpr rules for gcc versions Pull in r255585 from upstream libc++ trunk (by Eric Fiselier): Fix various GCC mis-configurations for newer versions. This patch goes through and enables C++11 and C++14 features for newer GCC's. The main changes are: 1. Turn on variable templates. (Uses __cpp_variable_templates) 2. Assert atomic<Tp> is trivially copyable (Uses _GNUC_VER >= 501). 3. Turn on trailing return support for GCC. (Uses _GNUC_VER >= 404) 4. XFAIL void_t test for GCC 5.1 and 5.2. Fixed in GCC 6. Together, these should fix building clang 3.8.0 as part of building world with recent versions of gcc (e.g. the devel/*-xtoolchain-gcc ports). Notes: svn path=/head/; revision=296687
* libelf: correct byte count in cross-endian note translationEd Maste2016-03-111-0/+1
| | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=296685
* Add more casper leftover files.Bryan Drewery2016-03-111-0/+6
| | | | | | | Reported by: jhb Notes: svn path=/head/; revision=296684
* Allow minimum and maximum sweep size be the same.Gleb Smirnoff2016-03-111-2/+2
| | | | | | | Submitted by: maxim Notes: svn path=/head/; revision=296683
* Make it possible for operations to refer to GPIO pins by nameOleksandr Tymoshenko2016-03-112-42/+127
| | | | | | | | | | | | | - Try to guess what is provided as a pin spec for -t or for get/set operation: number or name. Fails in case of ambiguity. - Add -p and -N switches to force pin specification interpretation: -p forces spec to be pin number, -N forces it to be name Submitted by: Emmanuel Vadot <manu@bidouilliste.com> Differential Revision: https://reviews.freebsd.org/D5201 Notes: svn path=/head/; revision=296682
* drm/i915: Fix malloc type in i915_gem_object_bind_to_gtt()Jean-Sébastien Pédron2016-03-111-2/+2
| | | | | | | drm_mm.c expects DRM_MEM_MM, not DRM_I915_GEM. Notes: svn path=/head/; revision=296681
* Pull in r246280 from upstream libc++ trunk (by Eric Fiselier):Dimitry Andric2016-03-112-4/+5
| | | | | | | | | | Fix most GCC warnings during build. Only -Wattribute left. This helps to fix a number of -Werror warnings when building world with recent versions of gcc (e.g. the devel/*-xtoolchain-gcc ports). Notes: svn path=/head/; revision=296679
* Add to CFLAGS, rather than replacing.Justin Hibbits2016-03-115-5/+5
| | | | | | | This allows additional CFLAGS, as set in bsd.cpu.mk, to go through. Notes: svn path=/head/; revision=296677
* Avoid MK_TESTS error on stable/10 by just preventing SUBDIR recursion.Bryan Drewery2016-03-111-1/+1
| | | | Notes: svn path=/head/; revision=296676
* Avoid bmake upgrade NO_MAN warning by just setting MAN to empty.Bryan Drewery2016-03-111-1/+1
| | | | | | | Suggested by: imp Notes: svn path=/head/; revision=296675
* drm: Fix dev->ioctl_count references leakJean-Sébastien Pédron2016-03-111-0/+4
| | | | | | | | | | | | | This fixes the following error: kernel: error: [drm:pid1167:drm_release] *ERROR* Device busy: 2 Because of that, drm_lastclose() was not called, leading to a few memory leaks once the driver was unloaded. MFC after: 1 week Notes: svn path=/head/; revision=296674
* Oops, remove debugging forgotten in r296655.Alexander Motin2016-03-111-1/+1
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=296673
* In nvmecontrol, fix gcc warnings about the local 'power' variablesDimitry Andric2016-03-111-5/+5
| | | | | | | shadowing a global declaration. Notes: svn path=/head/; revision=296672
* Revert r296645 as it breaks stable/10->head builds.Bryan Drewery2016-03-111-2/+1
| | | | Notes: svn path=/head/; revision=296671
* RegenerateBryan Drewery2016-03-111-8/+6
| | | | Notes: svn path=/head/; revision=296670
* Add a WITHOUT_FAST_DEPENDBryan Drewery2016-03-111-0/+5
| | | | Notes: svn path=/head/; revision=296669
* Enable FAST_DEPEND by default.Bryan Drewery2016-03-112-1/+11
| | | | | | | | Discussed on: arch Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=296668
* libdwarf: fix SHT_REL relocation processingEd Maste2016-03-111-3/+12
| | | | | | | | | | Relocation of type SHT_REL must use the current value as addend. PR: 204084 Obtained from: NetBSD libdwarf_elf_init.c v1.4 Notes: svn path=/head/; revision=296663
* o Kill EoL whitespaces. No functional changes.Maxim Konovalov2016-03-111-6/+6
| | | | Notes: svn path=/head/; revision=296662
* o Xr icmp(4).Maxim Konovalov2016-03-111-0/+1
| | | | Notes: svn path=/head/; revision=296661
* o Document net.inet.icmp.maskfake and net.inet.icmp.tstamprepl sysctls.Maxim Konovalov2016-03-111-2/+9
| | | | Notes: svn path=/head/; revision=296660
* Apply upstream r3651: the IPv6 address of the L root has changed.Dag-Erling Smørgrav2016-03-111-1/+1
|\ | | | | | | Notes: svn path=/head/; revision=296659
| * Apply upstream r3651: the IPv6 address of the L root has changed.Dag-Erling Smørgrav2016-03-111-1/+1
| | | | | | | | Notes: svn path=/vendor/unbound/dist/; revision=296658
* | Not ready for level 6 yet due to -Wredundant-decls.Dag-Erling Smørgrav2016-03-111-0/+1
| | | | | | | | Notes: svn path=/head/; revision=296657
* | Don't bother to invoke gmirror or zpool if the module is not loaded.Alexander Motin2016-03-111-0/+6
| | | | | | | | Notes: svn path=/head/; revision=296656
* | Unify and improve metadata wiping.Alexander Motin2016-03-111-24/+18
| | | | | | | | | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=296655
* | Use `geom disk list` instead `camcontrol identify`.Alexander Motin2016-03-111-2/+2
| | | | | | | | | | | | | | | | | | The new way works for almost any disk, while the old only for ATA. MFC after: 2 weeks Notes: svn path=/head/; revision=296654
* | Allow standard commands for "unknown" classes in RESCUE mode.Alexander Motin2016-03-111-2/+1
| | | | | | | | | | | | | | | | | | For example, it allows quite useful `geom disk list` command. MFC after: 1 week Notes: svn path=/head/; revision=296653
* | Do not perform unneccessary shared recursion on the allproc_lock inKonstantin Belousov2016-03-111-10/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | pfs_visible(). The recursion does not cause deadlock because the sx implementation does not prefer exclusive waiters over the shared, but this is an implementation detail. Reported by: pho, Matthew Bryan <matthew.bryan@isilon.com> Reviewed by: jhb Tested by: pho Approved by: des (pseudofs maintainer) Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Notes: svn path=/head/; revision=296652
* | Define __bounded__ to fix the gcc build. While there, raise WARNS.Dag-Erling Smørgrav2016-03-112-2/+4
| | | | | | | | Notes: svn path=/head/; revision=296651
* | - Implement -T option to allow to specify a fs type for a vnode-backed ↵Alex Kozlov2016-03-112-8/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | memory disk - Rephrase -t option description (manpage) - Split long sentences (manpage) Differential Review: https://reviews.freebsd.org/D4394 Reviewed by: mav, wblock (manpage) Approved by: mav Notes: svn path=/head/; revision=296648
* | Use the new bmake .dinclude feature to make these safe.Bryan Drewery2016-03-111-5/+9
| | | | | | | | | | | | | | | | | | | | | | At least FAST_DEPEND won't even run 'make depend', so the code was potentially broken with FAST_DEPEND anyhow. The .dinclude directive will ignore missing files rather than make them be fatal. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=296647
* | FAST_DEPEND: Use .dinclude to enable full .depend logic in bmake.Bryan Drewery2016-03-113-1/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=296646
* | Fix bmake upgrade NO_MAN warnings.Bryan Drewery2016-03-111-1/+2
| | | | | | | | | | | | | | | | MFC after: 1 week Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=296645
* | Fix upgrade of bmake by not setting conflicting MAKE_VERSION.Bryan Drewery2016-03-111-2/+2
| | | | | | | | | | | | | | | | | | | | This may be used in later checks, such as in bsd.dep.mk, to enable features that rely on the built-in value. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=296644
* | Fix make -n upgrade_checks.Bryan Drewery2016-03-111-1/+1
| | | | | | | | | | | | | | | | MFC after: 1 week Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=296643
* | Factor out lib32 generation to its own file. This is prep for aWarner Losh2016-03-112-133/+138
| | | | | | | | | | | | | | | | | | | | | | | | | | similar Makefile.libsoft which will do the same for armv6 soft fp API libraries in prep for pulling the trigger on moving to armv6 hard float. Once there's two files, I'll work with bdrewery@ to merge the two files as they are mostly the same. The high rate of churn for Makefile* makes it quite difficult to make progress out of tree. Differential Review: https://reviews.freebsd.org/D5566 Notes: svn path=/head/; revision=296642