Commit Graph

5272 Commits

Author SHA1 Message Date
mrg ab6c389b06 remove the recently added files or added entries for what is
./usr/include/$MACHINE and automatically add it.

add sun68k for sun2/sun3.  tested on about 12 platforms.

there may be more failures to figure out but this should make
them all special cases rather than always expected cases.

fortunately, most builds don't see to hit these issues for
reasons i haven't determined yet.
2019-03-12 10:07:49 +00:00
mrg f4e2645dc0 - build and install libvdpau and x86 and evbarm.
- add khrplatform.h for mesa_ver=18 platforms.

need to enable libvdpau.pc generation (needs special rules)


this mostly comes from maya in the first one, and a small part
of the second:

commit 48eb746983a5a7967fba221e7b167808af36f44a
Author: Maya Rashish <maya@NetBSD.org>
Date:   Sun Feb 24 09:31:22 2019 +0200

    More of vdpau. Cogs spin.

commit d9fbba8f61a43648d32f160c5fa62626788566ff
Author: Maya Rashish <maya@NetBSD.org>
Date:   Sat Feb 23 22:36:37 2019 +0200

    Adjust for MesaLib 18.

    Build llvmpipe driver on x86 (the driver itself is x86-only).
    build llvm on all x86, even on GCC builds.
    galahad driver removed (upstream).
    Don't build mesa 7 at all.
2019-03-10 11:18:02 +00:00
maya 614738f57c Install more libdrm nouveau headers.
These will be used by mesa 18.
2019-03-03 17:52:32 +00:00
mrg aa60f6a327 add ./usr/include/ofppc for ofppc builds.
(how many more builds will i find like this?  the end result
is that i think we should generate the ./usr/include/$MACHINE
entry, i think, but i have to survey many ports.)
2019-03-01 04:39:37 +00:00
rin 0a91477ac0 Add ./usr/include/dev/spi 2019-02-24 02:29:09 +00:00
mlelstv 975ce0ba8d Add userland driver to spi framework.
Previously spi would configure the controller to use the lowest speed of
all connected devices since the kernel started and to fail attempted mode
changes. This is now improved to keep individual modes and speeds for each
slave and to reconfigure the controller as necessary for each transfer.

Added man page for spi(9).
2019-02-23 10:43:25 +00:00
kamil 0fe7e51662 Add KCOV - kernel code coverage tracing device
The KCOV driver implements collection of code coverage inside the kernel.
It can be enabled on a per process basis from userland, allowing the kernel
program counter to be collected during syscalls triggered by the same
process.

The device is oriented towards kernel fuzzers, in particular syzkaller.

Currently the only supported coverage type is -fsanitize-coverage=trace-pc.

The KCOV driver was initially developed in Linux. A driver based on the
same concept was then implemented in FreeBSD and OpenBSD.

Documentation is borrowed from OpenBSD and ATF tests from FreeBSD.

This patch has been prepared by Siddharth Muralee, improved by <maxv>
and polished by myself before importing into the mainline tree.

All ATF tests pass.
2019-02-23 03:10:05 +00:00
sevan 4d4f75cea8 Build the UP & SMP kernels for G5s to ease testing.
Currently these kernels have to be netbooted directly from Open Firmware.
Warning: SMP kernel still has issues.
2019-02-19 23:46:33 +00:00
rin 2f668af971 Belatedly add debugging symbols for t_atomic_*. 2019-02-18 00:42:54 +00:00
isaki ecae8bc568 Add ATF tests for atomic_ops(3). 2019-02-17 12:24:17 +00:00
mrg e5f4a8fa1d ensure that all include dirs are created before make includes runs.
separate the compat vs per-arch -ness of the mtree lists.  merge the
mips64 mtree files into a single file.
2019-02-17 05:29:08 +00:00
mrg 1892f84f2f separate out the arch-specific and compat-specific subdirs.
put compat stuff in NetBSD.compat.$MACHINE_ARCH, and normal
stuff in NetBSD.dist.$MACHINE/MACHINE_ARCH, etc.

probably need at at more files for sh3, mips, ppc, sparc,
m68k, arm, ia64, etc., as every port has port- or arch-
specific header subdirectory.
2019-02-09 21:43:23 +00:00
mrg a030aaf208 move ./usr/include/dev/iscsi into NetBSD.dist.iscsi that is only
included if MKISCSI != no.
2019-02-09 02:04:19 +00:00
mrg cd2fa45002 create i386 specific include directories. 2019-02-09 00:15:28 +00:00
mrg 6b8fbde2b5 add missing ./usr/include/xen 2019-02-08 23:27:14 +00:00
mrg 0d5104591d add final missing directory from /usr/include:
./usr/include/netmpls
2019-02-08 08:51:42 +00:00
mrg d67c719a5f add two more missing subdirs:
./usr/include/dev/pud
  ./usr/include/dev/putter
2019-02-08 08:22:09 +00:00
mrg b5f0f6a619 add missing ./usr/include/dev/iscsi. 2019-02-08 06:08:20 +00:00
mrg 1e1783ce5a add missing ./usr/include/dev/hdmicec 2019-02-05 06:11:29 +00:00
mrg 170093fa87 add missing ./usr/include/dev/hdaudio (base) and ./usr/include/dev/nvmm,
./usr/include/dev/nvmm/x86 (amd64).

