Commit Graph

6258 Commits

Author SHA1 Message Date
Dag-Erling Smørgrav 67a63eae7b bc: Fix tests
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
2026-04-29 17:15:30 +02:00
Adrian Chadd 4c99836ac7 kerneldoc: also ingest .md (markdown files)
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
2026-04-29 07:58:19 -07:00
Lexi Winter c4b244af42 acpi: Remove userland bits on non-ACPI platforms
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
2026-04-28 20:50:41 +01:00
Mark Johnston 448ec129bc git-arc: Add a create-draft mode
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
2026-04-28 14:02:58 +00:00
Ed Maste ea27ec183d makeman.lua: Downgrade make showconfig error to warning
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
2026-04-27 15:21:12 -04:00
Dag-Erling Smørgrav 1abfe75860 depends-cleanup: Fix typos in comment
Fixes:		4dd97955e6 ("libpkgconf: Fix paths")
2026-04-26 20:14:37 +02:00
Lexi Winter b7daab8be1 apm: Only install rc script on i386
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
2026-04-26 17:47:27 +01:00
Dag-Erling Smørgrav 4dd97955e6 libpkgconf: Fix paths
${LOCALBASE:U} evaluates to exactly the same thing as ${LOCALBASE}.
Presumably what was meant was ${LOCALBASE:U/usr/local}.

Fixes:		b8352da33f ("pkgconf: import into the base system")
Reviewed by:	khorben
Differential Revision:	https://reviews.freebsd.org/D56642
2026-04-26 15:41:47 +02:00
Dimitry Andric e64bea71c2 Merge llvm-project release/21.x llvmorg-21.1.7-0-gcd708029e0b2
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
2026-04-25 16:14:02 +02:00
Dimitry Andric 770cf0a5f0 Fixups after llvm-project main llvmorg-21-init-19288-gface93e724f4 merge
Fix various configuration fails, update generated headers, Makefiles, etc.

PR:		292067
MFC after:	1 month
2026-04-25 16:11:52 +02:00
Enji Cooper 944a4de2d2 Remove cam.d when MK_DTRACE == no
MFC with:	efb77950fd
Fixes:	efb77950fd ("dtrace: Add definitiosn for the cam dtrace provider")
Differential Revision:	https://reviews.freebsd.org/D56588
2026-04-24 13:45:13 -07:00
Ali Mashtizadeh 70ae0c4524 i386: Remove perfmon performance monitoring facility
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
2026-04-24 10:23:05 -06:00
Enji Cooper fb7df70a47 Remove all of /usr/tests/share/examples/... when MK_EXAMPLES == no
- Remove the generated files (`file1`).
- Remove the top-level example `Kyuafile`.

