mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-18 02:05:51 +03:00
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:
parent
31effc1d7d
commit
438631e401
@ -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";
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user