(perhaps we should stop 'make includes' from creating the target directory
for normal builds as this leads to mtree inconsistencies.)
2019-02-04 04:45:48 +00:00
mrg 8f90c98b49 create include/dev/dm here instead of elsewhere, where it may fail 2019-02-04 03:26:53 +00:00
mrg 2d1f11de34 - add new entries of gcc=7 and libgomp, libasan, liblsan, libstdc++, libubsan
- add missing header files fpr gcc=7
- add some missing gcc=5 obsolete entries
- create ./usr/include/dev/bluetooth in mtree not make, and move it into the
  base set where all other directories are.
2019-02-02 22:39:32 +00:00
maxv 65d06f3f0e Remove the satlink driver. It was disabled everywhere, had no man page and
no use either. Spotted by thorpej in PR/21345, ok christos.
2019-01-27 08:53:28 +00:00
skrll 2922428b48 G/C VEXPRESS_A15 2019-01-20 10:50:06 +00:00
skrll 1521ad8a22 Another kernel bites te dust.
Remove ODROID-C1 as it is now replaced by GENERIC. Thanks jmcneill.
2019-01-20 10:18:03 +00:00
mrg ea47ee7d4a add basic gcc-7 support in sets lists and filesystem. mips gained
a header.  assumes it's otherwise mostly the same as gcc-7.
2019-01-19 13:06:50 +00:00
roy 08c8b11310 Setup default wpa_supplicant flags so that it:
* Writes diagnostics to syslog
  * Enables interface matching to hotplug wireless interfaces
  * Uses /etc/wpa_supplicant.conf
2019-01-12 17:38:36 +00:00
roy a4b9a5dd90 Install /etc/wpa_supplicant.conf 2019-01-12 17:25:09 +00:00
roy dd916c1e0e Add a default wpa_supplicant.conf which allows wpa_cli(8) to configure
wpa_supplicant(8).
2019-01-12 16:51:54 +00:00
christos 1761a60c58 sync with most recent (no changes) 2019-01-05 21:47:40 +00:00
christos d8993e22ce regen 2019-01-03 17:30:06 +00:00
maya 9cd3ccd06c Revert installing llvm headers. 2019-01-01 18:46:03 +00:00
maya 613a39df76 Install most of the llvm headers.
This is missing some generated files, llvm/include/IR/*.inc
2018-12-31 19:33:02 +00:00
plunky 1b44035b06 remove lwresd as now obsolete 2018-12-24 08:31:08 +00:00
jakllsch 1192b45e7e Add /usr/tests/lib/libnvmm and related debug paths to the directory list. 2018-12-23 15:43:42 +00:00
maxv 9a1e316930 Add /dev/nvmm. 2018-12-23 12:18:30 +00:00
maxv 43c9320743 Remove compat_svr4 and compat_svr4_32, as discussed on tech-kern@ recently,
but also as discussed several times in the past.
2018-12-19 13:57:44 +00:00
jmcneill 56c7646905 add tprof 2018-12-15 01:02:58 +00:00
macallan ddba26defe make iic* and more pci* nodes 2018-12-14 23:03:29 +00:00
msaitoh 5ed77d2b40 Add tprof 2018-11-27 14:55:56 +00:00
scole 061a76feb8 install kernel for ppc601 floppies and iso 2018-11-12 20:07:47 +00:00
abs 5b096803d3 Install the sample slip.login to share/examples/slip/slip.login 2018-11-09 21:33:50 +00:00
maxv f3a4baf748 Add NVMM - for NetBSD Virtual Machine Monitor -, a kernel driver that
provides support for hardware-accelerated virtualization on NetBSD.

It is made of an MI frontend, to which MD backends can be plugged. One
MD backend is implemented, x86-SVM, for x86 AMD CPUs.

We install

	/usr/include/dev/nvmm/nvmm.h
	/usr/include/dev/nvmm/nvmm_ioctl.h
	/usr/include/dev/nvmm/{arch}/nvmm_{arch}.h

And the kernel module. For now, the only architecture where we do that
is amd64 (arch=x86).

NVMM is not enabled by default in amd64-GENERIC, but is instead easily
modloadable.

Sent to tech-kern@ a month ago. Validated with kASan, and optimized
with tprof.
2018-11-07 07:43:07 +00:00
skrll eeb96914b4 Match the right MACHINE_ARCHes for GENERIC. 2018-11-05 21:34:33 +00:00
skrll ec787da840 Only add GENERIC to earmv6 and earmv7 builds 2018-11-04 21:41:12 +00:00
maxv 8f30df5465 Add tprof in MAKEDEV.tmpl, and regen MAKEDEV.8. 2018-11-04 12:48:01 +00:00
skrll d71785d000 Add GENERIC to big-endian KERNEL_SETS 2018-11-01 18:23:25 +00:00
skrll 76478902d7 Use the GENERIC kernel where possible in armv7.img and remove the old
kernels from the bulid for SUNXI and TEGRA.

While I'm here disable *_INSTALL kernel builds for boards supported by
armv7.img
2018-11-01 11:05:24 +00:00
mrg 0050db9471 only flush routes in stop routine if flushroutes is true, same as
the start up.
2018-10-23 09:25:33 +00:00
skrll c4336712ef Sort 2018-10-21 07:08:40 +00:00