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]
This commit is contained in:
Bastian Köcher 2018-04-05 23:35:18 +02:00 committed by Tuomas Tynkkynen
parent 31effc1d7d
commit 438631e401
2 changed files with 12 additions and 0 deletions

View file

@ -73,4 +73,15 @@ rec {
};
};
# https://patchwork.kernel.org/patch/9626797/
# Should be included in 4.17, so this patch can be dropped when 4.16 becomes obsolete.
bcm2835_mmal_v4l2_camera_driver = rec {
name = "bcm2835_mmal_v4l2_camera_driver";
patch = fetchpatch {
name = name + ".patch";
url = https://patchwork.kernel.org/patch/9626797/raw/;
sha256 = "0iwb0yxsf95zv4qxkvlvhqfmzx0rk13g9clvxsharvwkb4w5lwa0";
};
};
}

View file

@ -13354,6 +13354,7 @@ with pkgs;
# when adding a new linux version
# kernelPatches.cpu-cgroup-v2."4.11"
kernelPatches.modinst_arg_list_too_long
kernelPatches.bcm2835_mmal_v4l2_camera_driver # Only needed for 4.16!
]
++ lib.optionals ((platform.kernelArch or null) == "mips")
[ kernelPatches.mips_fpureg_emu