Commit Graph

391 Commits

Author SHA1 Message Date
Frederik Rietdijk
e4cd7a48f3 Merge staging-next into staging 2020-06-19 10:49:25 +02:00
Linus Heckemann
5d58db7a47
Merge pull request #90135 from lheckemann/linux-force-feedback
linux: enable force feedback support in HID drivers
2020-06-18 17:18:11 +02:00
Frederik Rietdijk
32e827b848 Merge staging-next into staging 2020-06-18 09:02:05 +02:00
Jörg Thalheim
df54fe60ba
Merge pull request #87554 from emilazy/add-aio-to-kconfig
linux: explicitly enable AIO
2020-06-17 08:46:30 +01:00
Frederik Rietdijk
52de5f2430 Merge staging-next into staging 2020-06-16 18:17:05 +02:00
Tim Steinbach
5953625fa5
linux: 5.7-rc6 -> 5.8-rc1 2020-06-15 11:10:17 -04:00
Rouven Czerwinski
407a3d4c5e linux config: SND_HDA_CODEC_CA0132_DSP for <5.7
The default enable for SND_HDA_CODEC_CA0132_DSP was already merged into
5.7-rc1 [1], which means we can adjust the whenOlder to 5.7.

[1]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=652bb5d8df4b3a79ed350db35cda12637e63efa7
2020-06-15 10:14:59 +02:00
Frederik Rietdijk
1523382160 Merge master into staging-next 2020-06-13 11:02:21 +02:00
Vladimír Čunát
b23c1abe93
linux: fix kernel config options for i686
Even the default pkgsi686Linux.linux was broken.
2020-06-12 08:52:09 +02:00
Linus Heckemann
9181f79289 linux: enable force feedback support in HID drivers 2020-06-11 12:41:59 +02:00
Vladimír Čunát
34d58cb839
Merge branch 'staging' into staging-next
This commit has already been partially rebuilt in
https://hydra.nixos.org/eval/1592635
In particular, the severe security fix for gnutls is contained.
2020-06-10 16:18:40 +02:00
Vladimír Čunát
bbe71613b6
linux: fix kernel config options for 5.7 2020-06-10 14:07:15 +02:00
Ricardo M. Correia
9dd9bc7bcc linux: fix kernel config options
Some of the options didn't have correct kernel version constraints,
others had been removed or made optional unnecessarily in #84032.
2020-06-10 13:17:17 +02:00
Anders Kaseorg
0f2e569505 linux: CONFIG_MOUSE_ELAN_I2C_SMBUS=y
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2020-06-04 18:22:23 +02:00
Florian Klink
cfb4d0dfe3
Merge pull request #84032 from teto/fix_kernel_merge
Fix kernel configuration merge
2020-05-22 13:32:22 +02:00
Puck Meerburg
2b5d59cbdc linux: Enable fbcon deferred takeover when possible
This config value ensures that when booting through e.g. UEFI, the
existing framebuffer contents stay put until the first character is
printed. As the default NixOS stage-1 immediately outputs a welcome
message on init, this does not impact it, but it will allow for a cleaner boot when
configured as such.
2020-05-17 17:43:34 +00:00
Emily
4688ec0eb2 linux: explicitly enable AIO
This is disabled by default in the linux-hardened patchset, but is
required by e.g. LVM.

