aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Remove more disconnected libgpib items missed in r276214.Bryan Drewery2015-10-229-1472/+0
| | | | | | | Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=289730
* Fix IEEE80211_ADDR_COPY() usage.Kevin Lo2015-10-221-1/+1
| | | | | | | Reviewed by: adrian Notes: svn path=/head/; revision=289729
* Warn that NOCLEAN is deprecated - use NO_CLEAN insteadEd Maste2015-10-221-0/+1
| | | | | | | NO_CLEAN has been the correct spelling for over a decade. Notes: svn path=/head/; revision=289728
* Add FDT compatibility to the icee driver.Ian Lepore2015-10-221-37/+120
| | | | | | | | | | | | | | | | | | | | | | | The FDT bindings for eeprom parts don't include any metadata about the device other than the part name encoded in the compatible property. Instead, a driver is required to have a compiled-in table of information about the various parts (page size, device capacity, addressing scheme). So much for FDT being an abstract description of hardware characteristics, huh? In addition to the FDT-specific changes, this also switches to using the newer iicbus_transfer_excl() mechanism which holds bus ownership for the duration of the transfer. Previously this code held the bus across all the transfers needed to complete the user's IO request, which could be up to 128KB of data which might occupy the bus for 10-20 seconds. Now the bus will be released and re-aquired between every page-sized (8-256 byte) transfer, making this driver a much nicer citizen on the i2c bus. The hint-based configuration mechanism is still in place for non-FDT systems. Michal Meloun contributed some of the code for these changes. Notes: svn path=/head/; revision=289727
* Add iicbus_transfer_excl(), a helper routine to do an i2c bus transactionIan Lepore2015-10-222-0/+17
| | | | | | | | | while holding exclusive ownership of the bus. This is the routine most slave drivers should use unless they have a need to acquire and hold the bus across a series of related operations that involves multiple transfers. Notes: svn path=/head/; revision=289726
* Let SUBDIR_OVERRIDE with 'make buildworld' be more useful.Bryan Drewery2015-10-222-11/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* i915_gem_do_execbuffer() holds the pages backing each relocation region forJohn Baldwin2015-10-211-9/+12
| | | | | | | | | | | | | | | | | | | | | various reasons while executing user commands. After these commands are completed, the pages backing the relocation regions are unheld. Since relocation regions do not have to be page aligned, the code in validate_exec_list() allocates 2 extra page pointers in the array of held pages populated by vm_fault_quick_hold_pages(). However, the cleanup code that unheld the pages always assumed that only the buffer size / PAGE_SIZE pages were used. This meant that non-page aligned buffers would not unheld the last 1 or 2 pages in the list. Fix this by saving the number of held pages returned by vm_fault_quick_hold_pages() for each relocation region and using this count during cleanup. Reviewed by: dumbbell, kib MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D3965 Notes: svn path=/head/; revision=289719
* if_tap: correct typo in sysctl description (Enably)Ed Maste2015-10-211-1/+1
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=289718
* Use pmap_quick* functions in arm64 busdma to make bounce buffer ↵Jason A. Harmening2015-10-211-45/+56
| | | | | | | | | synchronization more flexible and avoid borrowing UVAs for userspace buffers. This is mostly equivalent to r286785 and r286787 for x86. Differential Revision: https://reviews.freebsd.org/D3870 Notes: svn path=/head/; revision=289717
* Treat mbufs as cacheline-aligned. Even when the transfer begins at anIan Lepore2015-10-211-4/+12
| | | | | | | | | | offset within the buffer to align the L3 headers we know the buffer itself was allocated and sized on cacheline boundaries and we don't need to preserve partitial cachelines at the start and end of the buffer when doing busdma sync operations. Notes: svn path=/head/; revision=289716
* arm64: Enable CTF for DTrace supportEd Maste2015-10-211-0/+1
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=289714
* Fix my change in r289435 causing 'etc' to be added to SUBDIR when usingBryan Drewery2015-10-211-1/+2
| | | | | | | | | | | SUBDIR_OVERRIDE. MFC after: 2 weeks X-MFC-With: r289435 Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=289712
* Build ofw_bus_if.h for modules that need it on arm64Ed Maste2015-10-212-3/+4
| | | | Notes: svn path=/head/; revision=289710
* Free memory back into the categories it was allocated from.Ian Lepore2015-10-211-8/+9
| | | | | | | | Noticed by: sbruno Pointy hat: ian Notes: svn path=/head/; revision=289708
* Pass proper device to pci_read_config().Alexander Motin2015-10-211-2/+3
| | | | | | | For some reason JMicron driver was different from others at this point. Notes: svn path=/head/; revision=289707
* Add missing forward declaration of struct image_params.Ed Schouten2015-10-211-0/+1
| | | | Notes: svn path=/head/; revision=289706
* 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 parsing of I2C addresses properties in fdt data. I2C address isIan Lepore2015-10-213-3/+7
| | | | | | | | | | represented in 7-bits format in DT files, but system expect it in 8-bit format. Also, fix two drivers that locally hack around this bug. Submitted by: Michal Meloun <meloun@miracle.cz> Notes: svn path=/head/; revision=289704
* Make some panic strings mode informative.Alexander Motin2015-10-212-47/+48
| | | | Notes: svn path=/head/; revision=289702
* Switch mips busdma to using the common busdma_buffalloc code. This amountsIan Lepore2015-10-212-125/+183
| | | | | | | | | | | | | | | | | | | | | | to copying in some code from the armv4 busdma, and adapting a few variable and flag names to match the surrounding mips code. Instead of keeping a local cache of prealloced busdma_map structs on a mutex-protected list, set up an uma zone to cache them. Instead of all memory allocations using M_DEVBUF, use new categories M_BUSDMA for allocations of metadata (tags, maps, segment tracking lists), and M_BOUNCE for bounce pages. When buffers are allocated out of the busdma_bufalloc zones the alignment and size of the buffers is known, and the code can skip doing any "partial cacheline flush" logic to preserve data that may be adjacent to the DMA buffer but contain non-DMA data. Reviewed by: adrian, imp Notes: svn path=/head/; revision=289701
* Switch from a stub to a real implementation of pmap_page_set_attr() for mips,Ian Lepore2015-10-212-7/+44
| | | | | | | | | | and implement support for VM_MEMATTR_UNCACHEABLE. This will be used in upcoming changes to support BUS_DMA_COHERENT in bus_dmamem_alloc(). Reviewed by: adrian, imp Notes: svn path=/head/; revision=289699
* Move arm_gic_bind() out of the #ifdef SMP block to fix compile errors inIan Lepore2015-10-211-1/+1
| | | | | | | | | | the not-SMP case. This is safe because arm_irq_next_cpu() will return the cpuid of the current/only core in the not-SMP case. Submitted by: Bartosz Szczepanek @ semihalf Notes: svn path=/head/; revision=289698
* netfront: fix LINT-NOIPRoger Pau Monné2015-10-211-0/+2
| | | | | | | | | | | r289587 broke LINT-NOIP kernels because the lro and queued local variables are defined but not used. Add preprocessor guards around them. Reported by: emaste Sponsored by: Citrix Systems R&D Notes: svn path=/head/; revision=289697
* Revert lib/libc/gen/dirname.3@r289695Enji Cooper2015-10-211-2/+0
| | | | | | | This is why I use branches usually, not commit directly to head Notes: svn path=/head/; revision=289696
* Revert r289694Enji Cooper2015-10-2110-250/+13
| | | | | | | I committed some other undesirable local changes by accident Notes: svn path=/head/; revision=289695
* Add some rudimentary [smoke] testcases for makefsEnji Cooper2015-10-219-11/+250
| | | | | | | | MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=289694
* Unbreak makefs -t cd9660 after r289687Enji Cooper2015-10-211-1/+1
| | | | | | | | | | | | | | | | buffer_head needs to be freed -- not buffer Detected by jemalloc, i.e. running makefs failed the arena assert because my copy of malloc on CURRENT is compiled with the default !MALLOC_PRODUCTION asserts on Pointyhat to: ngie PR: 203647 X-MFC with: r289687 Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=289693
* Free buffer before returning from cd9660_write_path_table to avoidEnji Cooper2015-10-211-2/+4
| | | | | | | | | | | | | leaking it after returning from the function MFC after: 1 week PR: 203647 Submitted by: Thomas Schmitt <scdbackup@gmx.net> Coverity CID: 978431 Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=289687
* xen: Code cleanup and small bug fixesRoger Pau Monné2015-10-2115-188/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | xen/hypervisor.h: - Remove unused helpers: MULTI_update_va_mapping, is_initial_xendomain, is_running_on_xen - Remove unused define CONFIG_X86_PAE - Remove unused variable xen_start_info: note that it's used inpcifront which is not built at all - Remove forward declaration of HYPERVISOR_crash xen/xen-os.h: - Remove unused define CONFIG_X86_PAE - Drop unused helpers: test_and_clear_bit, clear_bit, force_evtchn_callback - Implement a generic version (based on ofed/include/linux/bitops.h) of set_bit and test_bit and prefix them by xen_ to avoid any use by other code than Xen. Note that It would be worth to investigate a generic implementation in FreeBSD. - Replace barrier() by __compiler_membar() - Replace cpu_relax() by cpu_spinwait(): it's exactly the same as rep;nop = pause xen/xen_intr.h: - Move the prototype of xen_intr_handle_upcall in it: Use by all the platform x86/xen/xen_intr.c: - Use BITSET* for the enabledbits: Avoid to use custom helpers - test_bit/set_bit has been renamed to xen_test_bit/xen_set_bit - Don't export the variable xen_intr_pcpu dev/xen/blkback/blkback.c: - Fix the string format when XBB_DEBUG is enabled: host_addr is typed uint64_t dev/xen/balloon/balloon.c: - Remove set but not used variable - Use the correct type for frame_list: xen_pfn_t represents the frame number on any architecture dev/xen/control/control.c: - Return BUS_PROBE_WILDCARD in xs_probe: Returning 0 in a probe callback means the driver can handle this device. If by any chance xenstore is the first driver, every new device with the driver is unset will use xenstore. dev/xen/grant-table/grant_table.c: - Remove unused cmpxchg - Drop unused include opt_pmap.h: Doesn't exist on ARM64 and it doesn't contain anything required for the code on x86 dev/xen/netfront/netfront.c: - Use the correct type for rx_pfn_array: xen_pfn_t represents the frame number on any architecture dev/xen/netback/netback.c: - Use the correct type for gmfn: xen_pfn_t represents the frame number on any architecture dev/xen/xenstore/xenstore.c: - Return BUS_PROBE_WILDCARD in xctrl_probe: Returning 0 in a probe callback means the driver can handle this device. If by any chance xenstore is the first driver, every new device with the driver is unset will use xenstore. Note that with the changes, x86/include/xen/xen-os.h doesn't contain anymore arch-specific code. Although, a new series will add some helpers that differ between x86 and ARM64, so I've kept the headers for now. Submitted by: Julien Grall <julien.grall@citrix.com> Reviewed by: royger Differential Revision: https://reviews.freebsd.org/D3921 Sponsored by: Citrix Systems R&D Notes: svn path=/head/; revision=289686
* x86/xen: Consolidate xen-os.h in a single placeRoger Pau Monné2015-10-213-316/+140
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | amd64 and i386 platform code contain very similar xen/xen-os.h The only differences are: - Functions/variables/types which were unused in i386/xen/xen-os.h: * xen_xchg * __xchg_dummy * __xg * __xchg * atomic_t * atomic_inc * rdtscll The functions/variables/types unused in xen-os.h can be dropped and there is no more differences betwen amd64 and i386. The new header is placed in x86/include/xen and each platform will have dummy headers include x86/xen/*.h. This is to be able to include machine/xen/*.h in the PV drivers. Submitted by: Julien Grall <julien.grall@citrix.com> Reviewed by: royger Differential Revision: https://reviews.freebsd.org/D3880 Sponsored by: Citrix Systems R&D Notes: svn path=/head/; revision=289685
* Remove all comments deriving from Linux.Hans Petter Selasky2015-10-211-48/+6
| | | | | | | | | | Minor rework of ilog2() function. Suggested by: emaste @ Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=289683
* Remove all comments deriving from Linux. Style file for FreeBSD.Hans Petter Selasky2015-10-211-146/+25
| | | | | | | | Suggested by: emaste @ Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=289682
* Some more defines and polishing for INIT_FIRMWARE.Alexander Motin2015-10-212-24/+51
| | | | Notes: svn path=/head/; revision=289681
* Reimplement header file, remove all comments deriving from Linux andHans Petter Selasky2015-10-211-73/+38
| | | | | | | | | | update copyright to 2-clause BSD. Suggested by: emaste @ Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=289680
* Remove BUS_DMA_NOWAIT from bus_dma_tag_create() invocations as it'sKevin Lo2015-10-213-15/+9
| | | | | | | no valid flag there. Notes: svn path=/head/; revision=289679
* arge: Remove the debugging printf that snuck in.Adrian Chadd2015-10-211-5/+0
| | | | | | | | | | | This was triggering when using it as an AP bridge rather than an ethernet bridge. The code is unclear but it works; I'll fix it to be clearer and test performance at a later stage. Notes: svn path=/head/; revision=289678
* Fix a ton of speelling errorsEitan Adler2015-10-2145-64/+64
| | | | | | | | | | arc lint is helpful Reviewed By: allanjude, wblock, #manpages, chris@bsdjunk.com Differential Revision: https://reviews.freebsd.org/D3337 Notes: svn path=/head/; revision=289677
* Add some missing '+', .MAKE, and .PHONY modifiers.Bryan Drewery2015-10-211-51/+52
| | | | | | | | | | | Some of these targets were lacking both .MAKE and a '+'. Others were just inconsistent. MFC after: 1 week Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=289676
* Use pmap_quick* for out-of-context bounce buffers and (limited) cache ↵Jason A. Harmening2015-10-211-26/+125
| | | | | | | | | | maintenance of unmapped buffers in armv5 busdma. Tested by: Mattia Rossi <mattia.rossi.mailinglists@gmail.com> Differential Revision: https://reviews.freebsd.org/D3522 Notes: svn path=/head/; revision=289675
* Switch PCI register reads from using magic numbers to using the namesKevin Lo2015-10-211-4/+4
| | | | | | | defined in pcireg.h Notes: svn path=/head/; revision=289674
* arge: don't do the rx fixup copy and just offset the mbuf by 2 bytesAdrian Chadd2015-10-211-2/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The existing code meets the "alignment" requirement for the l3 payload by offsetting the mbuf by uint64_t and then calling an rx fixup routine to copy the frame backwards by 2 bytes. This DWORD aligns the L3 payload so tcp, etc doesn't panic on unaligned access. This is .. slow. For arge MACs that support 1 byte TX/RX address alignment, we can do the "other" hack: offset the RX address of the mbuf so the L3 payload again is hopefully DWORD aligned. This is much cheaper - since TX/RX is both 1 byte align ready (thanks to the previous commit) there's no bounce buffering going on and there is no rx fixup copying. This gets bridging performance up from 180mbit/sec -> 410mbit/sec. There's around 10% of CPU cycles spent in _bus_dmamap_sync(); I'll investigate that later. Tested: * QCA955x SoC (AP135 reference board), bridging arge0/arge1 by programming the switch to have two vlangroups in dot1q mode: # ifconfig bridge0 inet 192.168.2.20/24 # etherswitchcfg config vlan_mode dot1q # etherswitchcfg vlangroup0 members 0,1,2,3,4 # etherswitchcfg vlangroup1 vlan 2 members 5,6 # etherswitchcfg port5 pvid 2 # etherswitchcfg port6 pvid 2 # ifconfig arge1 up # ifconfig bridge0 addm arge1 Notes: svn path=/head/; revision=289671
* Remove disconnected xditview.Bryan Drewery2015-10-211-34/+0
| | | | Notes: svn path=/head/; revision=289670
* 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-203-4/+8
| | | | | | | | | 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
* AR8327: Fix up the ability to configure the vlangroup configuration for the ↵Adrian Chadd2015-10-201-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | CPU port I messed up when doing the reset_vlans method - setting vid[0] = 1 here was making it 'hidden' from configuration (as it needed ETHERSWITCH_VID_VALID as well) and so there was no way to configure vlangroup0. In per-port VLAN mode, vlangroup0 is for the CPU port (port0). Now, it normally wouldn't really matter - the CPU port thus sees all other ports. However there are two CPU ports on the AR8327 and so port0 (arge0) was seeing all traffic on port6 (arge1). If you thus tried to use arge1/port6 for anything (eg a WAN port) in a bridge group then things would very upset very quickly. Whilst here, add a comment to remind myself that yes, it'd be nice if we could specify a boot-time switch config. Tested: * AP135 reference platform w/ AR8327N switch Notes: svn path=/head/; revision=289665
* Trim spaces at end of line to record the proper commit message forKonstantin Belousov2015-10-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | r289660: Do not allow to execute ptrace(PT_TRACE_ME) when the process is already traced. Do not allow to execute ptrace(PT_TRACE_ME) when there is no parent which can trace the process, i.e. when the parent is already init. Note that after the PT_TRACE_ME request the process is unkillable and non-continuable until a debugger is attached, or parent is killed, the later clears P_TRACED state. Since init clearly would not debug the caller, and cannot be killed, disallow creation of unkillable processes. Reviewed by: jhb, pho Reported and tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Differential revision: https://reviews.freebsd.org/D3908 Notes: svn path=/head/; revision=289664
* 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
* Handle lib32 files during delete-old* when MK_LIB32=no.Julio Merino2015-10-207-15/+83
| | | | | | | | | | | | | | | | | | | | | Extend OptionalObsoleteFiles.inc to delete all lib32 files when MK_LIB32 is set to no on a system that previously had lib32 libraries installed. Also, to prevent "make delete-old-dirs" from always deleting lib32 directories after an installworld, move the lib32 subtree to its own mtree file that only gets applied when MK_LIB32=yes. Test: Ran "make delete-old" and "make delete-old-libs" on a system that never had MK_LIB32 enabled, and on a system where MK_LIB32 was enabled and later disabled. Did this both on amd64 and powerpc64. Test: Ran "make tinderbox" without errors. Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D3923 Notes: svn path=/head/; revision=289662