1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-11-12 13:13:02 +03:00

Merge pull request #297 from MetaDark/fix-dtb-detection

kernel-builder: Fix detecting dtb support (after nixpkgs#110544)
This commit is contained in:
Samuel Dionne-Riel 2021-02-08 17:13:09 -05:00 committed by GitHub
commit fc65d0a89b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -148,7 +148,7 @@ let
exec ${buildPackages.pkgconfig}/bin/${buildPackages.pkgconfig.targetPrefix}pkg-config "$@"
'';
hasDTB = platform ? kernelDTB && platform.kernelDTB;
hasDTB = platform.linux-kernel ? DTB && platform.linux-kernel.DTB;
kernelFileExtension = if isCompressed != false then ".${isCompressed}" else "";
kernelTarget = if platform.linux-kernel.target == "Image"
then "${platform.linux-kernel.target}${kernelFileExtension}"