Commit Graph

1783 Commits

Author SHA1 Message Date
christos
86a8ba0e86 use -@ like bsd.klinks.mk 2017-12-06 02:08:03 +00:00
christos
604ff9ba7a Use similar restrictions to bsd.klinks.mk for .BEGIN rules. 2017-12-05 02:57:37 +00:00
martin
9f8ff67109 We use .BEGIN for our own cleanup and won't ever need DTS support - so
avoid inclusion of dts.mk by defining _SKIP_DTS
2017-12-04 09:44:33 +00:00
christos
4dd927b01c handle absolute $S paths; we want to add ../ if they are relative only. 2017-12-03 17:07:18 +00:00
christos
fb3b90b27d Add more complexity because of the path mess in the dts files. Requested
by jmcneill@
2017-12-03 16:36:05 +00:00
jmcneill
fb651b612c Add driver for QEMU Firmware Configuration device.
This interface allows the host to pass various data items and files to
the guest OS.
2017-11-25 16:31:03 +00:00
christos
accd0839b6 Catch up with the new config version. 2017-11-18 18:44:55 +00:00
jmcneill
6d494689b1 Add driver for Broadcom 802.11a/b/g/n/ac USB wireless devices, based on
the OpenBSD bwfm(4) driver.
2017-10-19 23:58:41 +00:00
kre
267cd2fc52 (untested) attempt to fix b5 evbarm-earmv7hf build - please revert if this
is incorrect, or harms anything else...
2017-10-09 10:28:33 +00:00
mrg
95772a8862 clean up COMPAT_* options for native netbsd code:
- new series of files that are useful for saying "i want everything
  since netbsd 1.4", etc.
- use the fact COMPAT_* options have future dependancies to remove
  many redundant options.

removes about 3000 lines total across kernel configuration files.
tested about 30 random kernels in the changed list.
2017-09-14 07:58:38 +00:00
sevan
684872c792 Remove support for VERIFIED_EXEC_FP_RMD160, VERIFIED_EXEC_FP_SHA1, and VERIFIED_EXEC_FP_MD5 options.
These algorithms are either broken or on their way to being broken.

Discussed on tech-security
http://mail-index.netbsd.org/tech-security/2017/08/21/msg000936.html

ok riastradh
2017-09-13 22:24:42 +00:00
jmcneill
30f9e1f2d2 Add support for building dts files from multiple paths, idea from christos 2017-09-07 21:22:19 +00:00
christos
43072a1442 do dts depend processing in two passes, one for /include/ and one for #include 2017-07-15 15:53:48 +00:00
christos
1f3e5b1b5c Move the dts rule to a separate file and add dependencies handling. 2017-07-15 15:20:52 +00:00
jmcneill
1b047987b1 Add support for dts files outside of external/gpl2. 2017-07-13 01:17:03 +00:00
jmcneill
a7a3e30ec7 Add a helper for exposing LED controls via sysctl. 2017-07-08 00:54:37 +00:00
flxd
50e68e123b spelling (DEC called it "TURBOchannel") 2017-06-22 16:46:52 +00:00
christos
20db6eee6d Assign DTB files to a variable so we can make -V DTB 2017-06-17 17:08:49 +00:00
jmcneill
65c281d231 bump required config version for multiline makeoptions feature 2017-06-16 21:36:35 +00:00
jmcneill
77f306ac09 Add support for building DTB files during kernel build, from christos. 2017-06-15 21:41:01 +00:00
pgoyette
5b782bb9ef Remove the 'needs-flag' from spkr.c - it's not needed by anything. 2017-06-11 21:45:28 +00:00
nat
b377bbb391 New device wsbell - allows for a console beep for non pckbds (usb etc).
Works for platforms without pcppi - can work with spkr at audio and spkr
at pcppi.

To use add the following to your kernel config:
wsbell* at spkr? console?

Ok pgoyette@.
2017-06-11 03:55:56 +00:00
jmcneill
25cf81196f Add driver for ARM PrimeCell PL031 (RTC) Real Time Clock. 2017-06-08 21:00:43 +00:00
jmcneill
fa4e708e32 Add driver for ARM PrimeCell Advanced Audio CODEC interface (PL041).
Don't expect this driver to work on real hardware, but QEMU emulates it.
2017-06-08 10:02:39 +00:00
jmcneill
08e913c093 Add driver for ARM PrimeCell PL050 (KMI) PS2 keyboard/mouse interface 2017-06-03 17:03:36 +00:00
bouyer
6e4cb2b9ab merge the bouyer-socketcan branch to HEAD.
CAN stands for Controller Area Network, a broadcast network used
in automation and automotive fields. For example, the NMEA2000 standard
developped for marine devices uses a CAN network as the link layer.

This is an implementation of the linux socketcan API:
https://www.kernel.org/doc/Documentation/networking/can.txt
you can also see can(4).

This adds a new socket family (AF_CAN) and protocol (PF_CAN),
as well as the canconfig(8) utility, used to set timing parameter of
CAN hardware. Also inclued is a driver for the CAN controller
found in the allwinner A20 SoC (I tested it with an Olimex lime2 board,
connected with PIC18-based CAN devices).