Fixes #87260.
2020-05-10 23:23:38 +01:00
Frederik Rietdijk
9875bbae75 Merge master into staging-next 2020-05-05 19:51:09 +02:00
Vincent Breitmoser
bdd2d3ccb2 linux: CONFIG_HIDRAW=y 2020-05-02 17:43:43 +02:00
Luka Blaskovic
6fc9fd53db linux config: enable Sound Open Firmware support 2020-04-29 07:31:49 +00:00
Frederik Rietdijk
803b3d296c Merge staging-next into staging 2020-04-21 08:29:51 +02:00
Yegor Timoshenko
6f1165a0cb
Merge pull request #84522 from emilazy/add-linux-hardened-patches
linux_*_hardened: use linux-hardened patch set
2020-04-19 20:01:35 +03:00
Emily
3d01e802bd linux: explicitly enable SYSVIPC
The linux-hardened patch set removes this default, probably because of
its original focus on Android kernel hardening.
2020-04-17 16:12:29 +01:00
Niklas Hambüchen
f16ae2da3e linux: Enable CONFIG_NET_DROP_MONITOR by default.
Needed for subscribing to dropped packets (e.g. via `dropwatch`).
2020-04-14 20:07:51 +02:00
Matthieu Coudron
bc6b37e967 fixup! kernel: fix errors in configuration 2020-04-11 14:04:25 +02:00
Eelco Dolstra
50913242ab
Merge pull request #81500 from primeos/tcp-cong-switch-to-cubic
linux config: Set TCP_CONG_CUBIC=yes to restore the default
2020-04-06 17:11:31 +02:00
Matthieu Coudron
121b17e1ac kernel: fix errors in configuration
With the fix in kernel configuration merging, some kernel configuration items
marked as mandatory now correctly trigger an error when unused (while they
previously were unused).
2020-04-01 22:28:53 +02:00
Rouven Czerwinski
62cdbd678c linux config: enable SND CA0132 DSP loading
Since we select everything as a module, snd_hda_codec_ca0132 is built as
well. DSP loading is not enabled by default, but without it the
soundcard produces timeouts within ALSA and does not emit sound.
Explicitly enable the firmware loading to ensure Soundblaster
Z/Zx/ZxR/Recon devices can be used with NixOS.
The patch to enable this by default in the kernel is staged for 5.8.
2020-03-29 21:11:17 +02:00
Silvan Mosberger
eff447b321
Merge pull request #70157 from teto/lib_kernel
Add lib.kernel
2020-03-12 23:53:42 +01:00
Michael Weiss
60f4345e37
linux config: Set TCP_CONG_CUBIC=yes to restore the default
This will switch the default TCP congestion control algorithm from
new Reno to CUBIC. CUBIC is the default since Linux kernel 2.6.19
(see 597811ec167fa) and most (all?) distributions keep this default
(e.g. Debian and Ubuntu). On NixOS the default was still new Reno
because generate-config.pl changes TCP_CONG_CUBIC from y to m (since we
try to build everything as a module by default).

To check the active and available algorithms:
$ sysctl net.ipv4.tcp_congestion_control
net.ipv4.tcp_congestion_control = cubic
$ sysctl net.ipv4.tcp_available_congestion_control
net.ipv4.tcp_available_congestion_control = cubic reno

Note: E.g. x86_64_defconfig sets TCP_CONG_CUBIC=y indirectly via
CONFIG_TCP_CONG_ADVANCED=y (but CUBIC is also the default if set to no,
see net/ipv4/Kconfig).
2020-03-02 10:57:47 +01:00
Félix Baylac-Jacqué
6896b1cb1d
linux: add policy routing config flag for aarch64
CONFIG_IP_MULTIPLE_TABLES is part of the default x86 kernel config but
absent from the Aarch64 one. Adding explicitely this flag together
with its dependency IP_ADVANCED_ROUTER.

Both of these config flags are needed to use the routing policy
facilities.
2020-03-01 20:25:44 +01:00
Vladimír Čunát
8130f3c1c2
linux config: revert BPF_JIT_ALWAYS_ON=yes
This reverts a small bit of af808bd82 from PR #73328.  Fixes #79304:
tests.installer.simpleUefiSystemdBoot.x86_64-linux

I still don't know why the regression happened, but this feature doesn't
seem important enough to block channel now, though it reportedly helps
to mitigate spectre 2 attack CVE-2017-5715.
2020-02-09 08:22:00 +01:00
misuzu
149737a2a4 linux: Enable NVME_HWMON
This is available for 5.5+ and enables support for
NVMe drives temperature reporting
2020-02-03 19:08:45 +02:00
Lassulus
bc4921a584
Merge pull request #73328 from magenbluten/af_xdp
linux config: add support for xdp sockets and ebpf jit
2020-01-13 05:54:57 +01:00
Anthony Cowley
8a4603f9c4 linux: fix amdgpu memory mapping with kernel >= 5.3
These configuration options are needed for the ROCm GPU compute stack
on kernels >= 5.3.
2019-12-08 18:52:43 +01:00
Izorkin
928fdab4a1 linux: add in kernel 5.4 lockdown feature 2019-12-07 12:06:23 +01:00
Tim Steinbach
0e670a2e67
linux: Add CRYPTO_AEGIS128_SIMD for aarch64
See comments: 9b67ea9106
2019-11-28 09:21:06 -05:00
magenbluten
af808bd826 linux config: add support for xdp sockets and ebpf jit
xdp socket support (AF_XDP) is the new way of implementing high
performance networking on linux. on arch linux and debian this is
already enabled (checked via the links from the nixos manual).

