Commit Graph

3032 Commits

Author SHA1 Message Date
mrg 8e5ae65545 apply some more consistency in platform checks, collapse some
checks, and enable pigz on arm64eb.
2022-03-17 06:24:30 +00:00
mrg baae5e2cfb enable ZFS on arm64eb. works witih basic testing.
(dtrace does not.)
2022-03-17 06:20:47 +00:00
christos 32fedbaf4c remove the NEED_OWN_INSTALL_TARGET conditional for setting the install
variables, suggested by phone@
2021-12-30 04:57:10 +00:00
christos e84b253916 remove extra C in OBJCOPTS (from Anon Ymous) 2021-12-23 20:08:07 +00:00
christos 69f41f5953 Rename:
MKKDEBUG -> MKDEBUGKERNEL
    MKTOOLSDEBUG -> MKDEBUGTOOLS
while keeping compatibility with the old names. Add missing documentation.
Now all debugging tunables are prefixed with MKDEBUG.
2021-12-20 20:33:20 +00:00
christos 814fa5ccf1 PR/55557: Andreas Gustafsson" Introduce a new variable MKDEBUGKERNEL which
as the name implies, includes a netbsd.gdb inside each kernel set:
$ tar -tzvf kern-GENERIC.tgz
-rwxr-xr-x  0 root   wheel 29398264 Dec 19 12:50 ./netbsd
-rwxr-xr-x  0 root   wheel 208125880 Dec 19 12:50 ./netbsd.gdb
2021-12-20 14:41:26 +00:00
christos 7aa721301c Pass W with IDU for lint and deps. 2021-12-14 16:22:07 +00:00
maya 1eb4f57936 Add amdgpu firmware build goo (disabled) 2021-12-12 20:33:21 +00:00
rillig f839c2b06d bsd.clean.mk: fix typo in comment 2021-12-07 22:40:52 +00:00
abs 9a317b44dd Add Xwsfb X server to pmax build
With the previous tweak to TURBOchannel framebuffers in sys/dev/tc this
should allows pmax to once again run X11.

TODO: Investigate pullup to -9
2021-12-06 17:51:59 +00:00
msaitoh e6dabad63a s/specificed/specified/ in comment. 2021-12-05 07:53:57 +00:00
msaitoh 8a3fe07864 s/from from/from/ in comment. 2021-12-05 04:54:20 +00:00
christos c207dc6779 When we build against DESTDIR, add the lint library path for DESTDIR during
the link phase for lint.
2021-11-28 15:49:36 +00:00
christos 9bb938d35a For private and module libraries, build lint but do not install the lint
libraries. We want to lint the private library code and we want to be able
to link against the lint libraries, for example llib-largon2 from cgdconfig
which is accessed via PROGDPLIBS.
2021-11-28 15:47:33 +00:00
rillig 6e083f0283 sys.mk: fix duplicate character in character class of LINTFLAGS
The character class contained two times U+0020, which makes one of them
redundant, so remove the character class. PR toolchain/18248 already
contained these two spaces.

Apparently there is no need to support tabs in this place, otherwise
someone would have noticed it in the 17 years since this pattern had
been added in sys.mk 1.83 from 2004-01-27.

No functional change.
2021-11-28 00:21:12 +00:00
skrll 50e70fef69 Hook in riscv dtb build 2021-11-13 10:13:42 +00:00
skrll 4eedda3bdc Correct a comment 2021-11-13 09:41:15 +00:00
nia 8b8c4023f4 mk: Add support for conditional compilation of parts of the tree with
partial RELRO when MKRELRO=full is set.

Currently the X server needs to be compiled with only partial RELRO
due to the way certain (but not all - it seems wsfb works with full
RELRO) graphics driver modules are loaded.
2021-11-01 10:05:18 +00:00
ryo f989f9625c revert previous: http://mail-index.netbsd.org/source-changes/2021/10/25/msg133295.html
going to add __always_inline to the functions called from _mcount()
discussed on http://mail-index.netbsd.org/source-changes-d/2021/10/25/msg013480.html
2021-10-27 03:06:59 +00:00
ryo 843ce00650 In some arch, _mcount() would be called recursively when built with COPTS=-O0.
Normally, functions called from mcount.c are expected to be expanded inline,
so _mcount() will never be called recursively. But when build with COPTS=-O0,
`static inline' functions aren't inlined, and _mcount() will be called
recursively.

Even if _mcount() has `__attribute__((__no_ instrument_function__))',
it has no effect on the calling external (no-inlined) function.

