aboutsummaryrefslogtreecommitdiff
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* Fix bootstrap tools build on macOS after ↵Alex Richardson2021-02-171-2/+5
| | | | | | | | | | | 02af91c52e71e8a0f47251e637c9687f35d45dd9 After changing the namespace.h header we need to provide _err on macOS, too. Previously we used the system libc err*/warn*, but that does not provide _err/_warn (which is used by other bootstrapped files from libc). To fix this problem bootstrap err.c on macOS as well. Fixes: 02af91c52 (Fix crossbuild bootstrap tools build with Clang 12)
* Fix crossbuild bootstrap tools build with Clang 12Alex Richardson2021-02-172-2/+7
| | | | | | Clang 12 no longer allows re-defining a weak symbol as non-weak. This happed here because we compile err.c with _err defined to err. To fix this, use the same approach as the libc namespace.h
* tools/build/make.py: drop workaround for cc --version not being parsedAlex Richardson2021-02-131-9/+2
| | | | | | | | | | Previously bsd.compiler.mk was not able to detect the compiler type for Ubuntu's /usr/bin/cc unless we were invoking the /usr/bin/gcc symlink. This problem has been fixed by 9c6954329a9285547881ddd60e393b7c55ed30c4 so we can drop the workaround from make.py. Reviewed By: jrtc27 Differential Revision: https://reviews.freebsd.org/D28323
* build: turn off FMTREE by default to prepare for removalKyle Evans2021-02-131-0/+5
| | | | | | | | | | | | | | nmtree is derived from fmtree, and has been the default mtree(8) since 6adfbbbf161, a little over a year after its introduction. fmtree has not seen any substantial work since then, except for build fixes and runtime issues that were diagnosed in nmtree and backported because this was still in the tree. Turn it off by default. Reviewed by: bdrewery, brooks, cy, emaste Differential Revision: https://reviews.freebsd.org/D28573
* git-arc(1): Fix nits pointed out in final reviewDaniel Ebdrup Jensen2021-02-121-2/+2
| | | | Pointy hat to: me
* git-arc(1): Add manual pageDaniel Ebdrup Jensen2021-02-122-0/+203
| | | | | | | | Add manual page based on the usage in the script with a few changes and hook it up to the build. Reviewed by: 0mp, markj Differential Revision: https://reviews.freebsd.org/D28519
* git-arc: Use a separate message fileMark Johnston2021-02-121-6/+4
| | | | | | | | | Rather than putting revision metadata in .git/arc/create-message, create a tmpfile and use that. Otherwise arc diff always prompts about it and in some cases complains because its standard input is piped. Reported by: imp Differential Revision: https://reviews.freebsd.org/D28614
* prepare-commit-msg: Remove blank characterDaniel Ebdrup Jensen2021-02-081-1/+1
| | | | Approved by: emaste@ (maintainer)
* tools/git: Add git-arcMark Johnston2021-02-052-0/+600
| | | | | | | | | | | | | | | | | | | | | This is a handy script for creating and updating Differential revisions from git commits. It tries to avoid forcing the user to manage their git tree in any particular way, but makes two major assumptions: - there is a one-to-one mapping between git commits and Differential revisions, - the title of a Differential revision is the same as the summary line of the corresponding commit. A verbose description of the script's functionality is provided in its usage message, which should probably be converted to a man page. A description of workflows using git-arc is here: https://lists.freebsd.org/pipermail/freebsd-hackers/2021-January/056979.html There are some loose ends but this is functional enough to be useful. Discussed with: jhb Differential Revision: https://reviews.freebsd.org/D28334
* tools/build/make.py: -DNO_CLEAN -> -DWITHOUT_CLEANAlex Richardson2021-02-031-5/+5
|
* git hooks: add "Tested by" to commit message templateEd Maste2021-02-021-0/+1
| | | | | | Reported by: mjg Reviewed by: imp Sponsored by: The FreeBSD Foundation
* WITH_OFED build option: fixKonstantin Belousov2021-02-022-4/+4
| | | | | | | | | | | | | Userspace has OFED build enabled for quite some time, but kernel modules were not. This is useless config because any userspace IB code requires kernel support. So enable modules build by default. Move WITH_OFED to WITHOUT_OFED since defaults are now enabled. Reviewed by: emaste, hselasky, kevans MFC after: 3 days Sponsored by: NVidia Networking / Mellanox Technologies Differential Revision: https://reviews.freebsd.org/D28460
* Remove the MK_LIBCPLUSPLUS optionAlex Richardson2021-02-013-5/+1
| | | | | | | | This option has been equivalent to any form of C++ support since libstdc++ was removed. Therefore, replace all MK_LIBCPLUSPLUS uses with MK_CXX. Reviewed By: emaste Differential Revision: https://reviews.freebsd.org/D27974
* tools: boot: use four jobs for building standKyle Evans2021-01-311-1/+1
| | | | | | Parallel builds of stand should be assumed both possible and safe as of 7012461c9bf6, so let's start using some jobs to speed up lualoader test harness builds.
* Remove unused GNUCXX option descriptionsEd Maste2021-01-302-6/+0
| | | | | | | Missed from 57f804675e65 Reported by: arhchardson in D27974 Sponsored by: The FreeBSD Foundation
* build: options: mention ports in the WITH_OPENLDAP descriptionKyle Evans2021-01-301-1/+1
| | | | | | | | | | There's a third party dependency on this option; currently, net/openldap24-{,sasl-}client. At least mention that an openldap from ports is needed for this option. PR: 252866 Reported-by: Build Option Survey via Michael Dexter MFC-after: 3 days
* OpenSSL: Support for kernel TLS offload (KTLS)John Baldwin2021-01-282-0/+2
| | | | | | | | | | | | | | | | | | | | This merges upstream patches from OpenSSL's master branch to add KTLS infrastructure for TLS 1.0-1.3 including both RX and TX offload and SSL_sendfile support on both Linux and FreeBSD. Note that TLS 1.3 only supports TX offload. A new WITH/WITHOUT_OPENSSL_KTLS determines if OpenSSL is built with KTLS support. It defaults to enabled on amd64 and disabled on all other architectures. Reviewed by: jkim (earlier version) Approved by: secteam Obtained from: OpenSSL (patches from master) MFC after: 1 week Relnotes: yes Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D28273
* build: remove NDIS optionMarius Strobl2021-01-261-3/+0
| | | | ndis(4) has been removed in bfc99943b04b46a6c1c885ce7bcc6f235b7422aa.
* ndis(4): remove as previous announcedBrooks Davis2021-01-252-29/+0
| | | | | | | | | | | | | | nids(4) was a clever idea in the early 2000's when the market was flooded with 10/100 NICs with Windows-only drivers, but that hasn't been the case for ages and the driver has had no meaningful maintenance in ages. It only supports Windows-XP era drivers. Also remove: - ndis support from wpa_supplicant - ndiscvt(8) Reviewed By: emaste, bcr (manpages) Differential Revision: https://reviews.freebsd.org/D27609
* Create symlinks to host tools on non-FreeBSD hostsAlexander Richardson2021-01-251-4/+14
| | | | | | | | | | | | | | | | This is unnecessary when cross-building from Linux/macOS. Additionally, cp -p appears to be broken on macOS Big Sur (https://openradar.appspot.com/8957219). For some unknown reason this commit appears to fix freezes when building on macOS Big Sur. This also fixes building in docker with volume mounts with ACLs, since setting the ACL with cp -p fails otherwise. Obtained From: CheriBSD Tested By: gnn (macOS Big Sur), Nathaniel Wesley Filardo (docker) Reviewed By: jrtc27, imp Differential Revision: https://reviews.freebsd.org/D28267
* Remove Binutils from src.conf(5) option descriptionsEd Maste2021-01-243-4/+8
| | | | | | | | All binutils remnants have been removed before FreeBSD 13. PR: 252842 MFC after: 3 days Sponsored by: The FreeBSD Foundation
* Fix cross-build support for Ubuntu 16.04Jessica Clarke2021-01-231-1/+9
| | | | | | | | | Older glibc headers did some very nasty things that have since been sanitised. We could also fix this by adding a linux/getopt.h wrapper alongside the existing common/getopt.h that #undef's __need_getopt, but that seems a little more hacky and complicated. Reviewed by: arichardson
* build: remove LIBPTHREAD/LIBTHR build optionsKyle Evans2021-01-223-17/+0
| | | | | | | | | | | | | | | | | | WITHOUT_LIBTHR has been broken for a little over five years now, since the xz 5.2.0 update introduced a hard liblzma dependency on libthr, and building a useful system without threading support is becoming increasingly more difficult. Additionally, in the five plus years that it's been broken more reverse dependencies have cropped up in libzstd, libsqlite3, and libcrypto (among others) that make it more and more difficult to reconcile the effort needed to fix these options. Remove the broken options. PR: 252760 Reviewed by: brooks, emaste, kib Differential Revision: https://reviews.freebsd.org/D28263
* getopt: Fix conversion from string-literal to non-const char *Alex Richardson2021-01-191-0/+1
| | | | | | Define a non-const static char EMSG[] = "" to avoid having to add __DECONST() to all uses of EMSG. Also make current_dash a const char * to fix this warning.
* kerneldoc: remove Doxyfile for cmx(4)Marius Strobl2021-01-161-21/+0
| | | | The latter has been removed in 0d3a424a89c1f61c2a46791c097a06f1d139cd5e.
* Add libclang_rt.profile-powerpc64le.a to (Optional)?ObsoleteFiles.incDimitry Andric2021-01-161-0/+1
| | | | | | | | | On little-endian PowerPC64, this prevented /usr/lib/clang/11.0.0 being cleaned up completely after upgrading to clang 11.0.1. Noticed by: pkubaj MFC after: 4 weeks X-MFC-With: r364284
* cat: capsicumize itMariusz Zaborski2021-01-151-0/+1
| | | | | Reviewed by: markj, arichardson Differential Revision: https://reviews.freebsd.org/D28083
* tools: git hooks: drop "submitted by" from commit templateKyle Evans2021-01-141-2/+2
| | | | | | | | | | | | With the switch to git, we should strive to properly attribute every commit appropriately with the metadata that's provided to do so. In this case, the submitter should be recorded via the author metadata. Committing an arbitrary patch, one can set it as such: git commit --author="John Smith <smith@example.com>" Reviewed-by: emaste Differential-Revision: https://reviews.freebsd.org/D28069
* netmap: pkt-gen: fix offset hex formattingVincenzo Maffione2021-01-121-3/+3
| | | | | | PR: 252594 Reported by: brpoole@vt.edu MFC after: 3 days
* build: add WITHOUT_CLEAN workaround for 821aa63a0940Kyle Evans2021-01-081-0/+6
| | | | | | | | | | | The *w variants of ncurses directories went away, and the remaining names build the widechar variants instead of non-widechar variants. As such, the entire ncurses tree should be regenerated. Key off of lib/ncurses/ncursesw being present and remove the whole ncurses hierarchy if it is. Reviewed by: emaste (IRC)
* pccard: Remove wi(4) driverWarner Losh2021-01-081-21/+0
| | | | | | | | | Remove wi(4). pccard is going away, and wi only supports PC Card devices, though it has a minor amount of glue to also support PCI cards. However, removing the one without removing the other is hard, so the whole driver is being removed. Relnotes: Yes
* prepare-commit-msg: Avoid warning on macOS and shellcheck fixesAlex Richardson2021-01-071-5/+5
| | | | | | | | | The macOS /bin/sh complains about using return outside of functions. Replace `return 0` with `exit 0` to fix this. While editing this files I've also fixed all the shellcheck warnings that were displayed by my IDE. Reviewed By: emaste Differential Revision: https://reviews.freebsd.org/D28016
* Drop some unncessary stale code from Makefile.bootAlex Richardson2021-01-071-9/+0
| | | | No longer required after 0e1e341b486cdf4769195ba1e5b3cb32e7387873.
* tools/build/make.py: Fix macOS build after a920b9817Alex Richardson2021-01-071-4/+21
| | | | | | If we set STRIPBIN, we also have to set XSTRIPBIN since we otherwise use the host /usr/bin/strip during buildworld. However, this does not work on macOS since /usr/bin/strip doesn't handle ELF binaries.
* Rename NO_WERROR -> MK_WERROR=noAlex Richardson2021-01-071-0/+4
| | | | | | | | As suggested in D27598. This also supports MK_WERROR.clang=no and MK_WERROR.gcc=no to support the existing NO_WERROR.<compiler> uses. Reviewed By: brooks Differential Revision: https://reviews.freebsd.org/D27601
* Fix warnings during bootstrap phase on macOSAlex Richardson2021-01-071-1/+1
|
* Fix warnings during bootstrap on Linux systemsAlex Richardson2021-01-0712-64/+74
| | | | | Most warnings are currently off for the boostrap phase, but once D27598 lands they will be enabled again.
* Fix all warnings emitted in `make kernel-toolchain`Alex Richardson2021-01-071-3/+3
| | | | | | | | With this change and D27598 make kernel-toolchain no longer emits any warnings for me. Reviewed By: emaste Differential Revision: https://reviews.freebsd.org/D27599
* netmap: bridge: fix NS_MOREFRAG supportVincenzo Maffione2021-01-071-5/+7
| | | | | | | | | | | Support for NS_MOREFRAG is broken, as NS_MOREFRAG is copied from the TX slot to the RX slot rather than the other way around. Also, the NS_MOREFRAG must be copied also in case of packet copy (no zerocopy). Reported by: rajesh1.kumar_amd.com MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D27980
* pfctl: Fix NOCLEAN buildKristof Provost2021-01-061-0/+8
| | | | | | | | | We've created a new pf_ruleset.c file for pfctl and no longer use the kernel vrsion, but the build system doesn't handle this dependency change correctly. Delete the dependency file if it contains the kernel version of the file. MFC after: 2 weeks
* ncurses: only keep the version with widechar supportBaptiste Daroussin2021-01-052-2/+2
| | | | | | | | | | | | | | | | Only keep the widechar version of ncurses as libncursesw.so.9 Keep the old name to avoid breaking the ABI compatibility (the non widechar version libncurses.so.9 is not binary compatible with libncursesw.so.9) since all ports and base are already only linking against the widechar version we can simply remove libncurses.so.9 Since the .9 version only lived in the dev branch and never ended in a release, it is simply removed and not added to any binary compat package. Add symlinks to keep build time compatibility for anyone linking against -lncurses
* Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmpDimitry Andric2021-01-031-281/+281
| | | | | | | release/11.x llvmorg-11.0.1-rc2-0-g43ff75f2c3f (aka 11.0.1 rc2). MFC after: 4 weeks X-MFC-With: r364284
* Add comment explaining Git commit message hookEd Maste2020-12-301-0/+10
| | | | Suggested by: jhb
* Handle ports FLAVOR better. (+minor polish)Poul-Henning Kamp2020-12-301-2/+9
|
* Fix generation of colldef source files for non-UTF-8 localesHiroki Sato2020-12-294-283/+363
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Files for colldef were generated by duplicating UTF-8 collation files for each language and included invalid characters in the non-UTF-8 encodings. localedef(1) does not allow those characters. cldr2def.pl now checks if the characters are valid based on charmap files. TODO: ja_JP.UTF-8 locale should not be generated solely from CLDR because it was standardized in a document "UI-OSF Application Platform Profile for Japanese Environment" which was incompatible with information in CLDR. Most of commercial Unix vendors adopt this pre-Unicode-era document as the reference even for UTF-8 locale. Newer versions of Solaris have added a CLDR version as ja_JP.UTF-8@cldr, and IBM AIX has used JA_JP.UTF-8 for the UI-OSF specification and ja_JP.UTF-8 for CLDR. Note that this commit does not change generation of ja_JP.UTF-8. Changes related to this issue will be committed separately later. - Generate POSIX charamap UTF-32 as a reference. It was confusing that charmap.xml used Unicode names defined in UnicodeData.txt though POSIX charmap used slightly different names for the same code points. cldr2def.pl now uses UTF-32.cm as single information source for Unicode symbol names and code points. Charset.xml is also updated to use them. - Fix a bug in get_encodings() in cldr2def.pl which did not understand 0x00+0x00 notation correctly in charmaps/ISCII-DEV.TXT. - Do not regenerate posix/xx_Comm_C.UTF-8.src every time when doing "make build". Reviewed by: bapt Differential Revision: https://reviews.freebsd.org/D27809
* [wlanwatch] fix compiler warnings-as-errors on gcc-6.4 mipsAdrian Chadd2020-12-291-4/+13
| | | | | | | | | | | * argc/argv are currently unused * msglen is currently unused * "default" is a const buffer, but char *cp isn't, so change default string to be a non-const global string variable * Make 'cp' private to each context that's using it, which fixes a "variable shadows previous declaration" warning and makes it easier to track where it was being leaked between address family sections
* [wlanwds] Fix compiler warnings-as-errors on freebsd gcc-6.4 mipsAdrian Chadd2020-12-291-1/+2
| | | | | | | | | * Remove unused verbose global; things are now done through syslog * Mark a variable as unused in handle_rtmsg() Tested: * FreeBSD/mips32 using gcc-6.4
* [wlanstats] Fix warnings-as-errors on gcc-6.4 on mipsAdrian Chadd2020-12-292-8/+10
| | | | | | | | | | * use CLLADDR() to not try deconsting a const * Unsigned where they should be * static where it should be Tested: * freebsd/mips32, using gcc-6.4
* build: remove the option to build gnugrepKyle Evans2020-12-255-36/+0
| | | | | | | | | Unconditionally install bsdgrep as grep, bootstrap or not. Remove all build glue and stop installing both gnugrep and libgnuregex now that all consumers of the latter are gone. Relnotes: yes Differential Revision: https://reviews.freebsd.org/D27732
* mk48txx(4): remove obsolete driverMarius Strobl2020-12-251-21/+0
| | | | | It's no longer used since 58aa35d42975c298ca0adba705c042596303c9f5 and r357455 respectively.