Repository navigation
raspberry-pi: add structuredExtraConfig for vendor kernel - #1841
Merged
doronbehar merged 2 commits intoMay 4, 2026
Merged
Conversation
JamieMagee
force-pushed
the
raspberry-pi/structuredExtraConfig-only
branch
3 times, most recently
from
April 24, 2026 23:00
69bc87c to
6328122
Compare
This was referenced Apr 26, 2026
doronbehar
reviewed
May 3, 2026
JamieMagee
force-pushed
the
raspberry-pi/structuredExtraConfig-only
branch
4 times, most recently
from
May 4, 2026 03:03
9a75471 to
55d3dd0
Compare
doronbehar
reviewed
May 4, 2026
doronbehar
left a comment
Contributor
There was a problem hiding this comment.
One more small review comment. Also note the merge conflicts 🙏 - probably from #1822 .
Set CONFIG_LOCALVERSION via structuredExtraConfig instead of patching .config and auto.conf with sed after configure. The vendor defconfigs set -v7, -v8, -v8-16k which breaks modDirVersion.
Override the nixpkgs common-config.nix values that conflict with the RPi vendor defconfigs. Without these the kernel config silently differs from the vendor defconfig. mkForce is used only on options where nixpkgs common-config sets a conflicting value at normal priority. Ref: https://github.com/raspberrypi/linux/tree/rpi-6.12.y/arch/arm64/configs
JamieMagee
force-pushed
the
raspberry-pi/structuredExtraConfig-only
branch
from
May 4, 2026 15:51
55d3dd0 to
88cd2fa
Compare
2 tasks done
JamieMagee
added a commit
to JamieMagee/nixos-hardware
that referenced
this pull request
May 5, 2026
freeform "" can't emit an empty string through nixpkgs mkValue; it renders as the literal "", so CONFIG_LOCALVERSION ends up two chars and modDirVersion becomes 6.12.75"". Bring back the sed from before NixOS#1841. Fixes NixOS#1859.
Gigahawk
pushed a commit
to Gigahawk/nixos-hardware
that referenced
this pull request
May 6, 2026
freeform "" can't emit an empty string through nixpkgs mkValue; it renders as the literal "", so CONFIG_LOCALVERSION ends up two chars and modDirVersion becomes 6.12.75"". Bring back the sed from before NixOS#1841. Fixes NixOS#1859.
5 tasks done
JamieMagee
added a commit
to JamieMagee/nixos-hardware
that referenced
this pull request
May 12, 2026
freeform "" can't emit an empty string through nixpkgs mkValue; it renders as the literal "", so CONFIG_LOCALVERSION ends up two chars and modDirVersion becomes 6.12.75"". Bring back the sed from before NixOS#1841. Fixes NixOS#1859.
cjdell
pushed a commit
to cjdell/nixos-hardware
that referenced
this pull request
Aug 3, 2026
freeform "" can't emit an empty string through nixpkgs mkValue; it renders as the literal "", so CONFIG_LOCALVERSION ends up two chars and modDirVersion becomes 6.12.75"". Bring back the sed from before NixOS#1841. Fixes NixOS#1859.
kubajanusz
pushed a commit
to kubajanusz/nixos-hardware
that referenced
this pull request
Oct 17, 2026
freeform "" can't emit an empty string through nixpkgs mkValue; it renders as the literal "", so CONFIG_LOCALVERSION ends up two chars and modDirVersion becomes 6.12.75"". Bring back the sed from before NixOS#1841. Fixes NixOS#1859.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The RPi vendor kernel is built from
bcm{rpi,2709,2711,2712}_defconfig, but several values in nixpkgscommon-config.nixoverride those defconfigs. Set them back viastructuredExtraConfig.Two commits:
postConfiguresed hack withLOCALVERSION = freeform "";.mkForceis used only where nixpkgs sets a conflicting value at normal priority; everything else is plain assignment.LOCALVERSION""-v7/-v8/-v8-16k, breaksmodDirVersionNR_CPUS4CMA_SIZE_MBYTES5PREEMPT(Pi 3+)no; arm64 vendor defconfigs use full preemptPREEMPT_VOLUNTARY(Pi 3+)mkOptionDefaultNFS_FSmoduleNFS_V4,ROOT_NFS,IP_PNP_DHCP,IP_PNP_RARPIP_PNPnoNET_CLS_BPF,NLS_CODEPAGE_437moduleFB_SIMPLERef: https://github.com/raspberrypi/linux/tree/rpi-6.12.y/arch/arm64/configs
Things done
nixos-hardwareand importing it via `` or Flake input