To avoid this, PROF.<fn> is added can be set the profiling flag of any file.
"PROF.mcount.c" is set to blank by default, mcount.c itself is compiled
without -pg.
2021-10-25 07:54:44 +00:00
nia 7d6fba5f3f mk: Enable MKPIE on aarch64 (it's already enabled on 32-bit arm) 2021-10-14 12:58:30 +00:00
nia ac33538813 mk: Enable MKRELRO on aarch64 to match x86. 2021-10-14 11:46:45 +00:00
nia 2088d9efba mk: Enable MKARGON2 now that this stuff works. 2021-10-14 11:45:46 +00:00
jmcneill 2017b9f914 efiboot: Build and install bootriscv64.efi for riscv64 builds. 2021-09-30 20:02:54 +00:00
maya f9d97969cb Restore MKNOUVEAUFIRMWARE and MKRADEONFIRMWARE and make gpufw set unconditional
Simplifies logic.
(Second commit - first one was partial)

Restoring MK* requested by mrg on tech-kern discussion
https://mail-index.netbsd.org/tech-kern/2021/09/25/msg027695.html
2021-09-26 15:52:40 +00:00
maya f54624bd74 Move DRM-driver firmware from base to its own set, gpufw
This set is only installed on amd64,i386,evbarm.
This set is installed on minimal installs and on install media, in
case someone needs it for basic driver functionality.

Comments:
Switched to a single MK tunable for it - that is probably unneeded.

An upcoming DRM update will include even fatter firmware, and we'd
like to minimize the impact of it.
2021-09-25 08:54:29 +00:00
andvar 80f2027016 sysinst/partitions.h: fix typos comments, also fix same typos in other files. 2021-09-11 21:30:46 +00:00
mrg d07aa01e08 xorg-server is now at 1.20.13. 2021-08-24 06:29:18 +00:00
mrg 2fa4170300 define variables for the libxcb-* libraries. 2021-08-23 22:13:27 +00:00
andvar 8324be4c9b fix some more typos in comments/log messages, improve wording as well. 2021-08-21 11:55:24 +00:00
mrg ab57e84c1b fix arm64 builds: turn off MKCOMPAT for GCC
no idea why it was enabled as we can't easily target 32 bit.

if we figure this out for aarch32, the subdir names etc will
probably be different, or we can just revive the deleted
files no longer referenced with this commit.
2021-08-19 06:52:37 +00:00
mrg 344668bab1 switch sh3 to GCC 10. buh bye GCC 9!
thanks to everyone who helped (most espcially rin@.)
2021-08-16 17:40:16 +00:00
christos 9aa9806a13 Fix sun2 build for ldap/gssapi 2021-08-15 10:30:39 +00:00
christos 7377d9de8f Centralize the ldap libraries 2021-08-14 16:16:32 +00:00
mrg fc1fab36bb switch Mesa 19 to use MesaLib.old subdir. 2021-07-11 22:07:35 +00:00
mrg 6579c40d91 xorg-server is now 1.20.12. 2021-07-11 00:13:49 +00:00
mrg 5be704ed29 switch m68000, m68k and 32 bit arm to GCC 10. just sh3 left!
special thanks to rin for fixing arm32.
2021-06-19 06:19:35 +00:00
rin 99f59e4c4b Switch amiga to Xorg server 1.20; wsfb(4) is only graphic driver both for
1.10 and 1.20 (Xamiga was gone a long ago...), and there is no reason to
stay with 1.10.

At least, 1.20 works fine on wsdisplay(4) at amidisplaycc(4).
2021-06-03 07:40:48 +00:00
jmcneill d3b931e31a Add support for installing a copy of dtb files to the base dtb directory
when DTBSUBDIR is defined.
2021-06-02 10:28:21 +00:00
rin f49ee5462d Switch mac68k to Xorg server 1.20. Only available driver is wsfb(4) both
for 1.10 and 1.20, and there is no reason to stay with 1.10.

XXX
1.20 works fine on WSFB* kernels with genfb(4), whereas both 1.10 and
1.20 fail for GENERIC* kernels with macfb(4) as some mandatory ioctl's
are missing. It would be better to make genfb(4) default before netbsd-10
is branched.
2021-05-29 12:25:08 +00:00
christos 357005ef43 mips has switched already. 2021-05-27 21:02:56 +00:00
christos 69d62fbbf7 mips64 only works with gcc-10 2021-05-27 20:29:24 +00:00
christos be33763f2d switch to MACHINE_ARCH i386 to include xen (thanks mlelstv) 2021-05-27 17:41:28 +00:00
christos e5a1a244b0 Switch "xen" to gcc 10 too, otherwise xen kernel builds fail because they
"think" we have gcc-9 where we have gcc-10 in reality (since MACHINE=xen),
and we don't add ${GCC_NO_RETURN_LOCAL_ADDR} COPTS.in_pcb.c
2021-05-27 17:13:20 +00:00
christos 949385b148 remove dup line (thanks rillig) 2021-05-27 11:24:58 +00:00
mrg 41b9942230 switch mips* and i386 to GCC 10.
arm32 (significant issues remaining), m68k (seems fine, but x68k
needs to reduce support in loadbsd), and sh3 remaining.
2021-05-27 06:58:27 +00:00
christos adc3e0c6e2 Add date as a tool 2021-05-26 20:21:25 +00:00
rin 735b9693ea PR port-mvme68k/56146
Build wrtvid as tools.
2021-05-06 13:23:36 +00:00
mrg 842d17106a xorg-server 1.20.11 is now current. 2021-04-27 04:02:09 +00:00
christos ef70f9b69b Revert the AFLAGS change since it affects kernels. 2021-04-26 00:38:23 +00:00