There is also the canloop(4) pseudo-device, which allows to use
the socketcan API without CAN hardware.

At this time the CANFD part of the linux socketcan API is not implemented.
Error frames are not implemented either. But I could get the cansend and
canreceive utilities from the canutils package to build and run with minimal
changes. tcpudmp(8) can also be used to record frames, which can be
decoded with etherreal.
2017-05-27 21:02:54 +00:00
christos
6f3dbe105c Fix typo 2017-04-09 14:52:14 +00:00
christos
169a1fef7d Add makefile snippet for vers.c building. 2017-04-08 19:53:54 +00:00
christos
15545435eb - modernize: use getopts/usage/true/false variables
- if ${MKREPRO_TIMESTAMP} is used, synthesize all the information, instead
  of eliding it.
2017-04-08 18:24:09 +00:00
rin
7e8d492b8f Add DKWEDGE_METHOD_RDB option, which is Amiga Rigid Disk Block (RDB)
partitioning detection method for dk(4).
2017-02-26 11:56:49 +00:00
knakahara
939a415a7d add l2tp(4) L2TPv3 interface.
originally implemented by IIJ SEIL team.
2017-02-16 08:12:43 +00:00
macallan
a0e93c0528 chipsfb needs glyphcache now 2017-02-02 19:50:35 +00:00
joerg
f9c2736326 Disable a couple of warnings until further investigation. 2017-01-11 12:19:43 +00:00
christos
6be7068cf1 Move to ssp.c suggested by uebayasi@ 2017-01-08 17:10:35 +00:00
christos
65ce4b4f2f Add COPTS for xhci.c, since the do_command_locked causes a spurious stack
proector warning.
2017-01-08 05:02:08 +00:00
christos
f83bb9fcab Collect a list of kernel swap files to be removed (Yorick Hardy) 2017-01-04 21:37:46 +00:00
christos
393981f1b2 match the M* and N* targets. 2017-01-04 19:55:06 +00:00
christos
772001de84 PR/51772: Yorick Hardy: Don't hard-code "netbsd", use ${.TARGET} consistently. 2017-01-04 15:43:04 +00:00
snj
f9c4b1fa54 goodbye 2016, hello 2017! 2017-01-01 06:56:59 +00:00
pgoyette
7f0851cee1 Add a BIOHIST option. As mentioned on tech-kern. 2016-12-26 23:12:33 +00:00
christos
0b335da6c0 Restructure speaker devices so that there can be multiple of them, and have
proper softc's.
2016-12-13 20:20:34 +00:00
nat
03783bb56a Add a synthesized pc beeper and keyboard bell for platforms with an audio
device.
2016-12-08 11:31:08 +00:00
pgoyette
a60b99094c * Split sys/kern/sys_process.c into three parts:
1 - ptrace(2) syscall for native emulation
        2 - common ptrace(2) syscall code (shared with compat_netbsd32)
        3 - support routines that are shared with PROCFS and/or KTRACE

* Add module glue for #1 and #2.  Both modules will be built-in to the
  kernel if "options PTRACE" is included in the config file (this is
  the default, defined in sys/conf/std).

* Mark the ptrace(2) syscall as modular in syscalls.master (generated
  files will be committed shortly).

* Conditionalize all remaining portions of PTRACE code on a new kernel
  option PTRACE_HOOKS.

XXX Instead of PROCFS depending on 'options PTRACE', we should probably
    just add a procfs attribute to the sys/kern/sys_process.c file's
    entry in files.kern, and add PROCFS to the "#if defineds" for
    process_domem().  It's really confusing to have two different ways
    of requiring this file.
2016-11-02 00:11:59 +00:00
pgoyette
1adbabf156 Update dependencies for COMPAT_LINUX32 to include COMPAT_NETBSD32
Without this, an attempt to build a kernel with COMPAT_LINUX32 but without
COMPAT_NETBSD32 will fail during the execution of genassym, and the error
messages are not very helpful.

With this change, config(1) will automatically (and silently) select/add
COMPAT_NETBSD32 to the configuration.  It might be better if config(1)
were to issue an appropriate diagnostic, but that is a change for some
future day.
2016-11-01 22:54:33 +00:00
christos
e6da8e6442 sppp is not a pseudo-device 2016-09-09 21:10:01 +00:00
nonaka
4a15838ffa Fix to cannnot be opened a nvme(4) namespace device file. 2016-09-08 15:00:08 +00:00
maxv
42e304b16d Remove the last references to KMEMSTATS. 2016-08-19 18:08:50 +00:00
christos
5a7020b9b6 defopt PPPOE_DEBUG kill unknown sessions 2016-08-11 15:16:54 +00:00
christos
520827be3b rename ifmpls to mpls, so we don't have if_ifmpls... 2016-08-07 10:44:04 +00:00
skrll
70699ce203 Fix UVMHIST builds for kernels that don't include usb 2016-06-23 07:32:12 +00:00