Commit graph

7 commits

Author SHA1 Message Date
Jamie Magee
88cd2fa6e9 raspberry-pi: match RPi vendor defconfigs in kernel config
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
2026-05-04 08:50:24 -07:00
Jamie Magee
554e00a592 raspberry-pi: replace postConfigure sed hack with structuredExtraConfig
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.
2026-05-04 08:49:55 -07:00
Doron Behar
10c5286181
Merge pull request #1840 from JamieMagee/raspberry-pi/dtb-fixup
raspberry-pi: fix DTB name mapping for U-Boot
2026-05-04 12:09:10 +00:00
Ratchanan Srirattanamet
e879889fe2 raspberry-pi/common/kernel: 6.12.47-stable_20250916 -> 6.12.75-1+rpt1
As mentioned in Nixpkgs PR [^1], Raspberry Pi folks stop tagging both
raspberrypi/linux and raspberrypi/firmware GitHub repo. So, I switched
my reference point to Raspberry Pi OS, which publishes their packaging
for Linux kernel in RPi-Distro/linux-packaging.

The version is set to Debian packaging's version, and the commit comes
from the changelog entry for that version.

The old code structure is somewhat kept in case Raspberry Pi ever tags
their raspberrypi/linux repo again.

[^1]: https://github.com/NixOS/nixpkgs/pull/493115
2026-05-04 15:50:53 +07:00
Jamie Magee
57fd23db81 raspberry-pi: fix DTB name mapping for U-Boot
- Gate on rpiVersion instead of architecture; skip for Pi 4+ where
  vendor and upstream DTB names already match
- Fix bcm2835-rpi-zero.dtb: was copied from bcm2708-rpi-b-plus (wrong
  board), now uses bcm2708-rpi-zero
- Drop bcm2711-rpi-4-b -> bcm2838-rpi-4-b copy; nothing uses bcm2838-*

Ref: https://github.com/u-boot/u-boot/blob/master/board/raspberrypi/rpi/rpi.c
2026-05-03 12:53:10 -07:00
Jamie Magee
d7514338e2 raspberry-pi: replace lib.overrideDerivation with .overrideAttrs
lib.overrideDerivation is deprecated and strips passthru attributes
(.configfile, .moduleBuildDependencies, etc.) from the kernel
derivation, which breaks downstream users expecting a standard
buildLinux output.

.overrideAttrs preserves passthru and matches every other custom
kernel in this repo.
2026-04-24 14:43:21 -07:00
Cryolitia PukNgae
c8f766fd11 raspberry-pi: move kernel and firmware from nixpkgs
As part of the gradual phasing out of linux_rpi in nixpkgs

Link: https://github.com/NixOS/nixpkgs/pull/477665

Signed-off-by: Cryolitia PukNgae <Cryolitia@gmail.com>
2026-01-18 23:19:14 +08:00