summaryrefslogtreecommitdiff
path: root/sys/conf
AgeCommit message (Collapse)Author
2023-06-03adapt to ${CC_WNO_IMPLICIT_FALLTHROUGH}lukem
Use ${CC_WNO_IMPLICIT_FALLTHROUGH} instead of the older style more complex expressions.
2023-06-03adapt to ${CC_WNO_ADDRESS_OF_PACKED_MEMBER}lukem
Simplify CWARNFLAGS to use ${CC_WNO_ADDRESS_OF_PACKED_MEMBER} which works for both clang and gcc, and remove compiler-specific equivalents.
2023-06-03bsd.own.mk: rename GCC_NO_* to CC_WNO_*lukem
Rename compiler-warning-disable variables from GCC_NO_warning to CC_WNO_warning where warning is the full warning name as used by the compiler. GCC_NO_IMPLICIT_FALLTHRU is CC_WNO_IMPLICIT_FALLTHROUGH Using the convention CC_compilerflag, where compilerflag is based on the full compiler flag name.
2023-06-03bsd.own.mk: rename to CC_WNO_ADDRESS_OF_PACKED_MEMBERlukem
Provide a single variable CC_WNO_ADDRESS_OF_PACKED_MEMBER with options for both clang and gcc, to replace CLANG_NO_ADDR_OF_PACKED_MEMBER CC_NO_ADDR_OF_PACKED_MEMBER GCC_NO_ADDR_OF_PACKED_MEMBER Using the convention CC_compilerflag, where compilerflag is based on the full compiler flag name.
2023-04-16Separate DesignWare watchdog driver and FDT glue.jmcneill
2023-01-01Welcome to 2023. Wrap lines so the years fit in to 80 columns withsimonb
a leading kernel log timestamp.
2022-12-28remove lingering strip(4) remnantsjakllsch
2022-12-19Create compat_100 module infrastructure now that we have branchedpgoyette
for NetBSD-10
2022-12-03Split the BMP280 / BME280 driver into common code and create I2C andbrad
SPI attachments.
2022-11-19assym.mk: Fix assym.d generationyamt
It seems that the genassym/mkdep output has been changed. This commit adapts the assym.d generation rule to the new output.
2022-11-05Add driver for Cadence I2C controller.jmcneill
2022-10-28MI PMAP EFI_RUNTIME supportskrll
2022-08-27sys/conf/link.mk: clean uprillig
The modifier ':C' did not need the modifier 'g', as there couldn't ever be more than one match per word. Using the modifier ':from=to' is easier to read. Align the variable assignments. There was no point in having 3 different alignment styles in the same file. Remove underscore from .for iteration variable, as it is not needed. No functional change.
2022-08-27sys/conf: fix typo in commentrillig
2022-08-27sys: document how to run lint on the kernel code (experimental)rillig
2022-08-12viocon(4): New virtio tty driver imported from OpenBSD.riastradh
viocon* at virtio? /dev/ttyVI?? Tested under qemu with: qemu-system-aarch64 ... \ -device virtio-serial \ -chardev socket,path=/tmp/ttyVI00,server=on,wait=off,id=ttyVI00 \ -device virtconsole,chardev=ttyVI00,name=org.NetBSD.dev.ttyVI00 \ ... I updated MAKEDEV.conf to create /dev/ttyVI?? on all ports where it looks likely to work based on: (a) having pci or a non-pci virtio attachment, (b) `qemu-system-$ARCH -M ?' mentioned something resembling the port, and (c) `qemu-system-$ARCH -device virtio-serial' launched without complaining about the virtio-serial device. (Criterion (c) excluded sparc and sparc64.)
2022-08-03sys: Build kernel with -Wno-type-limits.riastradh
The type-limits warning is actively harmful because it discourages writing safe portable overflow detection logic which happens, on some architectures, to be dead code.
2022-07-24use defparam; noted by tnn@.mrg
2022-07-23make MAXLWP a real option that triggers rebuilds properly.mrg
2022-07-20drm: Use CPPFLAGS.drmkms in all local drm drivers too.riastradh
This way we don't pollute the NetBSD kernel namespace with all the Linux compat shim definitions needed to build drm, except for the local drm drivers that need the API.
2022-06-05bwfm(4) uses firmload.rjs
2022-05-07Add MODULAR_DEFAULT_VERBOSE option.rin
2022-04-06Keep UDF commented out by defaultreinoud
2022-04-06UDF has been around for more than a decade in the kernel. Now with areinoud
fsck_udf(8) it is not making sense to keep it calling `experimental'.
2022-03-24Add initial support for Intel GPIO chipsmanu
2022-02-16sys: Include files.acpica unconditionally.riastradh
This way acpica.h always exists unconditionally, so MI code can be conditional on NACPICA. It is not great to have such conditionals, but it's better to have #include "acpica.h" #ifdef NACPICA > 0 than to have #if defined(__i386__) || defined(__x86_64__) || defined(__arm__) #include "acpica.h" #endif #ifdef NACPICA > 0 and we can still grep for NACPICA to find places that could be factored better.
2022-01-17Re-factor and overhaul the "mcp23s17gpio" driver as "mcpgpio", andthorpej
add support for 8-bit and I2C variants of the chip: - MCP23008 / MCP23S08: 8-bit (I2C / SPI) - MCP23017 / MCP23S17: 16-bit (I2C / SPI) - MCP23018 / MCP23S18: 16-bit (I2C / SPI), open-drain outputs The MCP23x17 and MCP23x18 are essentially identical, software-wise; we merely report different GPIO pin capabilities (no push-pull output for MCP23x18). Also, remove the tri-state capability that was previously advertised by the old version of this driver; these chips have no way to put the pin into a HI-Z mode. All 3 I2C versions are supported, but the SPI front-end still only supports the MCP23S17 for now (SPI autoconfiguration needs an overhaul). mcp23s17gpio(4) remains present as a link to the new mcpgpio(4) man page. XXX Still to-do: FDT integration, interrupt suppoort. (File missed in prior commit.)
2022-01-06Fix for systems that override SYSTEM_LD_TAILchristos
2022-01-04use a function "runit" to echo and execute avoiding set -x.christos
2022-01-03Add driver for DesignWare Ethernet Quality-of-Service controller.jmcneill
2022-01-01s/sytem/system/msaitoh
2022-01-01Welcome to 2022!jnemeth
2021-12-30- With DEBUG=-g (which is also set when we build CTF) we build netbsd.gdb *and*christos
netbsd-${KERNEL_CONFIG}.debug because it is not worth having two sets of rules (one that builds just netbsd.gdb and one that builds both netbsd.gdb and netbsd-${KERNEL_CONFIG}.debug. This maintains compatibility building netbsd.gdb when DEBUG=-g - When either MKDEBUGKERNEL=yes or MKDEBUG=tes we set DEBUG=-g if DEBUG was not set. - We only make a debuginstall rule to install netbsd-${KERNEL_CONFIG}.debug if MKDEBUG=yes
2021-12-30forgot one KERNEL_BUILD (Tobias Nygren)christos
2021-12-30Use the tail of KERNEL_BUILD since it can be a full path.christos
2021-12-30Add ${_MKTARGET_INSTALL}christos
2021-12-30use ${INSTALL_FILE} so that unpriv builds work.christos
2021-12-29Enable split-debug files for kernels. Enabled by default with MKDEBUG=yes.christos
2021-12-20Rename:christos
MKKDEBUG -> MKDEBUGKERNEL MKTOOLSDEBUG -> MKDEBUGTOOLS while keeping compatibility with the old names. Add missing documentation. Now all debugging tunables are prefixed with MKDEBUG.
2021-12-07A driver and user land utility for the Sparkfun Serial Controlled Motorbrad
Driver module as illustrated here: https://www.sparkfun.com/products/13911 A SCMD module is a ARM SOC simular to a Arduino in front of a motor driver chip. The single SCMD module can control two motors and up to 16 additional modules can be chained together using an internal I2C bus. One can interface with the SCMD using tty uart commands, SPI or I2C. The driver in this commit adds a kernel driver for the I2C and SPI interfaces. The command line utility provides a set of convenience commands that support most of the functions of the SCMD and is able to use the tty uart mode, SPI user land or the included kernel driver in a uniform manor. The use of the SCMD module is mostly for small robots and the like, but it can control anything that is controllable by voltage.
2021-11-19ahcisata(4): Introduce AHCI_QUIRK_EXTRA_DELAY quirk for devices thatrin
need extra delays as done by AHCISATA_EXTRA_DELAY option. Enable this quirk for "C600/X79 AHCI". Also add commented out quirk entries for "Bay Trail SATA (AHCI)" and "Mobile AHCI SATA Controller", for which non-reproducible failures worked around by extra delays have been reported. 500 ms of delays inserted by these option/quirk may be too much. Add AHCISATA_EXTRA_DELAY_MS option to adjust number of delays in ms, like: ---- options AHCISATA_EXTRA_DELAY_MS=200 ---- Thanks prlw1@ and jun@ for testing!
2021-11-06Driver for the Sensirion SHT30/SHT31/SHT35 temperature and humiditybrad
sensor such as: https://www.adafruit.com/product/2857 This is a higher priced sensor with a lot of features, including the ability to do sub-second periodic updates. The driver supports everything about the sensor except for the alert pin.
2021-10-27revert previous: ↵ryo
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-25In some arch, _mcount() would be called recursively when built with COPTS=-O0.ryo
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-11add defflag for AHCISATA_EXTRA_DELAYjmcneill
2021-10-11defparam NMBCLUSTERS_MAX.msaitoh
2021-10-10efi: Add /dev/efi character devicejmcneill
Introduce a /dev/efi character device that provides a means for accessing UEFI RT variable services from userland. Compatible with the FreeBSD ioctl interface for ease of porting their libefivar and associated tools. The ioctl interface is defined in sys/efiio.h. To enable support for this on an arch, the kernel needs `pseudo-device efi` and the MD EFI implementation needs to register its backend by calling efi_ops_register(). This commit includes an implementation for Arm.
2021-09-11Add missing double p and d for stopped and overriden accordingly.andvar
Fix few more typos along the way, mainly in copy-pasted comments.
2021-07-24smbios: Add character device for accessing SMBIOS tablesjmcneill
The /dev/smbios character device gives an aperture into physical memory that allows read-only access to the SMBIOS header and tables.
2021-07-21Separate MI smbios interface from MD specific code.jmcneill