aboutsummaryrefslogtreecommitdiff
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* * Bump version numbers to 10.0.0Dimitry Andric2020-01-251-250/+267
| | | | | | | | | | | * Update UPDATING * Update (Optional)ObsoleteFiles.inc * Update VCS(Revision|Version) files * Update generated config headers * Update clang internal headers Makefile Notes: svn path=/projects/clang1000-import/; revision=357120
* When MK_CASPER=no is set remove files which are not needed to run system.Mariusz Zaborski2020-01-201-0/+9
| | | | | | | PR: 242971 Notes: svn path=/head/; revision=356928
* Even when the MK_CASPER is set to "no" we still want to install man pagesMariusz Zaborski2020-01-201-13/+0
| | | | | | | | | | | | and the headers. If the user decides to install the system without Casper support, then the Casper functions are mocked, but they still exist in the system. PR: 242971 MFC after: 2 weeks Notes: svn path=/head/; revision=356926
* Those files are already removed in ObsoleteFiles.\Mariusz Zaborski2020-01-201-39/+0
| | | | | | | | | | There is no need to remove them twice. PR: 242971 MFC after: 2 weeks Notes: svn path=/head/; revision=356925
* remove unused WITHOUT_PC_SYSINSTALL descriptionEd Maste2020-01-201-4/+0
| | | | | | | | | | pc-sysinstall was moved from the base system to ports in r351781. Submitted by: driesm.michiels gmail com Differential Revision: https://reviews.freebsd.org/D21647 Notes: svn path=/head/; revision=356916
* remove caution notes from WITHOUT_BINUTILS* descriptionsEd Maste2020-01-192-5/+0
| | | | | | | | | | | | WITHOUT_BINUTILS and WITHOUT_BINUTILS_BOOTSTRAP previously included claims about being unable to build if set. Those cautions are no longer universally true, and most FreeBSD targets can function more or less without enabling GNU Binutils. Just remove the cautions. Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=356890
* limit building GNU assembler (as) to x86Ed Maste2020-01-192-6/+6
| | | | | | | | | | | | | GNU as 2.17.50 is currently required by amd64 and i386 for at least one file that cannot be assembled by Clang's integrated assembler (IAS). Other supported CPU architectures either use Clang IAS for all assembly files, or rely on external toolchain. Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D23180 Notes: svn path=/head/; revision=356889
* Update WITHOUT_BINUTILS* descriptionsEd Maste2020-01-152-5/+4
| | | | | | | | | In the WITHOUT_ descriptions we don't need to mention that ld.bfd is limited to powerpc. When WITHOUT_BINUTILS is specified ld.bfd is not installed on any CPU architecture. Notes: svn path=/head/; revision=356759
* limit ld.bfd to powerpcEd Maste2020-01-144-4/+4
| | | | | | | | | | | | All archs except powerpc either use lld or require external toolchain. powerpc still needs binutils ld to link 32-bit binaries. Reviewed by: jhibbits Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D23107 Notes: svn path=/head/; revision=356736
* Update WITH_/WITHOUT_CLANG_IS_CC descriptionsEd Maste2020-01-142-2/+5
| | | | | | | | | | | | Describe /usr/bin/cc etc. as links to the compiler, and don't conflate WITHOUT_CLANG_IS_CC with installing GCC. Leave a reference to WITH_GCC and WITHOUT_CLANG_IS_CC installing links to GCC, although this will be removed in ~1.5 months when GCC 4.2.1 is removed from the tree. Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=356733
* Update WITH_AMD description reflecting upcoming removalEd Maste2020-01-141-3/+6
| | | | | | | | | | In-tree amd(8) is deprecated; update WITH_AMD's description to make this more clear. Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=356732
* Makefile.inc1: push /usr/libexec into the BPATH/TMPPATHKyle Evans2020-01-121-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | ${WORLDTMP}/legacy/usr/libexec will only have libexec/ bits that we've pushed as bootstrap tools, so this is generally safe to include prior to PATH. The following are the ramifications of this change: - BPATH addition gets us at least bootstrap flua in WMAKEENV path for buildenv, for those earlier systems where it's bootstrapped still - Reworked the sysent target to just set PATH and let it get worked out in src.lua.mk or individual sysent makefiles -- this gives us back the ability to overwrite LUA_CMD and use a different/external lua for these targets. sysent can also now work cleanly in buildenv. - tools/build/Makefile will now symlink the host flua into build's host tools so that the above can work without needing to add the host's /usr/libexec explicitly into TMPPATH. Reviewed by: arichardson, brooks, imp (all slightly earlier version) Differential Revision: https://reviews.freebsd.org/D22464 Notes: svn path=/head/; revision=356650
* Various cleanups to cryptocheck.John Baldwin2020-01-071-450/+344
| | | | | | | | | | | | | | | | | | | | | - Rename 'blkcipher' to 'cipher'. Some of the ciphers being tested are stream ciphers. - Rename 'authenc' to 'eta' as it is only testing ETA chained operations and not other combination modes. - Add a notion of an OCF session and some helper routines to try to reduce duplicated code. This also uses a single session for both encrypt and decrypt operations during a single test. - Add tests to ensure that AEAD algorithms fail decryption with EBADMSG when given a corrupted tag. - Remove the transitional hack for COP_F_CIPHER_FIRST. - Update block comment to mention plain hashes. Reviewed by: cem Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D22940 Notes: svn path=/head/; revision=356457
* Adjust WITH_/WITHOUT_ descriptions for GCC options after r356367Ed Maste2020-01-055-5/+6
| | | | | | | | | | The options default to NO on all archs now, and will be removed before FreeBSD 13. Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=356368
* Provide libssp based on libcKyle Evans2020-01-041-35/+0
| | | | | | | | | | | | | | | | | | | | | | For libssp.so, rebuild stack_protector.c with FORTIFY_SOURCE stubs that just abort built into it. For libssp_nonshared.a, steal stack_protector_compat.c from ^/lib/libc/secure and massage it to maintain that __stack_chk_fail_local is a hidden symbol. libssp is now built unconditionally regardless of {WITH,WITHOUT}_SSP in the build environment, and the gcclibs version has been disconnected from the build in favor of this one. PR: 242950 (exp-run) Reviewed by: kib, emaste, pfg, Oliver Pinter (earlier version) Also discussed with: kan MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D22943 Notes: svn path=/head/; revision=356356
* Change reference in HTTPD descriptions to 'simple_httpd'Kyle Evans2019-12-292-2/+2
| | | | | | | | | | | This should help people examining src.conf(5) draw the connection between the HTTPD knobs and the particular implementation we're installing, simple_httpd. Reported by: saken658 via GitHub Notes: svn path=/head/; revision=356164
* Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmpDimitry Andric2019-12-221-251/+250
| | | | | | | | | | | | | | | | | | 9.0.1 final release c1a0a213378a458fbea1a5c77b315c7dce08fd05. Release notes for llvm, clang, lld and libc++ 9.0.1 will become available here: https://releases.llvm.org/9.0.1/docs/ReleaseNotes.html https://releases.llvm.org/9.0.1/tools/clang/docs/ReleaseNotes.html https://releases.llvm.org/9.0.1/tools/lld/docs/ReleaseNotes.html https://releases.llvm.org/9.0.1/projects/libcxx/docs/ReleaseNotes.html PR: 240629 MFC after: 1 month Notes: svn path=/head/; revision=356004
* Regularize my copyright noticeWarner Losh2019-12-0422-24/+24
| | | | | | | | | | | | o Remove All Rights Reserved from my notices o imp@FreeBSD.org everywhere o regularize punctiation, eliminate date ranges o Make sure that it's clear that I don't claim All Rights reserved by listing All Rights Reserved on same line as other copyright holders (but not me). Other such holders are also listed last where it's clear. Notes: svn path=/head/; revision=355394
* libclang_rt: enable on powerpc*Dimitry Andric2019-11-231-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | Summary: Enable on powerpc64 and in lib/libclang_rt/Makefile change MACHINE_CPUARCH to MACHINE_ARCH because on powerpc64 MACHINE_ARCH==MACHINE_CPUARCH so the 32-bit library overwrites 64-bit library during installworld. This patch doesn't enable any other libclang_rt libraries because they need to be separately ported. I have verified that games/julius (which fails on powerpc64 elfv2 without this change because of no libclang_rt profiling library) builds. Test Plan: Ship it, test on powerpc and powerpcspe Submitted by: pkubaj Reviewed by: dim, jhibbits Differential Revision: https://reviews.freebsd.org/D22425 MFC after: 1 month X-MFC-With: r353358 Notes: svn path=/head/; revision=355034
* Add description for WITH_AMDEd Maste2019-11-201-0/+4
| | | | | | | | | WITHOUT_AMD is now the default as of r354902. Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=354903
* Convert in-tree sysent targets to use new makesyscalls.luaKyle Evans2019-11-181-0/+1
| | | | | | | | | | | | flua is bootstrapped as part of the build for those on older versions/revisions that don't yet have flua installed. Once upgraded past r354833, "make sysent" will again naturally work as expected. Reviewed by: brooks Differential Revision: https://reviews.freebsd.org/D21894 Notes: svn path=/head/; revision=354835
* Update controlelf(1) to ahndle stack gap disable flag.Konstantin Belousov2019-11-171-1/+3
| | | | | | | | | | Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D22379 Notes: svn path=/head/; revision=354791
* If /usr/obj is a symlink, cpio(1) needs persuation to DTRT.Poul-Henning Kamp2019-11-021-4/+7
| | | | Notes: svn path=/head/; revision=354251
* Mention that ports/net-mgmt/libsmi is requiredPoul-Henning Kamp2019-11-021-0/+2
| | | | Notes: svn path=/head/; revision=354250
* add valectl to the system commandsVincenzo Maffione2019-10-315-453/+3
| | | | | | | | | | | | | | The valectl(4) program is used to manage vale(4) switches. Add it to the system commands so that it can be used right away. This program was previously called vale-ctl, and stored in tools/tools/netmap Reviewed by: hrs, bcr, lwhsu, kevans MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D22146 Notes: svn path=/head/; revision=354229
* Building head on stable/11 requires libzstdSimon J. Gerraty2019-10-281-3/+10
| | | | | | | | | | | | | | | Add lib/libzstd to _elftoolchain_libs tools/build/Makefile needs to create the install dir for libzstd Since this would make the line too long, rework to use a list in one per line format (easier to add in future) and dispense with the .for loop Reviewed by: emaste bapt Differential Revision: https://reviews.freebsd.org/D220134 Notes: svn path=/head/; revision=354138
* Slightly expand description of WITH_SHARED_TOOLCHAIN, add aDimitry Andric2019-10-232-1/+7
| | | | | | | | | | corresponding WITHOUT_SHARED_TOOLCHAIN description, and regenerate src.conf(5). MFC after: 3 days Notes: svn path=/head/; revision=353933
* tools/tools/locale: allow POSIX target to be built in parallelYuri Pankov2019-10-211-21/+17
| | | | | | | | While it's rarely used target, more so a one not used during the buildworld, it helps when it's not taking hours (literally). Notes: svn path=/head/; revision=353791
* netmap: minor misc improvementsVincenzo Maffione2019-10-202-7/+8
| | | | | | | | | | | - use ring->head rather than ring->cur in lb(8) - use strlcat() rather than strncat() - fix bandwidth computation in pkt-gen(8) MFC after: 1 week Notes: svn path=/head/; revision=353775
* Provide a src.conf(5) description for the new WITHOUT_CAROOT option, andDimitry Andric2019-10-185-13/+16
| | | | | | | | | | rename the WITH_LOADER_VERIEXEC_PASS_MANFIEST description to its correct name. Also correct a bunch of spelling errors in that description. MFC after: 3 days Notes: svn path=/head/; revision=353737
* Add missing port to the list of needed tools in the README fileEugene Grosbein2019-10-141-0/+1
| | | | | | | | | describing locale rebuild process: devel/apache-ant Notes: svn path=/head/; revision=353491
* Merge ^/head r352764 through r353315.Dimitry Andric2019-10-0812-13733/+14497
|\ | | | | | | Notes: svn path=/projects/clang900-import/; revision=353316
| * Introduce stats(3), a flexible statistics gathering API.Edward Tomasz Napierala2019-10-072-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This provides a framework to define a template describing a set of "variables of interest" and the intended way for the framework to maintain them (for example the maximum, sum, t-digest, or a combination thereof). Afterwards the user code feeds in the raw data, and the framework maintains these variables inside a user-provided, opaque stats blobs. The framework also provides a way to selectively extract the stats from the blobs. The stats(3) framework can be used in both userspace and the kernel. See the stats(3) manual page for details. This will be used by the upcoming TCP statistics gathering code, https://reviews.freebsd.org/D20655. The stats(3) framework is disabled by default for now, except in the NOTES kernel (for QA); it is expected to be enabled in amd64 GENERIC after a cool down period. Reviewed by: sef (earlier version) Obtained from: Netflix Relnotes: yes Sponsored by: Klara Inc, Netflix Differential Revision: https://reviews.freebsd.org/D20477 Notes: svn path=/head/; revision=353283
| * Mark "private use area" characters as printable.Yuri Pankov2019-10-051-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | At least some of the characters in E000-F8FF range are used by Powerline fonts, and having no attributes for these ranges in UnicodeData.txt other than "Other, Private Use" it should be safe to mark all of them as printable. Some actually were before r340491, so this fixes the regression introduced there as well. PR: 240911 Reviewed by: bapt Tested by: Daniel Ponte <amigan@gmail.com> Differential Revision: https://reviews.freebsd.org/D21850 Notes: svn path=/head/; revision=353130
| * Pre-generate Big5 charmap from CLDR data.Yuri Pankov2019-10-052-13708/+13968
| | | | | | | | | | | | | | | | | | | | | | | | | | The one used previously was missing the characters in 0-127 range, making various tools try to escape them in output. PR: 235100 Reviewed by: bapt Tested by: Ting-Wei Lan <lantw44@gmail.com> Differential Revision: https://reviews.freebsd.org/D21794 Notes: svn path=/head/; revision=353127
| * Do not remove the locale directory when building a system without localesBaptiste Daroussin2019-10-041-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | This directory is actually needed during make installworld and will prevent to reinstall a system after make delete-old is done. PR: 226137 Reported by: rakuco MFC after: 3 days Notes: svn path=/head/; revision=353100
| * Move simple_httpd out of picobsd, add HTTPD option (default OFF)Kyle Evans2019-10-012-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | picobsd/tinyware has had this compact HTTPD server for a long time, and some people do use it. Move it out into usr.sbin well in advance of any action being taken on picobsd. This has been gated behind an HTTPD option defaulted to *off*, primarily for two reasons: 1.) This code likely needs a good audit, as it's been living off in picobsd land for a long time, and 2.) We don't currently ship an httpd and this may not be a welcome surprise. Reviewed by: eugen Differential Revision: https://reviews.freebsd.org/D21724 Notes: svn path=/head/; revision=352927
| * Use set -o xtrace in preference to set -x for consistency withWarner Losh2019-09-271-4/+4
| | | | | | | | | | | | | | the rest of nanobsd.sh. Notes: svn path=/head/; revision=352822
| * Push and pop xtrace correctly for run_early_customizeWarner Losh2019-09-271-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | run_early_customize is run as a shell list, not as a subshell, so that the side effects of setting variables can affect later stages of the build (for better or worse, it's been like this since it was introduced). It therefore has the side effect of turning off xtrace always, which limits the usefulness of sh -x nanobsd.sh. Remember the old setting and only turn off tracing after the command if tracing was off before. All the other places where we do similar things we use a subshell, so we don't need to do this. Notes: svn path=/head/; revision=352821
| * Remove workaround for building on FreeBSD hosts prior to FreeBSD 10.Warner Losh2019-09-271-20/+10
| | | | | | | | | | | | | | | | | | | | | | rm -x was introduced in the FreeBSD 10 time frame. 4 years ago I added a function to cope with building nanobsd images on hosts as old FreeBSD 7 that lacked rm -x. The workaround is no longer needed as FreeBSD 9 hasn't been supported for almost 3 years. Eliminate the wrapper and use rm -x directly again. Notes: svn path=/head/; revision=352820
| * controlelf: update man pageEd Maste2019-09-271-13/+15
| | | | | | | | | | | | | | Some minor corrections, clarifications or rewording. Notes: svn path=/head/; revision=352815
| * controlelf: exit with error if file endianness does not match hostEd Maste2019-09-271-0/+16
| | | | | | | | | | | | | | | | We need to add support for cross-endian operation, but until that's done just exit with an error rather than misbehaving. Notes: svn path=/head/; revision=352809
| * controlelf: simplify feature string parsingEd Maste2019-09-271-24/+21
| | | | | | | | | | | | | | Also add error handling on failure to seek/write updated value. Notes: svn path=/head/; revision=352808
| * controlelf: tidy up option parsingEd Maste2019-09-271-10/+8
| | | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=352806
| * controlelf: add protmax controlEd Maste2019-09-271-0/+1
| | | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=352805
| * controlelf: some style(9) cleanupEd Maste2019-09-271-17/+21
| | | | | | | | | | | | | | Submitted by: clang-format Notes: svn path=/head/; revision=352803
| * controlelf: install standard BSD 2 clause licenseEd Maste2019-09-271-14/+14
| | | | | | | | | | | | | | | | Reported by: kaktus Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=352801
| * controlelf: clean up warningsEd Maste2019-09-271-9/+9
| | | | | | | | | | | | | | | | | | | | | | - use explicit ELF note name when not found - no trailing . on warnings - no \n Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=352799
| * Add tool to modify ELF binary feature control bitsEd Maste2019-09-273-0/+480
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will allow feature control bits (e.g. for ASLR, PROT_MAX) to be inspected or modified. Some clean-up and additional work is likely still required, but we can iterate on this in the tree. Submitted by: Bora Özarslan <borako.ozarslan@gmail.com> Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D19290 Notes: svn path=/head/; revision=352797
* | Merge ^/head r352587 through r352763.Dimitry Andric2019-09-261-12/+13
|\| | | | | | | Notes: svn path=/projects/clang900-import/; revision=352764