aboutsummaryrefslogtreecommitdiff
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
...
* mc146818(4): remove obsolete driverMarius Strobl2020-12-251-21/+0
| | | | | It's no longer used since 58aa35d42975c298ca0adba705c042596303c9f5 and r357455 respectively.
* make the git commit message template more compactEd Maste2020-12-231-27/+17
| | | | | | | | | | | | git's default commit message includes the list of staged, unstaged, and untracked files; adding our metadata tags and then their descriptions made for a very long template. Move the descriptions to the metadata lines themselves. Reviewed by: bcr Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D27664
* tools/tools/locale: skip control character widthsYuri Pankov2020-12-232-65/+4
| | | | | | | | Do not explicitly encode control characters widths as 0 allowing wcwidth() to return the proper implicit value for non-printable characters (-1). Reported by: naddy
* tools/tools/locale: fix static-colldefYuri Pankov2020-12-181-2/+1
| | | | Notes: svn path=/head/; revision=368754
* tools/tools/locale: install generated files in current src checkoutYuri Pankov2020-12-181-1/+1
| | | | Notes: svn path=/head/; revision=368750
* Describe the commit message template our git hook script producesEd Maste2020-12-171-1/+10
| | | | | | | Reported by: rpokala Notes: svn path=/head/; revision=368740
* chmod +x the git commit message prep hookEd Maste2020-12-171-0/+0
| | | | Notes: svn path=/head/; revision=368737
* Add initial version of git commit message preparation hookEd Maste2020-12-171-0/+55
| | | | | | | | | | | | | | | | | Start with a slightly modified version of the SVN commit template, to allow developers to experiment. This will be updated in the future as our process and techniques evolve. This can be installed by copying or symlinking into the .git/hooks/ directory. Feedback from: cem, jhb Reviewed by: imp Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D27633 Notes: svn path=/head/; revision=368736
* lualoader: fix lua-lint runKyle Evans2020-12-171-1/+2
| | | | | | | | | | | luacheck rightfully complains that i is unused in the show-module-options loop at the end (it was used for some debugging in the process). We've added a new pager module that's compiled in, so declare that as an acceptable global. Notes: svn path=/head/; revision=368729
* Remove Doxyfiles for removed driversBrooks Davis2020-12-1525-525/+0
| | | | | | | Reported by: emaste Notes: svn path=/head/; revision=368670
* Retire obsolete GDB 6.1.1Ed Maste2020-12-151-5/+0
| | | | | | | | | | | | | | | | | | | | | GDB 6.1.1 was released in June 2004 and is long obsolete. It does not support all of the architectures that FreeBSD does, and imposes limitations on the FreeBSD kernel build, such as the continued use of DWARF2 debugging information. It was kept (in /usr/libexec/) only for use by crashinfo(8), which extracts some basic information from a kernel core dump after a crash. Crashinfo already prefers gdb from port/package if installed. Future work may add kernel debug support to LLDB or find another path for crashinfo's needs, but in any case we do not want to ship the excessively outdated GDB in FreeBSD 13. Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D27610 Notes: svn path=/head/; revision=368667
* Remove more cx,ctau leftoversEd Maste2020-12-152-42/+0
| | | | | | | Missed in r359178 Notes: svn path=/head/; revision=368652
* locale: fix mode for installed files to be 644, not 755Yuri Pankov2020-12-121-1/+1
| | | | | | | | While here, drop '-c' flag to install as it's default and provided for backward compatibility only. Notes: svn path=/head/; revision=368598
* Provide userland notification of gpio pin changes ("userland gpio interrupts").Ian Lepore2020-12-123-0/+655
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is an import of the Google Summer of Code 2018 project completed by Christian Kramer (and, sadly, ignored by us for two years now). The goals stated for that project were: FreeBSD already has support for interrupts implemented in the GPIO controller drivers of several SoCs, but there are no interfaces to take advantage of them out of user space yet. The goal of this work is to implement such an interface by providing descriptors which integrate with the common I/O system calls and multiplexing mechanisms. The initial imported code supports the following functionality: - A kernel driver that provides an interface to the user space; the existing gpioc(4) driver was enhanced with this functionality. - Implement support for the most common I/O system calls / multiplexing mechanisms: - read() Places the pin number on which the interrupt occurred in the buffer. Blocking and non-blocking behaviour supported. - poll()/select() - kqueue() - signal driven I/O. Posting SIGIO when the O_ASYNC was set. - Many-to-many relationship between pins and file descriptors. - A file descriptor can monitor several GPIO pins. - A GPIO pin can be monitored by multiple file descriptors. - Integration with gpioctl and libgpio. I added some fixes (mostly to locking) and feature enhancements on top of the original gsoc code. The feature ehancements allow the user to choose between detailed and summary event reporting. Detailed reporting provides a record describing each pin change event. Summary reporting provides the time of the first and last change of each pin, and a count of how many times it changed state since the last read(2) call. Another enhancement allows the recording of multiple state change events on multiple pins between each call to read(2) (the original code would track only a single event at a time). The phabricator review for these changes timed out without approval, but I cite it below anyway, because the review contains a series of diffs that show how I evolved the code from its original state in Christian's github repo for the gsoc project to what is being commited here. (In effect, the phab review extends the VC history back to the original code.) Submitted by: Christian Kramer Obtained from: https://github.com/ckraemer/freebsd/tree/gsoc2018 Differential Revision: https://reviews.freebsd.org/D27398 Notes: svn path=/head/; revision=368585
* riscv: allow building virtual machine imagesMitchell Horne2020-12-081-0/+1
| | | | | | | | | | | | RISC-V has the same booting requirements as arm64 (loader.efi, no legacy boot options), so generated images for both architectures have the same partition layout. Reviewed by: gjb Differential Revision: https://reviews.freebsd.org/D27044 Notes: svn path=/head/; revision=368422
* Fix the source directory when installing the results. The installHiroki Sato2020-12-071-0/+1
| | | | | | | | | target did not install them actually. Spotted by: Thomas Munro, bapt, yuripv Notes: svn path=/head/; revision=368404
* update wcwidth data from utf8procYuri Pankov2020-12-065-395/+71814
| | | | | | | | | | | | | | | | | | | Character width data being out of date is a constant source of weird rendering issues and wasted time trying to diagnose those, e.g. as reported by Jeremy Chadwick: https://gitlab.com/muttmua/mutt/-/issues/67 Sadly, there is no real ("standard") wcwidth data source, so this tries to rectify the problem using the utf8proc one (through its C API) which would hopefully benefeat both FreeBSD and utf8proc through bug reports (if any). Reviewed by: bapt Differential Revision: https://reviews.freebsd.org/D27259 Notes: svn path=/head/; revision=368390
* Retire GNU_GREP_COMPAT knobKyle Evans2020-12-052-7/+0
| | | | | | | | | | | | | This was introduced and then disabled by default primarily to avoid dealing with bugs in libgnuregex. rS363823 switched to using libregex for it, so let's just rip the option out now so we can make sure we're getting tested with libregex via bsdgrep. Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D27476 Notes: svn path=/head/; revision=368355
* make.py: Also pass STRIPBINAlex Richardson2020-12-041-0/+3
| | | | | | | | | This is required for cross-building to allow stripping the installed binaries. Submitted By: Henry Vogt <hv@tue.mpg.de> Notes: svn path=/head/; revision=368338
* Fix compilation on head and while here:Olivier Cochard2020-11-302-22/+11
| | | | | | | | | | | | | | - remove unwanted whitespaces - remove useless function ifphys() - fix the Makefile to install it into /usr/bin PR: 250133 Reviewed by: glebius, maxim Approved by: glebius Differential Revision: https://reviews.freebsd.org/D27155 Notes: svn path=/head/; revision=368188
* ping: add a ping6 hard link for backwards compatibilityAlan Somers2020-11-261-0/+2
| | | | | | | | | | | | When invoked as "ping6", ping will now attempt to use ICMPv6 for hostnames that resolve both IPv4 and IPv6 addresses. Reviewed by: bz, manu MFC-With: r368045 Differential Revision: https://reviews.freebsd.org/D27384 Notes: svn path=/head/; revision=368078
* GH Actions: Use pre-installed clang packagesUlrich Spörlein2020-11-261-2/+6
| | | | | | | | | | | | | | | | Also fix the run by setting up the environment in non-deprecated way. Always run with --debug to understand better what sort of stuff is happening in the background. Also split out the bmake bootstrap stage (takes about 31s on ubuntu, but 1m14 on macOS?) Drops the dependency on coreutils (realpath, nproc) and thus (?) fixes macOS to be just as fast (4 logical cores vs 2 physical cores before, go figure.) Reviewed by: arichardson Notes: svn path=/head/; revision=368056
* Merge ping6 to pingAlan Somers2020-11-261-3/+0
| | | | | | | | | | | | | There is now a single ping binary, which chooses to use ICMP or ICMPv4 based on the -4 and -6 options, and the format of the address. Submitted by: Ján Sučan <sucanjan@gmail.com> Sponsored by: Google LLC (Google Summer of Code 2019) MFC after: Never Differential Revision: https://reviews.freebsd.org/D21377 Notes: svn path=/head/; revision=368045
* Remove uses of CRIOGET in OCF tests after r368005.John Baldwin2020-11-252-18/+3
| | | | | | | | | Pointy hat to: jhb Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D27367 Notes: svn path=/head/; revision=368008
* Remove the cloned file descriptors for /dev/crypto.John Baldwin2020-11-251-17/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | Crypto file descriptors were added in the original OCF import as a way to provide per-open data (specifically the list of symmetric sessions). However, this gives a bit of a confusing API where one has to open /dev/crypto and then invoke an ioctl to obtain a second file descriptor. This also does not match the API used with /dev/crypto on other BSDs or with Linux's /dev/crypto driver. Character devices have gained support for per-open data via cdevpriv since OCF was imported, so use cdevpriv to simplify the userland API by permitting ioctls directly on /dev/crypto descriptors. To provide backwards compatibility, CRIOGET now opens another /dev/crypto descriptor via kern_openat() rather than dup'ing the existing file descriptor. This preserves prior semantics in case CRIOGET is invoked multiple times on a single file descriptor. Reviewed by: markj Relnotes: yes Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D27302 Notes: svn path=/head/; revision=368005
* netmap: bridge: improve readabilityVincenzo Maffione2020-11-221-42/+74
| | | | | | | | | | Multiple cosmetic changes, plus a fix to a verbose print (indicating wrong net->host/host->net direction). MFC after: 3 days Notes: svn path=/head/; revision=367936
* netmap: nmreplay: switch to libnetmapVincenzo Maffione2020-11-221-31/+24
| | | | | | | | | | Use the newer libnetmap (included in base) rather than the older nm_open()/nm_close() defined in netmap_user.h MFC after: 3 days Notes: svn path=/head/; revision=367934
* netmap: lb: switch to libnetmapVincenzo Maffione2020-11-222-55/+123
| | | | | | | | | | Use the newer libnetmap (included in base) rather than the older nm_open()/nm_close() defined in netmap_user.h MFC after: 3 days Notes: svn path=/head/; revision=367933
* netmap: pkt-gen: switch to libnetmapVincenzo Maffione2020-11-221-95/+120
| | | | | | | | Use the newer libnetmap (included in base) rather than the older nm_open()/nm_close() defined in netmap_user.h Notes: svn path=/head/; revision=367932
* netmap: bridge: switch to libnetmapVincenzo Maffione2020-11-222-19/+22
| | | | | | | | Use the newer libnetmap (included in base) rather than the older nm_open()/nm_close() defined in netmap_user.h Notes: svn path=/head/; revision=367931
* netmap: bridge, pkt-gen: fix man page typoVincenzo Maffione2020-11-212-3/+3
| | | | | | | | Reported by: ian MFC after: 3 days Notes: svn path=/head/; revision=367921
* netmap: bridge: update man page with more informationVincenzo Maffione2020-11-211-3/+17
| | | | | | | | Update the man page to describe how it is necessary to enable promiscuous mode and/or disable offloads. Notes: svn path=/head/; revision=367920
* Revert "When building on Ubuntu bootstrap bmake with bash as the default shell"Alex Richardson2020-11-161-8/+0
| | | | | | | | This reverts r365950 since the latest bmake update includes fixes for the test failures that prompted the change. Notes: svn path=/head/; revision=367720
* Ensure make delete-old does not unlink the llvm-cxxfilt and its manpage,Dimitry Andric2020-11-151-2/+5
| | | | | | | | | | | after r367304 and r367324, when WITH_LLVM_CXXFILT is enabled. Noticed by: "Herbert J. Skuhra" <herbert@gojira.at> MFC after: 3 days X-MFC-With: r367304 Notes: svn path=/head/; revision=367712
* Support initializing stack variables on function entryBrooks Davis2020-11-102-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | There are two options: - WITH_INIT_ALL_ZERO: Zero all variables on the stack. - WITH_INIT_ALL_PATTERN: Initialize variables with well-defined patterns. The exact pattern are a compiler implementation detail and vary by type. They are somewhat documented in the LLVM commit message: https://reviews.llvm.org/rL349442 I've used WITH_INIT_ALL_* to match Microsoft's InitAll feature rather than naming them after the LLVM specific compiler flags. In a range of consumer products, options like these are used in both debug and production builds with debugs builds using patterns (intended to provoke crashes on use of uninitialized values) and production using zeros (deemed more likely to lead to harmless misbehavior or NULL-pointer dereferences). Reviewed by: emaste Obtained from: CheriBSD Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D27131 Notes: svn path=/head/; revision=367577
* Add collation version support to querylocale(3).Thomas Munro2020-11-082-0/+21
| | | | | | | | | | | | | | | | | | | | | | | Provide a way to ask for an opaque version string for a locale_t, so that potential changes in sort order can be detected. Similar to ICU's ucol_getVersion() and Windows' GetNLSVersionEx(), this API is intended to allow databases to detect when text order-based indexes might need to be rebuilt. The CLDR version is extracted from CLDR source data by the Makefile under tools/tools/locale, written into the machine-generated Makefile under shared/colldef, passed to localedef -V, and then written into LC_COLLATE file headers. The initial version is 34.0. tools/tools/locale was recently updated to pull down 35.0, but the output hasn't been committed under share/colldef yet, so that will provide the first observable change when it happens. Other versioning schemes are possible in future, because the format is unspecified. Reviewed by: bapt, 0mp, kib, yuripv (albeit a long time ago) Differential Revision: https://reviews.freebsd.org/D17166 Notes: svn path=/head/; revision=367476
* Remove unnecessary __DECONST().John Baldwin2020-11-031-19/+19
| | | | | | | | | Reviewed by: markj Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D27063 Notes: svn path=/head/; revision=367311
* Add WITH_LLVM_CXXFILT option to install llvm-cxxfilt as c++filtDimitry Andric2020-11-032-0/+4
| | | | | | | | | | | | | | | | | | | | | Since elftoolchain's cxxfilt is rather far behind on features, and we ran into several bugs, add an option to use llvm-cxxfilt as an drop-in replacement. It supports the same options as elftoolchain cxxfilt, though it doesn't have support for old ARM (C++ Annotated Reference Manual, not the CPU) and GNU v2 manglings. But these are irrelevant in 2020. Note: as we already compile the required libraries as part of libllvm, this will not add any significant build time either. PR: 250702 Reviewed by: emaste, yuri Differential Revision: https://reviews.freebsd.org/D27071 MFC after: 2 weeks Notes: svn path=/head/; revision=367304
* beinstall.sh: Use bectl instead of beadm by defaultMateusz Piotrowski2020-10-301-8/+13
| | | | | | | | | | | | | | | | This patch also introduces an environment variable BE_UTILITY, which can be used to specify the utility to use for managing ZFS boot environments (which can be either bectl or beadm). While here, fix some typos in the manual page and remove beadm from section "SEE ALSO". Reviewed by: bcr, kevans, rpokala Approved by: will Differential Revision: https://reviews.freebsd.org/D21111 Notes: svn path=/head/; revision=367159
* Drop "All rights reserved" from all my stuff. This includesEdward Tomasz Napierala2020-10-282-2/+0
| | | | | | | | | | | | Foundation copyrights, approved by emaste@. It does not include files which carry other people's copyrights; if you're one of those people, feel free to make similar change. Reviewed by: emaste, imp, gbe (manpages) Differential Revision: https://reviews.freebsd.org/D26980 Notes: svn path=/head/; revision=367105
* Replace literal uses of /usr/local in C sources with _PATH_LOCALBASEStefan Eßer2020-10-272-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | Literal references to /usr/local exist in a large number of files in the FreeBSD base system. Many are in contributed software, in configuration files, or in the documentation, but 19 uses have been identified in C source files or headers outside the contrib and sys/contrib directories. This commit makes it possible to set _PATH_LOCALBASE in paths.h to use a different prefix for locally installed software. In order to avoid changes to openssh source files, LOCALBASE is passed to the build via Makefiles under src/secure. While _PATH_LOCALBASE could have been used here, there is precedent in the construction of the path used to a xauth program which depends on the LOCALBASE value passed on the compiler command line to select a non-default directory. This could be changed in a later commit to make the openssh build consistently use _PATH_LOCALBASE. It is considered out-of-scope for this commit. Reviewed by: imp MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D26942 Notes: svn path=/head/; revision=367075
* Mount devfs inside a beinstall(8) chrootMateusz Piotrowski2020-10-271-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It turns out that without /dev/null beinstall is not able to complete and instead exits with messages similar to these: -------------------------------------------------------------- >>> Installing kernel GENERIC completed on Sun Oct 25 17:47:37 CET 2020 -------------------------------------------------------------- /tmp/beinstall.JleGoP/mnt: Inspecting dirs /usr/src /usr/obj/usr/src/amd64.amd64 --- installworld --- make[1]: "/usr/obj/usr/src/amd64.amd64/toolchain-metadata.mk" line 1: Using cached toolchain metadata from build at t480 on Sun Oct 25 15:53:28 CET 2020 make[2]: "/dev/null" line 2: Need an operator make[2]: Fatal errors encountered -- cannot continuemake[1]: "/usr/src/Makefile.inc1" line 593: CPUTYPE global should be set with ?=. Cleaning up ... umount -f /tmp/beinstall.JleGoP/mnt/usr/src /tmp/beinstall.JleGoP/mnt/usr/obj/usr/src/amd64.amd64 /tmp/beinstall.JleGoP/mnt Destroyed successfully error: Installworld failed! Upon a bit of debugging, it turns out that /dev/null inside the chroot environment is full random bytes, which cause "make -f /dev/null" to misbehave. Mounting a proper devfs inside the chroot seems to be the most appropriate way to fix it. will@ also noted that this change requires that whatever is needed in devfs must exist in the old kernel. Approved by: will MFC after: 2 week Differential Revision: https://reviews.freebsd.org/D26944 Notes: svn path=/head/; revision=367072
* libbe(3): install MLINKS for all of the functions providedKyle Evans2020-10-181-0/+35
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=366821
* Fix more -Wundef warnings during bootstrapAlex Richardson2020-10-142-7/+2
| | | | Notes: svn path=/head/; revision=366699
* Fix various warnings with higher WARNS.John Baldwin2020-10-131-59/+58
| | | | | | | | | - Rename global 'crid' to 'requested_crid' to avoid shadowing. - Remove some unused function arguments. - Use __DECONST(). Notes: svn path=/head/; revision=366687
* [ath] Set WARNS to 0 here for nowAdrian Chadd2020-10-131-0/+2
| | | | | | | | | | There are still more warnings to fix here, but gcc on mips treats a lot of these as failures. So stop it stopping me for now whilst I fix them. Notes: svn path=/head/; revision=366680
* [athdebug] Fix warnings generated by gcc on mipsAdrian Chadd2020-10-131-3/+6
| | | | | | | | | | * commented out currently unused/dead code; need to see what it was once used for * remove unused variable * fix typing Notes: svn path=/head/; revision=366679
* Fix a few mandoc issuesGordon Bergling2020-10-092-31/+34
| | | | | | | | | | | | - whitespace at end of input line - skipping paragraph macro: Pp at the end of Sh - new sentence, new line - consider using OS macro: Fx - AUTHORS section without An macro - skipping paragraph macro: Pp before Ss Notes: svn path=/head/; revision=366575
* Get tools/tools/cxgbtool to build with the latest clang.Navdeep Parhar2020-10-051-0/+1
| | | | | | | Reported by: olivier@ Notes: svn path=/head/; revision=366440
* netmap: tools: extend CFLAGS after including bsd.prog.mkVincenzo Maffione2020-10-031-5/+3
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=366394