oneplus-oneplus3: Add qcacld-2.0 driver from LineageOS
The `als` build tree *seems* to imply they are re-using the pre-built
kernel modules from the vendor.
This is not something we really want to do.
The good thing is that LineageOS adds the required drivers to their
trees. We can re-use it!
{
mobile-nixos
, fetchFromGitHub
+, fetchpatch
}:
mobile-nixos.kernel-builder-gcc6 {
@@ -19,8 +20,15 @@ mobile-nixos.kernel-builder-gcc6 {
./0001-Imports-drivers-input-changes-from-lineage-16.0.patch
./0001-s3320-Workaround-libinput-claiming-kernel-bug.patch
./0001-oneplus3-Configure-LEDs-using-kernel-triggers.patch
+
+ # qcacld-2.0 driver from LineageOS
+ (fetchpatch {
+ url = "https://github.com/mobile-nixos/linux/commit/4ebb0b70c19b7cc6d5a713cfdcdded7e07af4bf6.patch";
+ sha256 = "0szibn4ym6557138y8qham8zjzn3zfswwk2g2qnwvl4h0732sr9p";
+ })
];
+ enableRemovingWerror = true;
isImageGzDtb = true;
isModular = false;
}
