aboutsummaryrefslogtreecommitdiff
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* cross-build: Provide mempcpy when building on macOSJessica Clarke2 days2-0/+5
| | | | | | | | | We could patch the tzcode config to not use it, but it's simple to provide an implementation of it and avoid spreading cross-build bootstrapping special cases. Fixes: ff2c98b30b57 ("tzcode: Update to 2026a") MFC after: 1 week
* stress2: Added syzkaller reproducers. Update the exclude filePeter Holm3 days11-3/+2262
|
* build: Boostrap LLVM_BINUTILS for cross-toolsEd Maste6 days1-0/+12
| | | | | | | | Reported by: vexeduxr, jrtc27 Reviewed by: imp Sponsored by: The FreeBSD Foundation Pull request: https://github.com/freebsd/freebsd-src/pull/2084 Differential Revision: https://reviews.freebsd.org/D55923
* pkg-serve(8): serve pkg repositories over TCP via inetd (8)Baptiste Daroussin6 days2-0/+7
| | | | | Reviewed by: manu, bdrewery (previous version) Differential Revision: https://reviews.freebsd.org/D55895
* nanobsd: embedded: Time stamp the code imageJose Luis Duran6 days1-1/+1
| | | | | | | | | | | | | | While there is a function nano_makefs() that already takes care of this issue, we are not yet ready to consume it. Just add the time stamp and FFS options to makefs. This is done primarily to use UFS2 (UFS version 2). If the user needs further customization, the variable NANO_MAKEFS can be overridden. Timestamping takes care of making the images bit-for-bit identical. Reviewed by: imp MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D54980
* nanobsd: Minor cleanupJose Luis Duran6 days3-59/+55
| | | | | | | | No functional change intended. Reviewed by: imp MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D54979
* nanobsd: embedded: Fix more regressions from last cleanupJose Luis Duran6 days1-6/+6
| | | | | | | | | | | | Commit c99bb5747f5e changed "()" grouping into "{}", but in these cases we chdir and depended on the subshell not changing the directory for the caller. Restore the old behavior. While things appear to work without this change, the previous code was intentionally structured this way. Reviewed by: imp Fixes: c99bb5747f5e ("nanobsd: minor formatting cleanup") MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D54978
* nanobsd: embedded: Remove stray commentJose Luis Duran6 days1-1/+0
| | | | | | | | | | | | Remove an outdated comment about NanoBSD not being able to remove the firstboot sentinel file. It was fixed in cb51e2bc3db7 ("rc: Allow the removal of firstboot_sentinel on read-only file systems"). Reviewed by: imp MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D54977
* nanobsd: embedded: Remove mtools dependencyJose Luis Duran6 days1-13/+7
| | | | | | | | | | | | | Rely on makefs -t msdos to create the MS-DOS partition and remove the dependency on filesystems/mtools. Note that NANO_SLICE_FAT_SIZEs defined in sectors (ending with an "s") are no longer supported, as a workaround the letter "b" (blocks) may be used instead. Reviewed by: imp MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D54976
* nanobsd: embedded: Calculate FAT type and schemeJose Luis Duran6 days1-3/+46
| | | | | | | | | | | | | | | Determine the FAT (MS-DOS) type (FAT32, FAT16, or FAT12) and partition scheme (fat32lba or fat16b) based on partition size. Accept any (NetBSD) strsuftoll(3)-compatible string, as the value will be fed to makefs(8) "-s" in a future commit. NANO_SLICE_FAT_SIZEs defined in sectors (ending with an "s") will not be supported. As a workaround, the letter "b" (blocks) may be used. Reviewed by: imp MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D54975
* depend-cleanup.sh: rebuild strnlen.o on riscv64 if it came from strnlen.SRobert Clausecker2026-03-071-1/+4
| | | | | | | | | We have to switch back to the previous rule once the temporary build fix has been replaced with a permanent fix. MFC after: 1 week See also: 2a4e3112c811b9892e14e15cfd23538e7e47329c PR: 293353, 293296
* Add __unused workaround for linux/sys/types.hPerdixky2026-03-071-0/+3
| | | | | | Signed-off-by: Perdixky <3293789706@qq.com> Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/2063
* stress2: Updated commentsPeter Holm2026-03-062-2/+4
|
* stress2: Added a new test scenarioPeter Holm2026-03-061-0/+116
|
* build: Retire LLVM_CXXFILT optionEd Maste2026-03-053-7/+2
| | | | | | | | | | | | | | | | The LLVM_CXXFILT option was added when we used ELF Tool Chain tools by default. ELF Tool Chain's c++filt failed to demangle some symbols, so we added a special case to install LLVM's version and enabled it by default. The rest of the LLVM tools are now used by default, as of commit 9fa94e1c099d ("Turn on WITH_LLVM_CXXFILT by default"). Simplify the build logic by removing a special case and just include llvm-cxxfilt with the rest of the LLVM utilities. Reviewed by: dim Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D55654
* INIT_ALL: Fix typo in option descriptionEd Maste2026-03-041-1/+1
| | | | | From GitHub pull request #2035; the change needs to be applied to the source file for the option description, not the generated src.conf.5.
* Allow programs run under this program to have arguments.George V. Neville-Neil2026-03-031-6/+8
|
* src.opts.mk: Retire BSD_CPIO optionEd Maste2026-03-031-7/+0
| | | | | | | | | | | | | | Prior to commit 6973701a00e3 ("1. Make the BSD version of cpio the default [1]") GNU cpio was installed unconditionally. The BSD_CPIO option was added when we introduced the BSD licensed, libarchive-based cpio, to support installation of GNU cpio, libarchive cpio, or both. GNU cpio was removed long ago and there is no longer a need for this option. We can just install BSD cpio unconditionally. Reviewed by: des Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D55467
* sanitize.lua: A tool to extract interfaces from filesWarner Losh2026-02-271-0/+53
| | | | | | | | | | | | | | This is a simple too to remove all comments, extra whitespace and other unnecessary things that may have creative content. What remains can be just the minimal interface described by the header file. When used with care, this can mechanically sanitize files, like some device tree bindings file, that are only #defines that are meant to be used in multiple context (the dts files and in C code to interpret the resulting dtb). Sponsored by: Netflix Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D55087
* syscall_timing: add Makefile.dependKa Ho Ng2026-02-251-0/+13
| | | | | | | | | This was part of review D44761. It was separated into another commit for better clarity. Obtained from: Hewlett Packard Enterprise MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D44761
* Use NO_SHARED instead of explicitly using -static flagStephen J. Kiernan2026-02-251-1/+2
| | | | | | | | | | NO_SHARED is the proper way to declare linking a program without shared libraries. Obtained from: Hewlett Packard Enterprise MFC after: 1 week Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D44761
* tools/build/stddef.h: fix stock clang/gcc headersAhmad Khalifa2026-02-241-2/+12
| | | | | | | | | | | | | Both clang and gcc's stddef.h are designed to be included multiple times with different combinations of __need_* macros defined (e.g __need_size_t). Remove the #pragma once to accommodate this, ptraddr_t is guarded by _PTRADDR_T_DECLARED anyways. Also use __SIZE_TYPE__ instead of size_t since it's not guaranteed to be defined. Reviewed by: brooks, imp, kib Differential Revision: https://reviews.freebsd.org/D55453
* Retire GNU diff3Ed Maste2026-02-222-9/+0
| | | | | | | | | | | | We added the option to build BSD diff3 in commit 2201f7c49f11 ("Build BSD diff3 if GNU diff3 is disabled.") and made it the default in 4d5c434ed16e ("diff3: use bsd diff3 by default") after resolving deficiencies relative to GNU diff3. Thus, we can now remove the GNU diff3 build infrastructure and source. Reviewed by: bapt, ziaee Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D46878
* build: Move all of lp under LPR optionDag-Erling Smørgrav2026-02-211-0/+18
| | | | | | | | | | * Tag related directories with package=lp * Make the examples/printing directory conditional on MK_LPR * Make the hosts.lpd(5) manual page conditional on MK_LPR MFC after: 3 days
* nvmf: Limit the default I/O queue size to 128 entriesJohn Baldwin2026-02-201-1/+2
| | | | | | | | Previously the size defaulted to the maximum supported size reported by the remote host. The value of 128 matches the default on Linux and avoids excessive resource usage for I/O queues. Sponsored by: Chelsio Communications
* OptionalObsoleteFiles: Don't mark /usr/lib/debug/boot directory obsoleteArtem Bunichev2026-02-191-2/+2
| | | | | | | | | | | | | | The intent of the currect code is to ignore anything under /usr/lib/debug/boot/*. But we also should make sure that /usr/lib/debug/boot directory is also ignored and is not marked obsolete. If we don't do that, `make DBATCH_DELETE_OLD_FILES delete-old` will try to rmdir(1) this directory, which will cause an error, since /usr/lib/debug/boot may have nested directories like kernel/ and modules/. Reviewed by: markj MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D55077
* build: add stddef.h to define ptraddr_t as requiredBrooks Davis2026-02-192-0/+52
| | | | | | | | | Effort: CHERI upstreaming Sponsored by: Innovate UK Reviewed by: kib Co-authored-by: Alfredo Mazzinghi <am2419@cl.cam.ac.uk> Co-authored-by: Alex Richardson <Alexander.Richardson@cl.cam.ac.uk> Differential Revision: https://reviews.freebsd.org/D55308
* git-arc: Tweak heuristic for email addressWarner Losh2026-02-181-0/+1
| | | | | | | In the email address heuristic, assume guest-* are external contributors. It's a new convention, apparently. Sponsored by: Netflix
* OptionalObsoleteFiles: Add missing dpv MLINKDag-Erling Smørgrav2026-02-181-0/+1
| | | | MFC after: 3 days
* OptionalObsoleteFiles: Add missing figpar MLINKSDag-Erling Smørgrav2026-02-181-0/+7
| | | | | MFC after: 3 days Fixes: bc6c827078b7 ("OptionalObsoleteFiles: Add figpar to dialog section")
* OptionalObsoleteFiles: Add figpar to dialog sectionDag-Erling Smørgrav2026-02-171-0/+4
| | | | | | | MFC after: 3 days Fixes: 15d781b53233 ("lib: Gate libfigpar under MK_DIALOG") Reviewed by: jhb, emaste Differential Revision: https://reviews.freebsd.org/D55330
* ObsoleteFiles: DeduplicateDag-Erling Smørgrav2026-02-171-38/+0
| | | | | | | | | | Since we dropped support for profile libraries, all optional entries for them are now non-optional. Most of them were already duplicated there, a few were not. MFC after: 3 days Reviewed by: jhb, emaste Differential Revision: https://reviews.freebsd.org/D55329
* stress2: Fix cleanupPeter Holm2026-02-122-2/+2
|
* stress2: Limit output from testPeter Holm2026-02-121-1/+1
|
* prepare-commit-msg: Sync with committers guideAlexander Ziaee2026-02-121-15/+20
| | | | | | | | | | | Add `Discussed with:`, `Closes:`, `MFC to:`, and `Co-authored-by:` to the commit message template from the committer's guide. While here, wordsmith these to fit on standard console. Reported by: lwhsu Discussed with: emaste, jlduran Reviewed by: vexeduxr Differential Revision: https://reviews.freebsd.org/D54707
* git-arc.1: Fix patch optionsJoseph Mingrone2026-02-101-3/+2
| | | | | | Reviewed by: markj Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D55228
* tools: fix WITHOUT_LOADER_GELI typo in universe.shQuentin Thébault2026-02-091-1/+1
| | | | | | | Signed-off-by: Quentin Thébault <quentin.thebault@defenso.fr> Reviewed by: emaste Sponsored by: Defenso Pull Request: https://github.com/freebsd/freebsd-src/pull/2011
* ifinfo: improve output of hwassist valueTimo Völker2026-02-081-1/+47
| | | | | | | | | In addition to print the hexadecimal number hwassist, also print the symbolic names of the corresponding CSUM_* flags. Reviewed by: tuexen MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D55055
* git-arc.1: Refer to new port nameJoseph Mingrone2026-02-071-1/+1
| | | | | | | | | The git-arc script was moved from devel/freebsd-git-devtools to devel/freebsd-git-arc. Reviewed by: ziaee Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D55127
* OptionalObsoleteFiles: Add etc/zfs/compatibility.dArtem Bunichev2026-02-051-0/+58
| | | | | | | | | | | | | If the world is built and installed with WITHOUT_ZFS, then make -DBATCH_DELETE_OLD_FILES delete-old-dirs will give the error: > rmdir: /etc/zfs: Directory not empty because /etc/zfs/compatibility.d is still there. While we're here, clean out /usr/share/zfs as well. Co-authored-by: kevans Differential Revision: https://reviews.freebsd.org/D54758
* Remove additional libtpool and libuutil-related filesEnji Cooper2026-02-041-4/+0
| | | | | | | | This change removes additional library files and tests orphaned in the commit referenced below. MFC with: 8b78d412a Fixes: 8b78d412a ("zfs: world changes after 89f729dcc merge")
* usr.bin/tftp: remove tests when MK_TFTP=noEnji Cooper2026-02-031-0/+3
| | | | | | | These tests require the tftp client, which is not installed when `MK_TFTP=no`. Remove them when that's not true. MFC after: 1 week
* usr.bin/factor: remove tests when MK_GAMES=noEnji Cooper2026-02-031-0/+4
| | | | | | | factor(1) is only installed when MK_GAMES != no. Ergo, remove the tests when that's not true. MFC after: 1 week
* tftpd: remove tests when MK_TFTP=noEnji Cooper2026-02-031-0/+3
| | | | MFC after: 1 week
* Remove bsnmpd tests when MK_BSNMP == noEnji Cooper2026-02-031-0/+3
| | | | MFC after: 1 week
* Remove example tests when MK_EXAMPLES=noEnji Cooper2026-02-011-0/+26
| | | | | | | | | | | This change cleans up example tests for atf, googletest, plain, and TAP when MK_EXAMPLES=no. Not having this in results `kyua test -k /usr/tests/share/examples/Kyuafile` being broken on a host where the content in that directory tree is stale. I ran into that case because at some point in time in the past I had specified `MK_GOOGLETEST=no` one of my dev instances. MFC after: 1 week
* nanobsd: embedded: Stub out experimental functionsJose Luis Duran2026-01-301-0/+7
| | | | | | | | Stub out both experimental functions introduced in ecc039be7fdd when doing embedded builds. Fixes: ecc039be7fdd ("nanobsd: Add a NO_ROOT build option") MFC after: 3 days
* src.conf.5: Cross-reference uname(1) manual pageArtem Bunichev2026-01-292-2/+6
| | | | | Reviewed by: emaste, ziaee Differential Revision: https://reviews.freebsd.org/D54688
* nanobsd: Fix _populate_part()Jose Luis Duran2026-01-251-5/+4
| | | | | | | | | - Avoid unnecessary subshell execution - Fix removing the temporary and empty /cfg directory - Do not remove the generated metalog file for /cfg or /data partitions Fixes: 61ac7309c366 ("nanobsd: Add a provisional populate_part function") MFC after: 3 days
* stress2: Added two new test scenariosPeter Holm2026-01-242-0/+185
|