mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 21:10:08 +00:00
linux/common-config: update for 6.10
We assume RISC-V uses an uncompressed kernel in
lib/systems/platforms.nix. Since this is the first Linux version to
support either xz or zstd compressed kernels on RISC-V, we can't
change platforms.nix to match the other platforms without breaking
builds of older kernel versions, so let's just preserve the old
behaviour.
We could in future decide to use gzip-compressed kernels on RISC-V,
which is supported going back further.
(cherry picked from commit 9f18414c6b)
This commit is contained in:
@@ -352,7 +352,8 @@ let
|
||||
# (stable) amdgpu support for bonaire and newer chipsets
|
||||
DRM_AMDGPU_CIK = yes;
|
||||
# Allow device firmware updates
|
||||
DRM_DP_AUX_CHARDEV = yes;
|
||||
DRM_DP_AUX_CHARDEV = whenOlder "6.10" yes;
|
||||
DRM_DISPLAY_DP_AUX_CHARDEV = whenAtLeast "6.10" yes;
|
||||
# amdgpu display core (DC) support
|
||||
DRM_AMD_DC_DCN1_0 = whenOlder "5.6" yes;
|
||||
DRM_AMD_DC_DCN2_0 = whenBetween "5.3" "5.6" yes;
|
||||
@@ -769,8 +770,10 @@ let
|
||||
# i686 issues: https://github.com/NixOS/nixpkgs/pull/117961#issuecomment-812106375
|
||||
useZstd = stdenv.buildPlatform.is64bit && versionAtLeast version "5.9";
|
||||
in {
|
||||
KERNEL_XZ = mkIf (!useZstd) yes;
|
||||
KERNEL_ZSTD = mkIf useZstd yes;
|
||||
# stdenv.hostPlatform.linux-kernel.target assumes uncompressed on RISC-V.
|
||||
KERNEL_UNCOMPRESSED = mkIf stdenv.hostPlatform.isRiscV yes;
|
||||
KERNEL_XZ = mkIf (!stdenv.hostPlatform.isRiscV && !useZstd) yes;
|
||||
KERNEL_ZSTD = mkIf (!stdenv.hostPlatform.isRiscV && useZstd) yes;
|
||||
|
||||
HID_BATTERY_STRENGTH = yes;
|
||||
# enabled by default in x86_64 but not arm64, so we do that here
|
||||
|
||||
Reference in New Issue
Block a user