moreover, these flags are suggested by the bpf documentation at cilium:

https://cilium.readthedocs.io/en/latest/bpf/#compiling-the-kernel

additionally the flag `BPF_JIT_ALWAYS_ON` on was suggested to help
spectre attack mitigations:

290af86629
2019-11-17 17:20:23 +01:00
Tim Steinbach
0973f67fd0
linux: Enable KEYBOARD_APPLESPI
This is available for 5.3+ and enables support for
Apple trackpads and keyboards

Closes #71552
2019-10-23 09:03:16 -04:00
Jörg Thalheim
334921ad31
Merge pull request #66841 from Izorkin/kernel-nftables
nftables: enable all features in kernel
2019-10-16 13:39:55 +01:00
Izorkin
c1fd98f626 nftables: enable all features 2019-10-15 19:19:43 +03:00
Jörg Thalheim
14a6713aef
linux: remove deprecated kernel config options
Our oldest kernel is 4.4. That's why we can remove configurations that only
applies to kernels older than that.
2019-10-14 11:43:18 +01:00
Matthieu Coudron
a4fe469d39 lib.kernel: scoped whenXXX helpers
whenAtLeast/whenBetween are made available in lib/kernel.nix but are now
scoped under whenXXX.
2019-10-01 16:09:07 +09:00
Matthieu Coudron
afa0e02d64 lib.kernel: make public
Remove the "version" parameter in order to make it more widely
available.
Starts making some kernel configuration helpers available.
The intent is to be able to better build and check the linux kernel
configuration.
2019-10-01 15:57:14 +09:00
Jörg Thalheim
827f8a33f7
Merge pull request #69388 from ivan/kernel-inet-diag
kernel/common-config: enable INET_{TCP,UDP,RAW}_DIAG and INET_DIAG_DESTROY
2019-09-26 08:50:54 +01:00
Ivan Kozik
6df3156696 kernel/common-config: enable INET_{TCP,UDP,RAW}_DIAG and INET_DIAG_DESTROY 2019-09-24 21:39:02 +00:00
Ivan Kozik
97cc421cdd kernel/common-config: enable SCHED_DEBUG 2019-09-24 20:29:04 +00:00
Jörg Thalheim
9dd99b7735
Merge pull request #67268 from michaelpj/imp/intel-rapl
kernel: set POWERCAP and INTEL_RAPL
2019-09-23 08:06:23 +01:00
Franz Pletz
471ba8e2e6
linux: build rtw88 module
Adds support for Realtek wireless/bluetooth cards found in some Lenovo
laptops. The old `r8822be` module was removed in favour of this one.
2019-09-10 02:00:15 +02:00
Tim Steinbach
6d6c3f66b0 linux: 5.2-rc7 -> 5.3-rc5 2019-09-09 14:25:31 -04:00
Samuel Dionne-Riel
667712abe4
Merge pull request #68312 from mat8913/patch-2
kernel: Enable X86_AMD_PLATFORM_DEVICE
2019-09-09 09:33:22 -04:00
Matthew Harm Bekkema
2e94b9853c
kernel: Enable X86_AMD_PLATFORM_DEVICE
This is needed to get the toupad working on my Acer Nitro laptop.
2019-09-09 00:22:27 +10:00
Cole Mickens
35bcacc226 linux-kernel: HID_BATTERY_STRENGTH=yes 2019-09-05 17:47:39 +02:00
Florian Klink
cb8d815b5b linux/kernel: enable QoS and/or fair queueing
This allows to set queueing disciplines different than a simple fifo,
like fq_codel, which is the default in systemd since quite some time.

