sony-pioneer: Update usage of kernel builder
mobile-nixos
, fetchFromGitHub
, kernelPatches ? [] # FIXME
-, buildPackages
}:
-let
- inherit (buildPackages) dtc;
-in
-(mobile-nixos.kernel-builder-gcc49 {
+mobile-nixos.kernel-builder-gcc49 {
version = "4.4.205";
configfile = ./config.aarch64;
- file = "Image.gz-dtb";
- hasDTB = true;
-
# https://github.com/LineageOS/android_kernel_sony_sdm660
src = fetchFromGitHub {
owner = "LineageOS";
@@ -30,15 +23,6 @@ in
./0003-arch-arm64-Add-config-option-to-fix-bootloader-cmdli.patch
];
- makeFlags = [
- "DTC_EXT=${dtc}/bin/dtc"
- ];
-
+ isImageGzDtb = true;
isModular = false;
-
-}).overrideAttrs({ postInstall ? "", ... }: {
- installTargets = [ "zinstall" "Image.gz-dtb" "install" ];
- postInstall = postInstall + ''
- cp -v "$buildRoot/arch/arm64/boot/Image.gz-dtb" "$out/"
- '';
-})
+}
