Commit Graph

19009 Commits

Author SHA1 Message Date
tsutsui 09b5dada8b Build mkhybrid as a build tool. 2024-05-31 20:52:58 +00:00
riastradh 256d995a31 New make(1) variable NETBSD_REVISIONID in the NetBSD build.
This is intended to be a tree-wide revision identifier, like a commit
hash or similar.  This way, in builds from non-CVS trees where
per-file $NetBSD$ revision ids aren't incremented, we can still track
some version provenance of files with ident(1).

If defined, bsd.own.mk adds a macro _NETBSD_REVISIONID to CPPFLAGS
with the stringified text of NETBSD_REVISIONID.

In turn, if _NETBSD_REVISIONID is defined in sys/cdefs.h, then
__RCSID will put the concatenation of:
- `$NetBSD: '
- the file name
- ` '
- _NETBSD_REVISIONID
- ` $'
alongside the per-file revision id passed as an argument to __RCSID.

Since this is passed through command-line arguments, it doesn't cause
make to consider any dependencies to change when the revision id
changes -- so incremental builds remain incremental.  And if you
don't set it, nothing changes from the __RCSID we had before.

Currently nothing sets NETBSD_REVISIONID automatically yet -- subject
to experimentation.  Could just be verbatim commit hash, or could be
longer `hg identify' output -- or, in git, with the help of tags,
could be `git describe --dirty' output like

10.99.10-2924-gd01834fb75de

(or `10.99.10-2924-gd01834fb75de-dirty' if the working tree is dirty)
for the commit at
https://mail-index.netbsd.org/source-changes/2024/05/24/msg151526.html
which is 2924 linear commits after the commit bumping sys/param.h to
10.99.10 and (in the current git conversion) had commit hash starting
with d01834fb75.  This may require some discipline around branching
and tagging but it's worth a shot -- we'll see.

Based on a patch from joerg@ a while ago.
2024-05-29 02:06:45 +00:00
nia f629fac4ce audio.4: Document how the "delta" affects setting mixer levels.
Explicitly say that "delta" is optional and may be zero. While this
hasn't previously been specified anywhere (to my knowledge), the best
de-facto specification we have (sb and mixerctl source code) points
towards the historical practice being there.
2024-05-27 02:39:15 +00:00
nia 1efd13166e urtwn.4: List more supported devices 2024-05-26 09:27:20 +00:00
pgoyette 1cce6ebaca s/and/an/ 2024-05-23 06:35:45 +00:00
uwe d2ceb9fbdb uaudio.4: improve markup 2024-05-22 00:25:56 +00:00
nia 1341adf357 uaudio.4: update documentation reflecting initial uac2 support 2024-05-21 10:45:39 +00:00
christos 576e2cd67b explain what the current and new numbering practice are. 2024-05-20 17:12:41 +00:00
gutteridge 37dff36670 acronyms.comp: add SBI 2024-05-19 15:47:38 +00:00
nia db3eea83fb add additional details about how EAP_USE_BOTH_DACS works and is used
requested by uwe
2024-05-16 17:00:31 +00:00
uwe 0aa0d85cd9 eap(4): touch up markup a bit 2024-05-16 14:41:03 +00:00
gson 12b0bef8b3 Fix typo in comment 2024-05-16 14:11:42 +00:00
ast aa0f3360a3 . Update the ASCII art timeline for the last two years
. In particular, add NetBSD 8.3 to timeline
. Add respective "publication dates" of those points in time
While here, also:
. Fix white space idiosyncracies and opt for https instead of http
. Track some changes made to the FreeBSD version of this file
2024-05-16 12:04:21 +00:00
nia 8b6d31f906 Note that EAP_USE_BOTH_DACS is deprecated in the eap(4) manual page. 2024-05-16 11:54:19 +00:00
andvar e4ebea9efd fix recently committed typos by msaitoh in few more places, as well as few more.
mainly s/contigous/contiguous/ and s/miliseconds/milliseconds/ in comments.
2024-05-14 19:00:43 +00:00
gutteridge 4a48b9962f creds_msdos.8: consistently include a hypen in "MS-DOS" 2024-05-13 23:10:47 +00:00
msaitoh dff1feb038 s/withe/with/ 2024-05-13 00:06:04 +00:00
msaitoh 8ae6144b33 s/of of/of/ in comment. 2024-05-13 00:01:52 +00:00
andvar 9faf246505 s/boostrap/bootstrap/ in comment, warning message and documentation. 2024-05-11 06:50:23 +00:00
pho 0a668ec7ec kern/58195: arm: Support drvctl -d and -r for cpufeaturebus
This is required for detaching and re-attaching the vmt(4) driver on aarch64.
2024-05-09 12:41:08 +00:00
pho 3dc92541ec port-arm/58194: Resurrect vmt(4) from bitrot
On this architecture vmt(4) used to search for a node "/hypervisor" in the
FDT and probed the VMware hypervisor call only when the node was
found. However, things appear to have changed and VMware no longer provides
the FDT node.

