git.iko.soy/typeable/nixpkgs
on master help sign in
kernelPatches: Adds bcm2835_mmal_v4l2_camera_driver

The kernel patch is required for raspberry pi, to enable the camera module. [dezgeg: Add some comments indicating it's only needed for 4.16]

commit438631e4013b074f83cc812d2fe8aa5dfcba473e authorBastian Köcher <git@kchr.de> dateThu 5 Apr 2018, 23:35 (9 years ago) parent31effc1
2 files changed+12
pkgs/os-specific/linux/kernel/patches.nix+11 pkgs/top-level/all-packages.nix+1
pkgs/os-specific/linux/kernel/patches.nix+11
@@ -73,4 +73,15 @@ rec {
7373 };
7474 };
7575
76+ # https://patchwork.kernel.org/patch/9626797/
77+ # Should be included in 4.17, so this patch can be dropped when 4.16 becomes obsolete.
78+ bcm2835_mmal_v4l2_camera_driver = rec {
79+ name = "bcm2835_mmal_v4l2_camera_driver";
80+ patch = fetchpatch {
81+ name = name + ".patch";
82+ url = https://patchwork.kernel.org/patch/9626797/raw/;
83+ sha256 = "0iwb0yxsf95zv4qxkvlvhqfmzx0rk13g9clvxsharvwkb4w5lwa0";
84+ };
85+ };
86+
7687}
pkgs/top-level/all-packages.nix+1
@@ -13354,6 +13354,7 @@ with pkgs;
1335413354 # when adding a new linux version
1335513355 # kernelPatches.cpu-cgroup-v2."4.11"
1335613356 kernelPatches.modinst_arg_list_too_long
13357+ kernelPatches.bcm2835_mmal_v4l2_camera_driver # Only needed for 4.16!
1335713358 ]
1335813359 ++ lib.optionals ((platform.kernelArch or null) == "mips")
1335913360 [ kernelPatches.mips_fpureg_emu