aboutsummaryrefslogtreecommitdiff
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* sys/cdefs.h: move __BEGIN_DECLS/__END_DECLS into a helper sys/_decls.hKonstantin Belousov11 days1-0/+1
| | | | | | | | | | | There are situations where nothing from sys/cdefs.h is needed except for the declaration braces. More, the other facilities from sys/cdefs.h might unnecessarly pollute the namespace. Reviewed by: markj, imp Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D56889
* git-arc: Update the usage message to mention create -dMark Johnston2026-05-071-1/+1
| | | | Fixes: 448ec129bcef ("git-arc: Add a create-draft mode")
* sys: Make priority.h and rtprio.h include all dependenciesAlex Richardson2026-05-071-2/+0
| | | | | | | | | | | This ensures this header can be included without an explicit or implicit sys/types.h include first. This causes issues building SPEC2017 which includes sys/rtprio.h and then we get an error due to missing u_char definition. Reviewed by: emaste MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D52041
* bc: Fix testsDag-Erling Smørgrav2026-04-291-0/+4
| | | | | | | | | | | Stop generating test scripts at build time. The dc test script is broken and simply fixing the code that generates it won't help as there is no reliable way to ensure it gets regenerated if it already exists in the object tree. MFC after: 1 week Reviewed by: se Differential Revision: https://reviews.freebsd.org/D56511
* kerneldoc: also ingest .md (markdown files)Adrian Chadd2026-04-291-0/+1
| | | | | | | | | The doxygen tooling has supported ingesting markdown files for a number of years. Adding this option allows them to be ingested into the subsys builds. Reviewed by: netchild Differential Revision: https://reviews.freebsd.org/D56652
* acpi: Remove userland bits on non-ACPI platformsLexi Winter2026-04-281-0/+4
| | | | | | | | | | | | ACPI is only supported on amd64, arm64 and i386. Don't install the power_profile rc script or devd configuration on other platforms. This avoids creating a useless FreeBSD-acpi package on those platforms. MFC after: 2 weeks Reviewed by: imp Sponsored by: https://www.patreon.com/bsdivy Differential Revision: https://reviews.freebsd.org/D56650
* git-arc: Add a create-draft modeMark Johnston2026-04-282-7/+24
| | | | | | | | | | | | | | Make it possible to create a review without publishing it. This should be useful when one wants to restrict the visibility of a review, as that cannot be done via the command line. Note that a draft review is still publicly visible if one can guess the URL, but creating one does not result in email notifications to subscribers etc., nor does a draft appear in the creating user's activity log. Once a draft is ready, one can publish it via the web UI. Reviewed by: jrm Differential Revision: https://reviews.freebsd.org/D56664
* makeman.lua: Downgrade `make showconfig` error to warningEd Maste2026-04-271-1/+4
| | | | | | | | | | | | | The sh-based makeman silently ignored errors from `make showconfig`. Ignore errors also from makeman.lua (but emit a warning). We may want to revisit this in the future, but want makeman.lua to behave identically for now. PR: 294822 Reviewed by: kevans Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D56663
* depends-cleanup: Fix typos in commentDag-Erling Smørgrav2026-04-261-1/+1
| | | | Fixes: 4dd97955e68d ("libpkgconf: Fix paths")
* apm: Only install rc script on i386Lexi Winter2026-04-261-0/+3
| | | | | | | | | | | | | The apm(8) rc script only works on i386, but it's installed on all platforms. Only install it on i386, which avoids creating a useless FreeBSD-apm package on other platforms. While here, build the acpi package on i386. MFC after: 2 weeks Reviewed by: imp Sponsored by: https://www.patreon.com/bsdivy Differential Revision: https://reviews.freebsd.org/D56629
* libpkgconf: Fix pathsDag-Erling Smørgrav2026-04-261-0/+4
| | | | | | | | | ${LOCALBASE:U} evaluates to exactly the same thing as ${LOCALBASE}. Presumably what was meant was ${LOCALBASE:U/usr/local}. Fixes: b8352da33f34 ("pkgconf: import into the base system") Reviewed by: khorben Differential Revision: https://reviews.freebsd.org/D56642
* Merge llvm-project release/21.x llvmorg-21.1.7-0-gcd708029e0b2Dimitry Andric2026-04-251-0/+1
| | | | | | | | | This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project release/21.x llvmorg-21.1.7-0-gcd708029e0b2, a.k.a. 21.1.7 release. PR: 292067 MFC after: 1 month
* Fixups after llvm-project main llvmorg-21-init-19288-gface93e724f4 mergeDimitry Andric2026-04-251-416/+458
| | | | | | | Fix various configuration fails, update generated headers, Makefiles, etc. PR: 292067 MFC after: 1 month
* Remove `cam.d` when MK_DTRACE == noEnji Cooper2026-04-241-0/+1
| | | | | | MFC with: efb77950fdd Fixes: efb77950fdd ("dtrace: Add definitiosn for the cam dtrace provider") Differential Revision: https://reviews.freebsd.org/D56588
* i386: Remove perfmon performance monitoring facilityAli Mashtizadeh2026-04-241-4/+0
| | | | | | | | Remove the perfmon performance monitoring facility that was for Intel Pentium and Pentium Pro processors. Reviewed by: imp,mhorne,emaste Pull Request: https://github.com/freebsd/freebsd-src/pull/2155
* Remove all of /usr/tests/share/examples/... when MK_EXAMPLES == noEnji Cooper2026-04-221-0/+4
| | | | | | | - Remove the generated files (`file1`). - Remove the top-level example `Kyuafile`. MFC after: 1 week
* Preen/update list for share/examples/sound under `MK_EXAMPLES`Enji Cooper2026-04-221-3/+7
| | | | | | | | - Update sources to match current installed files list. This involved adding and removing some example files. - Sort the list alphabetically so it'll be easier to spot future updates. MFC after: 1 week
* Remove `/usr/share/examples/oci` when MK_EXAMPLES == noEnji Cooper2026-04-221-0/+3
| | | | | MFC after: 1 week Fixes: d03c82c28da86 ("release: add optional OCI images")
* pkgconf: import into the base systemPierre Pronchery2026-04-223-0/+24
| | | | | | | | | | | | | | | | | | | | | | This introduces the following option: * MK_PKGCONF: determines if pkgconf and bomtool should be built The objective is to allow the creation of SBOM information while building FreeBSD's src tree. The build system cannot rely on the presence of bomtool (and eventually also spdxtool) in the build environment, except for having it as part of the src tree directly. The framework implementing the generation of SBOM files is under review in D56474. This will also help simplifying the build, with the introduction of another framework relying on the availability of pkgconf. Sponsored by: Alpha-Omega, The FreeBSD Foundation Reviewed by: bapt, philip Approved by: philip (mentor) Differential Revision: https://reviews.freebsd.org/D56404
* makeman.lua: catch up to REQUIRED_OPTIONS changeKyle Evans2026-04-221-1/+1
| | | | | | | | | | | | 161f8edc651c7 ("bsd.mkopt.mk: Prepare a list of all build options") restructured things and now we should simply strip the leading double underbar. This fixes the oddity noticed in 4ed20e0236dd0 ("kshim/usb: Add build option."), where WITH_CASPER made a surprise appearance. This is a part of D56558, but not the meat of the change. Reviewed by: emaste, imp
* Doxygen subsystem config: exclude the content of the .git directoryAlexander Leidinger2026-04-191-1/+1
|
* kshim/usb: Add build option.Warner Losh2026-04-181-0/+2
| | | | | | | | Add WITH{,OUT}_LOADER_USB to build the kshim usb library. Nothing in-tree uses it, but this will make it easier to keep building. Updated src.conf.5 with a few extra changes... Sponsored by: Netflix
* nd6: Remove DRAFT_IETF_6MAN_IPV6ONLY_FLAG and EXPERIMENTAL optionsPouria Mousavizadeh Tehrani2026-04-101-1/+0
| | | | | | | | | | | The draft-ietf-6man-ipv6only-flag has been obsoleted by RFC 8925. Remove the EXPERIMENTAL compile option from the kernel and remove DRAFT_IETF_6MAN_IPV6ONLY_FLAG from userland. This compile option was not enabled by default. Also regenerate src.conf.5. Reviewed by: bz Differential Revision: https://reviews.freebsd.org/D56228
* sys/kobj.h: Make self-sufficientWarner Losh2026-04-091-1/+0
| | | | | | | | kobj.h just needs sys/types.h (because it uses u_int, it can't use sys/_types.h). kobj.h isn't a standard thing, so we don't need to be careful about namespace pollution. Sponsored by: Netflix
* tools/build/Makefile: Always add md4.h to SYSINCSLexi Winter2026-04-091-2/+0
| | | | | | | | | | | | | Since libmd was added to the bootstrap, building main on stable/14 fails because of an incompatibility in its old md4.h. Fix this by always including md4.h in the bootstrap headers, instead of only doing so when building on a non-FreeBSD host. Fixes: 50de0bf50512 ("flua: Always build as a bootstrap tool") Reported by: olce Reviewed by: olce, kevans Sponsored by: https://www.patreon.com/bsdivy Differential Revision: https://reviews.freebsd.org/D56327
* shlib-compat: Fix two typos in error messagesGordon Bergling2026-04-041-2/+2
| | | | | | - s/implemeted/implemented/ MFC after: 3 days
* Remove WITHOUT_BZIP2, WITHOUT_BZIP2_SUPPORTLexi Winter2026-04-032-5/+0
| | | | | | | | | | | | | | | WITHOUT_BZIP2_SUPPORT only affects a single binary, gzip(1); it doesn't remove bzip2 support from other bits (e.g., libarchive) and there are no similar options for gzip, xz or zstd. WITHOUT_BZIP2 has not done anything at all since it was first added in 2007. MFC after: never Discussed on: arch@ Reviewed by: imp, des, adrian, delphij, emaste Differential Revision: https://reviews.freebsd.org/D56148 Sponsored by: https://www.patreon.com/bsdivy
* Makefile.inc1: Drop AS and RANLIB variablesEd Maste2026-03-311-1/+0
| | | | | | | | | These are not used in our world and kernel build targets. We use the compiler driver for assembly, and ar adds the archive index (symbol table) automatically. Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D55964
* cross-build: Provide mempcpy when building on macOSJessica Clarke2026-03-232-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 Holm2026-03-2311-3/+2262
|
* build: Boostrap LLVM_BINUTILS for cross-toolsEd Maste2026-03-201-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 Daroussin2026-03-202-0/+7
| | | | | Reviewed by: manu, bdrewery (previous version) Differential Revision: https://reviews.freebsd.org/D55895
* nanobsd: embedded: Time stamp the code imageJose Luis Duran2026-03-191-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 Duran2026-03-193-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 Duran2026-03-191-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 Duran2026-03-191-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 Duran2026-03-191-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 Duran2026-03-191-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