NET_SCHED is already set in the kernels x86_64_defconfig, but not on
arm/aarch64, so let's set it here.
2019-09-01 02:37:09 +02:00
Michael Peyton Jones
299e6f07d2
kernel: set POWERCAP and INTEL_RAPL
These enable some power management settings. They are needed for [s-tui
to show power readings](https://github.com/amanusk/s-tui/issues/105).

The values chosen here match what Arch Linux has. In particular
the Intel specific code is loadable as a module rather than compiled in.
2019-08-22 18:11:50 +01:00
Fahad Sadah
0a5b8d9bf6 kernel config: CONFIG_DRM_DP_AUX_CHARDEV 2019-08-06 23:36:10 +01:00
Aaron Andersen
3d1905e3f5 linux/kernel: enable automatic cpu hotplug support 2019-07-23 06:23:56 -04:00
Samuel Dionne-Riel
7c819989f9
Merge pull request #63147 from samueldr/aarch64/graphics-fixes
aarch64: misc. graphical boot fixes
2019-06-24 14:53:01 -04:00
Samuel Dionne-Riel
adc62907a6 linux: Enables support for the Allwinner Display Engine 2.0 2019-06-15 14:26:20 -04:00
duck
4cd1dd5dc9
linux: enable config option for raw HID devices
This flag allows for things like Uninterruptable Power Supplies to work properly. See https://cateee.net/lkddb/web-lkddb/USB_HIDDEV.html for more information.
2019-06-14 23:15:12 +01:00
dsx
643de9b82c linux: Enable IPv6 support for IPVS (CONFIG_IP_VS_IPV6) 2019-06-08 08:23:48 +00:00
Frederik Rietdijk
d4464ff8fe Merge master into staging-next 2019-05-16 08:17:55 +02:00
Linus Heckemann
1d37727453
Merge pull request #61162 from lheckemann/kernel-preempt-voluntary
Kernel config: use PREEMPT_VOLUNTARY
2019-05-14 17:37:19 +02:00
Frederik Rietdijk
8abe5ee07e Merge master into staging-next 2019-05-14 10:23:13 +02:00
Linus Heckemann
e4c269813c kernel/common-config: PREEMPT -> PREEMPT_VOLUNTARY 2019-05-08 19:42:24 +02:00
Linus Heckemann
ac6337058a kernel/common-config: move criu to its own set
It was previously in the "test" set, which seemed an inappropriate
placement.
2019-05-08 19:40:39 +02:00
Ambroz Bizjak
c6934f347a kernel: Disable VirtualBox guest modules.
These break the modules from VirtualBox additions. Fixes issue https://github.com/NixOS/nixpkgs/issues/58127.
2019-05-04 21:14:30 +02:00
Alyssa Ross
58d0134da0
linux: set CONFIG_DRM_VMWGFX_FBCON y
Fixes https://github.com/NixOS/nixpkgs/issues/58070, and brings NixOS
into line with Ubuntu/Fedora/Arch/etc.

Tested that all kernels in Nixpkgs that build before this change build
after it.
2019-05-02 11:13:10 +00:00
Samuel Dionne-Riel
2f30b7924e
Merge pull request #57885 from acowley/hsa_amd
linux: Enable AMD's amdkfd kernel driver in >= 4.20
2019-04-02 16:51:30 -04:00
Tim Steinbach
9ba43c07cb
linux: 5.0-rc8 -> 5.1-rc2 2019-03-31 14:37:51 -04:00
Anthony Cowley
7d9d8874f5 linux: Enable AMD's amdkfd kernel driver in >= 4.20
The amdkfd driver was built (and loaded when support was detected)
without explicit configuration in kernels 4.17-4.19, but not in newer
kernels.
2019-03-17 22:28:25 -04:00
Austin Seipp
3a1f39e1de
kernel: enable pressure stall information on 4.20+
Closes #56207.

Signed-off-by: Austin Seipp <aseipp@pobox.com>
2019-02-22 12:47:37 -06:00
Dan Callahan
0ea8c6e3de
linux: Enable support for Self-Encrypting Drives
To quote block/Kconfig:

> Builds Logic for interfacing with Opal enabled controllers.
> Enabling this option enables users to setup/unlock/lock
> Locking ranges for SED devices using the Opal protocol.

Without `BLK_SED_OPAL`, it is impossible to resume from sleep when using
a locked self-encrypting drive.

This configuration option appeared in earlier kernels, but only reached
maturity in 4.14 according to discussion at:

- https://github.com/Drive-Trust-Alliance/sedutil/issues/90 and
- https://github.com/Drive-Trust-Alliance/sedutil/pull/190

This kernel option is enabled in the default kernels shipped with
Fedora, Debian, and other mainstream Linux distributions.
2019-02-21 12:14:47 +00:00
Linus Heckemann
be38a70184 linux: enable SND_OSSEMUL
Fixes #54074
2019-02-18 17:11:37 +01:00
Matthieu Coudron
7aacbdb898 linux: convert hardened-config to a structured one 2019-01-28 09:07:24 +09:00
Matthieu Coudron
3bb7b3f02e linux: ability to merge structured configs
This should make the composability of kernel configurations more straigthforward.

- now distinguish freeform options from tristate ones
- will look for a structured config in kernelPatches too
one can now access the structuredConfig from a kernel via linux_test.configfile.structuredConfig
in order to reinject it into another kernel, no need to rewrite the config from scratch

The following merge strategies are used in case of conflict:
-- freeform items must be equal or they conflict (mergeEqualOption)
-- for tristate (y/m/n) entries, I use the mergeAnswer strategy which takes the best available value, "best" being defined by the user (by default "y" > "m" > "n", e.g. if one entry is both marked "y" and "n", "y" wins)
-- if one item is both marked optional/mandatory, mandatory wins (mergeFalseByDefault)
2019-01-28 09:06:33 +09:00
Vladimír Čunát
3fa77297b5
linux: avoid memory hotplug support on most platforms
It broke i686 build, and it's probably not worth it on others, too.
/cc #54095 e63414078a.
2019-01-19 19:22:02 +01:00
Vladimír Čunát
23eb5e846d
Merge #54095: linux: enable memory hotplug support 2019-01-19 16:26:01 +01:00
Aaron Andersen
e63414078a Enable memory hotplug support 2019-01-18 13:17:33 +00:00
Danylo Hlynskyi
23a13b562c
kernel config: add support for CONFIG_SQUASHFS_ZSTD (#52967)
Also, allow override `make-squashfs.nix` compression parameters.
2019-01-17 15:24:44 +02:00
Tim Steinbach
97aba92bcd
linux: 4.20-rc7 -> 5.0-rc1 2019-01-07 07:57:38 -05:00
Tim Steinbach
98ac5710bd
kernel-config: CIFS_POSIX no longer exists 2018-12-21 09:10:17 -05:00
Jörg Thalheim
e7a9fc2fca
Merge pull request #49470 from grahamc/enable-mlx5core-by-default
kernel: enable MLX5_CORE_EN when possible
2018-11-30 17:55:45 +00:00
Orivej Desh
08d98b2e38 linux: enable CGROUP_HUGETLB, CGROUP_PERF, CGROUP_RDMA (#50225)
These options were added in:

NAMESPACES 2.6.25
CGROUP_DEVICE 2.6.26
CGROUP_HUGETLB 3.6
CGROUP_PERF 2.6.39
CGROUP_RDMA 4.11
2018-11-13 01:13:00 +00:00
Graham Christensen
d65b39a805 kernel: enable MLX5_CORE_EN when possible
Hydra's builders from Packet.net use this option a lot, causing
lots of slow deploys.
2018-10-30 17:29:37 +01:00
John Ericson
2c2f1e37d4 reewide: Purge all uses stdenv.system and top-level system
It is deprecated and will be removed after 18.09.
2018-08-30 17:20:32 -04:00
Vladimír Čunát
e6a37e3ce4
linux: build with SCHEDUTIL governor
- it can't be built as a module
- it's not set as the default yet
- for discussion see https://github.com/NixOS/nixpkgs/pull/42330
2018-08-30 11:26:43 +02:00
Tim Steinbach
f412e19996
linux: 4.18-rc8 -> 4.19-rc1 2018-08-26 21:50:51 -04:00
Izorkin
32c3cbdadd nftables: enable works in linux kernel 4.17 and 4.18 2018-08-25 23:00:54 +03:00
Tim Steinbach
9371f6ad37
linux: 4.18-rc3 -> 4.18-rc4 2018-07-09 20:11:10 -04:00
Tuomas Tynkkynen
ab340f7829 kernel config: Minor text fixes 2018-06-30 16:01:41 +03:00
Tuomas Tynkkynen
fc816e5609 kernel config: Fix recent i686 builds 2018-06-30 16:01:41 +03:00
Matthieu Coudron
e4fe7b31be linux: fix features system 2018-06-30 16:01:41 +03:00
Matthieu Coudron
dcea150a89 kernel: remove conditions based on 3.X kernels
The oldest kernel in nixpkgs being 4.4, we get rid of checks for older
kernels.
2018-06-30 16:01:41 +03:00
Dan Peebles
ff9999ad1b linux: translate config to structured config
Instead of using a string to describe kernel config, use a nix
attribute set, then converted to a string.
- allows to override the config, aka convert 'yes' into 'modules' or
vice-versa
- while for now merging different configs is still crude (last spec wins),
at least there should be only one CONFIG_XYZ value compared to the current string
config where the first defined would be used and others ignored.

[initial idea by copumpkin in 2016, a major rebase to 2018 by teto]
2018-06-30 16:01:41 +03:00
Tim Steinbach
f85a82a647
linux-testing: 4.17-rc7 -> 4.18-rc1 2018-06-16 20:37:15 -04:00
Robert Hensing
fc9ffe790f linux: Enable RT53XX wifi support 2018-06-10 17:55:55 +03:00
gnidorah
c9e7b380e5 linux: enable support for iGVT-g VGPU 2018-05-29 19:25:52 +03:00
Jan Malakhovski
5a6d202a43 Merge pull request #40419 from oxij/pkgs/fix-linux-debug
linuxPackages.kernel: config: fix DEBUG_INFO setting
2018-05-16 00:56:12 -05:00
Yorick
c7e8ddc066
linux: config: remove prefix on KEY_DH_OPERATIONS 2018-05-15 14:33:29 +02:00
Yorick
f8dc3abbb0
linux: add CONFIG_KEY_DH_OPERATIONS 2018-05-14 02:03:42 +02:00
John Ericson
ba52ae5048 treewide: isArm -> isAarch32
Following legacy packing conventions, `isArm` was defined just for
32-bit ARM instruction set. This is confusing to non packagers though,
because Aarch64 is an ARM instruction set.

The official ARM overview for ARMv8[1] is surprisingly not confusing,
given the overall state of affairs for ARM naming conventions, and
offers us a solution. It divides the nomenclature into three levels:

```
ISA:             ARMv8   {-A, -R, -M}
                 /    \
Mode:     Aarch32     Aarch64
             |         /   \
Encoding:   A64      A32   T32
```

At the top is the overall v8 instruction set archicture. Second are the
two modes, defined by bitwidth but differing in other semantics too, and
buttom are the encodings, (hopefully?) isomorphic if they encode the
same mode.

The 32 bit encodings are mostly backwards compatible with previous
non-Thumb and Thumb encodings, and if so we can pun the mode names to
instead mean "sets of compatable or isomorphic encodings", and then
voilà we have nice names for 32-bit and 64-bit arm instruction sets
which do not use the word ARM so as to not confused either laymen or
experienced ARM packages.

[1]: https://developer.arm.com/products/architecture/a-profile
2018-04-25 15:28:55 -04:00
Tim Steinbach
f8665f18fb
linux: 4.16-rc7 -> 4.17-rc1 2018-04-17 20:28:11 -04:00
Frederik Rietdijk
0aa59a08d6 Merge master into staging 2018-04-09 15:12:32 +02:00
Tim Steinbach
c1e1690f62
linux: Hide test warnings from 4.16+ kernels 2018-04-08 19:09:11 -04:00
Nikolay Amiantov
e31c3f8b9f kernel: enable CGROUP_NET_PRIO
It's required by systemd 238 because of a bug, otherwise systemd aborts.
2018-03-22 22:15:37 +03:00
Tuomas Tynkkynen
822526f09e kernel config: Enable CGROUP_BPF
Avoids the following warning:

File /.../systemd-journald.service:35 configures an IP firewall (IPAddressDeny=any), but the local system does not support BPF/cgroup based firewalling.
Proceeding WITHOUT firewalling in effect! (This warning is only shown for the first loaded unit using IP firewalling.)
2018-02-28 01:12:54 +02:00
Tim Steinbach
bbbd9de9d7
linux-common: Add CFS_BANDWIDTH
The option is needed to limit CPU usage of processes.
It seems to have no negative impact if left unused.

See https://lwn.net/Articles/428230/
2018-02-16 10:00:08 -05:00
Tuomas Tynkkynen
7a7e8a8004 kernel config: Disable USB_SERIAL_* on 4.16 and above
They got removed:

commit 003948c54e5b5034a9bbb4923336f5aba125eae6
Author: Benjamin Gilbert <benjamin.gilbert@coreos.com>
Date:   Tue Jan 23 18:06:30 2018 -0800

    USB: serial: keyspan: Drop firmware Kconfig options

    The USB_SERIAL_KEYSPAN_* firmware options no longer do anything.
2018-02-16 01:13:30 +02:00
Tuomas Tynkkynen
db38e0c7e7 kernel config: Cleanup self-test module disabling
No reason to have complex version-dependent conditionals when the
question mark already handles this just as well.

Also add RUNTIME_TESTING_MENU setting which nicely disables all of this
on >= 4.16.
2018-02-16 01:13:30 +02:00
Herwig Hochleitner
3027b80f1d linuxPackages.kernel: add feature.debug flag for enabling DEBUG_INFO 2018-02-15 09:10:32 +01:00
Herwig Hochleitner
66080ae4d8 programs.criu: add nixos option for installing criu + kernel flags 2018-02-15 09:10:32 +01:00
Matthieu Coudron
f620b1b693 kernel: buildLinux replaces import ./generic.nix
- defined buildLinux as generic.nix instead of manual-config.nix. This
makes kernel derivations a tad more similar to your typical derivations.
- moved $buildRoot to within the source folder, this way it doesn't have to be created before the unpackPhase
and make it easier to work on kernel source without running the unpackPhase
2018-02-07 10:07:13 +09:00
Ben Gamari
7a9b6ac39a kernel: Enable cross compiling 2018-01-15 11:55:06 -05:00
Tim Steinbach
eb0ecd7eba
linux-copperhead: 4.14.12.a -> 4.14.13.a 2018-01-11 08:30:19 -05:00
Peter Hoeg
f674cb5ecc kernel: enable writeback throttling to avoid IO queues filling up 2018-01-06 11:20:48 +08:00
Raymond Gauthier
7cdd12e4e9 kernel config: Enable MEDIA_CONTROLLER
With this disabled, cameras would not get a `/dev/mediaX` entry matching
the `/dev/videoX` which broke any application (e.g: `uvcdynctrl -l`,
`media-ctl -p`) depending on this interface.
2017-11-21 16:33:31 +02:00
makefu
292f60504c linux.kernel: enable build of stk1160 modules 2017-11-08 12:41:54 +02:00
Tuomas Tynkkynen
a06d64ea69 kernel config: Explicitly enable device mapper
A no-op change on x86 but enables it on ARM.
2017-10-07 11:05:05 +03:00
Tim Steinbach
c8f43edaf5
linux: 4.13-rc7 -> 4.14-rc1 2017-09-17 09:11:04 -04:00
Tuomas Tynkkynen
9a6aa33422 kernel: Disable DEBUG_INFO
Since we don't have a split debug info output yet, don't waste time
writing several gigabytes of debug info that's all going to be stripped
out at the end.

This change only affects Aarch64 (where some joker has enabled it in the
architecture defconfig) and is a no-op on the others.
2017-09-16 15:09:10 +03:00
Jörg Thalheim
44f93731d6 linux_chromiumos_3_18: remove kernel due lack of maintainer/breakage
There is no maintainer for this package, probably not many users.
It requires effort to fix all third-party modules for this old kernel
versions. It might contain unpatched security holes.

For Pixel chromebooks, we have the samus-kernel.
Apart from that https://github.com/GalliumOS/linux might be a good choice.
2017-09-05 14:42:23 +02:00
Tim Steinbach
cd85a704a5
linux: 4.13-rc4 -> 4.13-rc6 2017-08-22 03:23:30 -04:00
Tim Steinbach
f46f98ad31
Revert 0cf0d7186a
Order common kernel config by functionality
See #27949
2017-08-07 17:34:10 -04:00
gnidorah
dc21f1ad65 linux: BFQ Group Scheduling support 2017-08-07 10:12:21 +03:00
Tim Steinbach
0cf0d7186a
linux-common-config: Refactor, clean up 2017-08-06 19:17:30 -04:00
Heitham Omar
5ac00265a8 linux-common-config: add CONFIG_HOTPLUG_PCI_ACPI 2017-08-06 20:41:28 +02:00
Robin Gloster
2b4811887a
kernel: add IP_NF_TARGET_REDIRECT 2017-08-04 08:26:09 +02:00
Tim Steinbach
b103e9317a
linux-testing: 4.12-rc7 -> 4.13-rc1 2017-07-15 19:30:44 -04:00
Tuomas Tynkkynen
42395a191b kernel-config: Disable Xen on non-x86
There's an upstream build failure on ARM (not directly related to Xen
but rather some other config options it enables). The xen package is
x86_64-only anyways.
2017-07-13 20:12:50 +03:00
Tim Steinbach
da8bd6df67 Merge pull request #27161 from NeQuissimus/kernel_config_cleanup
linux: Clean up kernel config warnings
2017-07-07 09:00:52 -04:00
gnidorah
ff348f4b6d linux: Enable more I/O schedulers 2017-07-07 11:43:48 +03:00
Tim Steinbach
3ec2a2f476
linux: Clean up kernel config warnings 2017-07-05 20:09:14 -04:00
Tim Steinbach
f130e0027e
linux: Add 4.12 2017-07-03 11:57:40 -04:00
Tim Steinbach
b06cb59fc1
linux: 4.9.33 -> 4.9.34 2017-06-24 11:22:56 -04:00
Tim Steinbach
3a68f0bb78
linux: 4.11.6 -> 4.11.7 2017-06-24 11:20:32 -04:00
Jörg Thalheim
e89e96a755 linux_4_11: renable CONFIG_UPROBE_EVENTS
CONFIG_UPROBE_EVENT was renamed to CONFIG_UPROBE_EVENTS.
2017-06-21 17:16:46 +01:00
timor
d74f8351a5 kernel: enable audio jack reconfiguration
Change kernel config to allow for changing the functions of the audio
jacks at run-time as well as at boot time.
2017-06-13 08:50:34 +03:00
Tuomas Tynkkynen
370ace4cf0 kernel: Don't build self-test modules 2017-06-11 19:33:24 +03:00
Tim Steinbach
690a83091b
linux: FS_ENCRYPTION only for >= 4.9 kernels 2017-05-25 18:25:08 -04:00
Tim Steinbach
336b044dcb
linux-testing: 4.11-rc7 -> 4.12-rc1 2017-05-14 22:03:14 -04:00
Tuomas Tynkkynen
3ed0d7e2df kernel-config: Explicitly enable CONFIG_NETFILTER
This is needed by the NixOS firewall, but isn't enabled by the ARM
defconfig nor kernelAutoModules (as 'm' doesn't seem to be an option)
2017-04-14 20:43:50 +03:00
Nikolay Amiantov
7099e8da83 linux: build with initrd support by default
We don't require initrd in some cases but still most boot sequences including ARM use it.
2017-04-09 22:46:07 +03:00
Tim Steinbach
c60102d177
linux: 4.11-rc2 -> 4.11-rc3 2017-03-21 20:32:36 -04:00
Franz Pletz
a691c06556
linux_testing: 4.11-rc1 -> 4.11-rc2 2017-03-14 23:08:43 +01:00
Franz Pletz
c1ccedeaff
linux: make some new config settings optional
These are not support on older kernels pre 4.0.
2017-03-11 08:14:29 +01:00
Tuomas Tynkkynen
77c49794cd linux_testing: 4.10-rc7 -> 4.11-rc1
Some config options got removed, so conditionalize them.
2017-03-11 01:27:06 +02:00
Tuomas Tynkkynen
57c6fac3e9 kernel config: Enable IP_MULTICAST
This is lacking on ARM and causes libuv tests to fail.
2017-03-04 12:49:50 +02:00
Franz Pletz
49bdf9803a
linux: IPV6_FOU_TUNNEL is available since 4.7 2017-03-02 17:19:55 +01:00
Franz Pletz
75e85cae42
linux: enable FOU tunnels and VRF interfaces 2017-03-02 17:19:55 +01:00