MFC after:	1 week
2026-04-22 14:08:04 -07:00
Enji Cooper b9495bd8c1 Preen/update list for share/examples/sound under MK_EXAMPLES
- 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
2026-04-22 14:00:52 -07:00
Enji Cooper ab53a4e9b9 Remove /usr/share/examples/oci when MK_EXAMPLES == no
MFC after:	1 week
Fixes:		d03c82c28d ("release: add optional OCI images")
2026-04-22 13:53:24 -07:00
Pierre Pronchery b8352da33f pkgconf: import into the base system
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
2026-04-22 15:42:56 +02:00
Kyle Evans 8bbba9f681 makeman.lua: catch up to REQUIRED_OPTIONS change
161f8edc65 ("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
4ed20e0236 ("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
2026-04-21 21:32:23 -05:00
Alexander Leidinger 315f665fe1 Doxygen subsystem config: exclude the content of the .git directory 2026-04-19 14:46:35 +02:00
Warner Losh 4ed20e0236 kshim/usb: Add build option.
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
2026-04-17 20:41:43 -06:00
Pouria Mousavizadeh Tehrani 87bea33a67 nd6: Remove DRAFT_IETF_6MAN_IPV6ONLY_FLAG and EXPERIMENTAL options
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
2026-04-10 23:42:09 +03:30
Warner Losh 428034ad0d sys/kobj.h: Make self-sufficient
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
2026-04-09 17:37:21 -06:00
Lexi Winter 0dd9c4abf0 tools/build/Makefile: Always add md4.h to SYSINCS
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:		50de0bf505 ("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
2026-04-09 15:30:20 +01:00
Gordon Bergling 3957e233dd shlib-compat: Fix two typos in error messages
- s/implemeted/implemented/

MFC after:	3 days
2026-04-04 09:11:11 +02:00
Lexi Winter ab9257599a Remove WITHOUT_BZIP2, WITHOUT_BZIP2_SUPPORT
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
2026-04-03 14:50:09 +01:00
Ed Maste 9b1f77e647 Makefile.inc1: Drop AS and RANLIB variables
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
2026-03-31 13:18:32 -04:00
Jessica Clarke 47402c9422 cross-build: Provide mempcpy when building on macOS
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:		ff2c98b30b ("tzcode: Update to 2026a")
MFC after:	1 week
2026-03-23 16:56:09 +00:00
Peter Holm 4f8a1b4dff stress2: Added syzkaller reproducers. Update the exclude file 2026-03-23 12:15:29 +01:00
Ed Maste 17494c6e6b build: Boostrap LLVM_BINUTILS for cross-tools
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
2026-03-20 09:38:40 -04:00
Baptiste Daroussin b42e852e89 pkg-serve(8): serve pkg repositories over TCP via inetd (8)
Reviewed by:	manu, bdrewery (previous version)
Differential Revision:	https://reviews.freebsd.org/D55895
2026-03-20 13:29:48 +01:00
Jose Luis Duran 894992e786 nanobsd: embedded: Time stamp the code image
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
2026-03-19 17:14:36 +00:00
Jose Luis Duran 5902c1834d nanobsd: Minor cleanup
No functional change intended.

Reviewed by:	imp
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D54979
2026-03-19 17:14:24 +00:00
Jose Luis Duran 60f8d36f7e nanobsd: embedded: Fix more regressions from last cleanup
Commit c99bb5747f 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:		c99bb5747f ("nanobsd: minor formatting cleanup")
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D54978
2026-03-19 17:13:59 +00:00
Jose Luis Duran 21970f2780 nanobsd: embedded: Remove stray comment
Remove an outdated comment about NanoBSD not being able to remove the
firstboot sentinel file.

It was fixed in cb51e2bc3d ("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
2026-03-19 17:13:29 +00:00
Jose Luis Duran 5de9a54c76 nanobsd: embedded: Remove mtools dependency
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
2026-03-19 17:12:51 +00:00
Jose Luis Duran 68f5e5b124 nanobsd: embedded: Calculate FAT type and scheme
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
2026-03-19 17:12:26 +00:00
Robert Clausecker b5514e1c6d depend-cleanup.sh: rebuild strnlen.o on riscv64 if it came from strnlen.S
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:	2a4e3112c8
PR:		293353, 293296
2026-03-08 00:33:53 +01:00
Perdixky 9f2eb94736 Add __unused workaround for linux/sys/types.h
Signed-off-by: Perdixky <3293789706@qq.com>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/2063
2026-03-07 00:51:14 -07:00
Peter Holm b15dc3ff28 stress2: Updated comments 2026-03-06 10:03:53 +01:00
Peter Holm 05cbd5fc2b stress2: Added a new test scenario 2026-03-06 10:03:11 +01:00
Ed Maste 5d757312ad build: Retire LLVM_CXXFILT option
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
9fa94e1c09 ("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
2026-03-05 09:43:46 -05:00
Ed Maste c9f3de0ba9 INIT_ALL: Fix typo in option description
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.
2026-03-04 13:32:32 -05:00
George V. Neville-Neil bc9229035c Allow programs run under this program to have arguments. 2026-03-03 17:10:42 +00:00
Ed Maste b6bb2fc77e src.opts.mk: Retire BSD_CPIO option
Prior to commit 6973701a00 ("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
2026-03-03 09:25:53 -05:00
Warner Losh 7951411672 sanitize.lua: A tool to extract interfaces from files
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
2026-02-26 17:40:32 -07:00
Ka Ho Ng 0ac5cddebe syscall_timing: add Makefile.depend
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
2026-02-25 05:38:40 +00:00
Stephen J. Kiernan de773bcc2f Use NO_SHARED instead of explicitly using -static flag
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
2026-02-25 05:29:04 +00:00
Ahmad Khalifa 0c075db78a tools/build/stddef.h: fix stock clang/gcc headers
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
2026-02-24 22:42:21 +02:00
Ed Maste 9a44e42a2b Retire GNU diff3
We added the option to build BSD diff3 in commit 2201f7c49f ("Build
BSD diff3 if GNU diff3 is disabled.") and made it the default in
4d5c434ed1 ("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
2026-02-21 20:53:19 -05:00
Dag-Erling Smørgrav d4f6cb7542 build: Move all of lp under LPR option
* 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
2026-02-21 22:25:49 +01:00
John Baldwin 1602f0013b nvmf: Limit the default I/O queue size to 128 entries
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
2026-02-20 15:39:02 -05:00