Since vmt(4) doesn't actually need to read anything from FDT, and the
hypervisor call logically resides in virtual CPUs themselves, it would be
better to attach it directly to cpu, just like how it's probed on x86.
2024-05-09 12:09:58 +00:00
nia 6543f2f229 stop using and linking against libXxf86misc
support for this extension was removed from xorg in 2008,
our xorg-server and our xorg-server.old can't use it.
2024-05-09 06:34:50 +00:00
riastradh 40fb0c39c9 bsd.lib.mk: Use LIBC_MACHINE_ARCH/CPU if set for expected symbols.
Otherwise, we get the wrong list of symbols for compat library
builds, where MACHINE_ARCH/CPU is different from
LIBC_MACHINE_ARCH/CPU, e.g. building compat 32-bit sparc libm on
sparc64.

XXX This is kinda kludgey -- `libc' seems wrong here.
2024-05-08 20:38:55 +00:00
riastradh 2ea04e5047 bsd.lib.mk: Allow MACHINE_CPU for default expsym file. 2024-05-07 20:56:25 +00:00
christos 385d1021b7 also mention kpause(9) here. 2024-05-07 15:40:15 +00:00
mrg b1d1e928c0 use objcopy's --compress-debug-sections when creating debug files.
this reduces the size of the installed files by over half in most cases,
though the debug set size doesn't really change much (which looks like
close to 1GB of space on amd64 with xdebug installed, similar on arm64,
and about 600MB without xdebug.)

tested by running GDB on a few things, seems just as functional, on amd64,
arm64, and slightly on riscv64.

(first attempt for this feature used "gcc -gz=zlib", but that ends up
making CTF unhappy, but fortunately this works in binutils to create
the .debug files separate to any ctf usage of the main file.)
2024-05-06 08:43:36 +00:00
tsutsui 7e4f30d6cd Note that 98542 and 98543 variants are also supported by topcat(4). 2024-05-01 19:34:19 +00:00
andvar e750eca63f Fix typos (nerwork->network, exepense->expense). 2024-05-01 11:22:06 +00:00
andvar 4412324be5 viac7temp(4): rewrite temperature sensor to read value from MSR instead of using
documented cpuid instruction and eax register.

This approach is adapted from linux via-cputemp.c, no official documentation is
currently available. However, msr value seems to work on all tested CPUs while
documented cpuid instruction typically reports 0, even for my C7-D CPU.
msr value seems to have temperature in Celsius in lower 24-bits without fraction
(thus "msr & 0xffffff;" is used).

Tested on my personal systems based on CPUs below (i386 and amd64):
C7-D 1.6GHz (i386 only), Nano X2 L4350E, Nano X2 U4300, U2300 Nano, KX-U6580.
Also got one response via email which was based on Nano X2 L4050 (VE-900).
Nano reports independent values for each core.
KX-U6580 seems to show the same value for all cores but more testing is needed.

Since it works on amd64 capable CPUs, adding driver to GENERIC kernel config.
Also moving viac7temp man page to x86 instead of i386 (with updates).
In theory the change should add support for all VIA Nano CPUs and Zhaoxin CPUs
 at least up to KX-6000(G) series.

In the future I may need to introduce amd64 kernel module as well.

Plan to pullup to at least netbsd-10.

Patch mainly reviewed by riastradh.
2024-04-30 19:35:28 +00:00
mrg d9076a8b46 xdm(1) was renamed xdm(8) a long while ago. catch up location.
add support for section 8 X manuals.  amusingly, we already knew
to convert __adminmansuffix__ into "8", but not how to create
.8 from X .man.
2024-04-29 22:09:10 +00:00
nia 8db54db73e Turn off MKAMDGPUFIRMWARE on i386
It's too big for the i386 install media and not useful on either
pre-2012 hardware or the kinds of embedded systems where i386 still
thrived after 2012.

(The build of the kernel parts of amdgpu on i386 is nevertheless useful
for finding obscure bugs.)

"go for it" riastradh
2024-04-28 08:01:04 +00:00
christos 01e711ac18 mention that we handle battery controls too. 2024-04-27 14:54:58 +00:00
martin 0b28c28c5a Explicitly exclude VAX from new Mesa due to a gcc internal compiler error 2024-04-24 20:38:24 +00:00
martin 4c5f232623 Force old Mesa for all old X server builds 2024-04-24 19:14:39 +00:00
martin a780dc6123 Switch alpha and VAX back to old Mesa for now untill someone fixes
those builds with newer Mesa.
2024-04-24 07:54:53 +00:00
nia 2e1e90e5f9 USE_XZ_SETS is no longer needed for sparc64 to fit on a standard CD-ROM 2024-04-24 05:20:35 +00:00
maya 8a12906d64 Switch to mesa 21
Works well enough for me on various GPUs, let's try it out. Can be easily
reverted if anyone encounters major issues.
2024-04-23 03:25:39 +00:00
jakllsch 3963e60893 Filter out -Wp,-iremap,* from CPPFLAGS as is done in hostprog.mk
Seems to fix build of libnbcompat in reproducible mode on host toolchains w/o -iremap
2024-04-12 16:28:43 +00:00
christos d63dcf4bc7 fix previous. Doing assignmnents of conditionals does not work for being
used as conditionals (thanks rillig@)
2024-04-11 19:12:11 +00:00
jandberg 692d6a7b84 Mention the 16-color screenmode. 2024-04-11 13:06:29 +00:00
jschauma 00a3fda738 +FYSA for your situational awareness
+NIPR	non-classified IP router (network)
+RIPR	releasable IP router (network)
+SIPR	secret IP router (network)

(all US military speak)
2024-04-10 20:50:18 +00:00
christos f0be4a1c8e Merge two identical if's and fix a logic error in them ( && instead of ||) 2024-04-09 22:37:23 +00:00
tsutsui 89a196663d Switch vax to HAVE_XORG_SERVER_VER=120.
Tested on my VAXstation 3100/m30 with smg(4).
Ok'ed by mrg@ on tech-x11@:
 https://mail-index.netbsd.org/tech-x11/2024/04/thread1.html#002457
2024-04-07 14:40:34 +00:00
tsutsui d69dc3dc09 Use default X11FLAGS to build Xorg servers on vax.
It looks necessary on HAVE_XORG_SERVER_VER=120.
2024-04-07 14:36:23 +00:00
christos 7557661219 spacify the paper size for PostScript 2024-04-05 23:06:32 +00:00
christos 64cf3c5d82 specify the page size for PostScript 2024-04-05 23:05:53 +00:00
christos 6b2da37d70 - Create 3 new variables:
MAKELINKLIB that follows MKLINKLIB but can be overwritten by Makefiles
  MAKESTATICLIB that follows MKSTATICLIB but can be overwritten by Makefiles
  LINKINSTALL that follows MAKELINKLIB but can be overwritten by Makefiles
  These give enough control to the module Makefiles so that they don't need
  to override the default library install rules which break the debug sets.
- Remove /usr/libexec/named which duplicated /usr/lib/named
2024-04-05 01:15:59 +00:00
uwe 7f922f0376 dk(4): touch up markup, sort options 2024-04-03 00:40:46 +00:00
charlotte 0ba42b7191 dk.4: Document DKWEDGE_METHOD_TOS 2024-04-02 23:46:19 +00:00
riastradh 9ca9147797 bsd.own.mk: No need for MKSLJIT to be set differently from others.
- Use ?=, not =, so mk.conf setting wins.
- Write out per-architecture tabular settings, not a conditional.
- Add comments for the architectures that look like they should have
  sljit but don't.  (XXX Missing comments about powerpc and mips --
  not sure why, is this because modules don't yet work on those
  architectures, or what?)

Tidying for PR 58103: bpfjit.kmod is not built on aarch64.
2024-04-02 22:41:48 +00:00